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

Method AddToCanvas

ogl/basic.cpp:427–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427void wxShape::AddToCanvas(wxShapeCanvas *theCanvas, wxShape *addAfter)
428{
429 theCanvas->AddShape(this, addAfter);
430 wxNode *node = m_children.GetFirst();
431 wxShape *lastImage = this;
432 while (node)
433 {
434 wxShape *object = (wxShape *)node->GetData();
435 object->AddToCanvas(theCanvas, lastImage);
436 lastImage = object;
437
438 node = node->GetNext();
439 }
440}
441
442// Insert at front of canvas
443void wxShape::InsertInCanvas(wxShapeCanvas *theCanvas)

Callers 3

InsertInCanvasMethod · 0.80
AddChildMethod · 0.80
SelectMethod · 0.80

Calls 1

AddShapeMethod · 0.45

Tested by

no test coverage detected