| 413 | } |
| 414 | |
| 415 | void wxShape::SetCanvas(wxShapeCanvas *theCanvas) |
| 416 | { |
| 417 | m_canvas = theCanvas; |
| 418 | wxNode *node = m_children.GetFirst(); |
| 419 | while (node) |
| 420 | { |
| 421 | wxShape *child = (wxShape *)node->GetData(); |
| 422 | child->SetCanvas(theCanvas); |
| 423 | node = node->GetNext(); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | void wxShape::AddToCanvas(wxShapeCanvas *theCanvas, wxShape *addAfter) |
| 428 | { |