MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / InsertInCanvas

Method InsertInCanvas

ogl/basic.cpp:443–456  ·  view source on GitHub ↗

Insert at front of canvas

Source from the content-addressed store, hash-verified

441
442// Insert at front of canvas
443void wxShape::InsertInCanvas(wxShapeCanvas *theCanvas)
444{
445 theCanvas->InsertShape(this);
446 wxNode *node = m_children.GetFirst();
447 wxShape *lastImage = this;
448 while (node)
449 {
450 wxShape *object = (wxShape *)node->GetData();
451 object->AddToCanvas(theCanvas, lastImage);
452 lastImage = object;
453
454 node = node->GetNext();
455 }
456}
457
458void wxShape::RemoveFromCanvas(wxShapeCanvas *theCanvas)
459{

Callers

nothing calls this directly

Calls 2

AddToCanvasMethod · 0.80
InsertShapeMethod · 0.45

Tested by

no test coverage detected