Text31::Text31 ( const Font* f, const Color* fg, const char* text, Transformer* tx ) { _stroke = fg; Resource::ref(_stroke); _font = f; Resource::ref(_font); _t = new Transformer; if (tx != nil) { *_t = *tx; } _fill = fg; /* a hack */ _text = nil; if (text != nil) { _text = new String(text); } LayoutKit* layout = LayoutKit::instance(); _body = layout->overlay(); init(); }
PolyGraphic::PolyGraphic (Graphic31* gr) : Graphic31 (gr) { LayoutKit* layout = LayoutKit::instance(); _body = layout->overlay(); }