void PolyGraphic::remove_ (GlyphIndex i) { Graphic* gr = (Graphic*)_body->component(i); if (gr != nil) { gr->parent(nil); } _body->remove(i); }
void PolyGraphic::replace_ (GlyphIndex i, Graphic* g) { Graphic* gr = (Graphic*) _body->component(i); gr->parent(nil); _body->replace(i, g); g->parent(this); }