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