MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / removeLayer

Method removeLayer

Source/UIComponents/CtrlrPanel/CtrlrPanelCanvasLayers.cpp:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void CtrlrPanelCanvas::removeLayer(const int index)
169{
170 if (layers[index] != 0)
171 {
172 getCanvasTree().removeChild (layers[index]->getObjectTree(), 0);
173 layers.remove (index, true);
174 }
175
176 layersChanged();
177}
178
179void CtrlrPanelCanvas::removeLayer(CtrlrPanelCanvasLayer *layerToRemove)
180{

Callers

nothing calls this directly

Calls 3

removeMethod · 0.45
indexOfMethod · 0.45
removeObjectMethod · 0.45

Tested by

no test coverage detected