TextGraphic

Inheritance:

Methods of TextGraphic:

getFrame
LVecBase4f TextGraphic::get_frame(void) const;

Description: Returns the frame specified for the graphic. This is the amount of space that will be reserved for the graphic when it is embedded in a text paragraph, in the form (left, right, bottom, top).
The actual graphic, as rendered by the NodePath specified via set_model(), should more or less fit within this rectangle. It is not required to fit completely within it, but if it does not, it may visually overlap with nearby text.

getModel
NodePath TextGraphic::get_model(void) const;

Description: Returns the NodePath associated with the graphic, that renders the desired image.

setFrame
void TextGraphic::set_frame(LVecBase4f const &frame);

Description: Specifies the (left, right, bottom, top) bounding frame for the graphic. See get_frame().

setModel
void TextGraphic::set_model(NodePath const &model);

Description: Changes the NodePath associated with the graphic. This NodePath should contain geometry that will render the desired graphic image.