21 set_clip_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top) {
32 return _has_clip_frame ? _clip_frame :
get_frame();
42 return _has_clip_frame;
52 _canvas_node->set_transform(transform);
62 return _canvas_node->get_transform();
81 return _canvas_parent;
bool has_clip_frame() const
Returns true if the clip frame has been set; see set_clip_frame().
A basic node of the scene graph or data graph.
void set_clip_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top)
Sets the bounding rectangle of the clip frame.
void set_canvas_transform(const TransformState *transform)
Changes the transform of the virtual canvas.
const TransformState * get_canvas_transform() const
Returns the transform of the virtual canvas.
const LVecBase4 & get_clip_frame() const
Returns the bounding rectangle of the clip frame.
PandaNode * get_canvas_parent() const
Returns the parent node of the canvas_node.
Similar to MutexHolder, but for a light reentrant mutex.
PandaNode * get_canvas_node() const
Returns the special node that holds all of the children that appear in the virtual canvas.
const LVecBase4 & get_frame() const
Returns the bounding rectangle of the item.