![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
VisuBoxedVisuBoxed — Defines a common interface for objects with a VisuBox. |
struct VisuBoxedInterface; VisuBox * visu_boxed_getBox (VisuBoxed *self
); gboolean visu_boxed_setBox (VisuBoxed *self
,VisuBoxed *box
,gboolean update
);
struct VisuBoxedInterface { GTypeInterface parent; VisuBox* (*get_box) (VisuBoxed *self); gboolean (*set_box) (VisuBoxed *self, VisuBox *box, gboolean update); };
The different routines common to objects implementing a VisuBoxed interface.
GTypeInterface |
yet, its parent. |
a routine to get a pointer on the VisuBox. | |
a routine to set a VisuBox to a VisuBoxed object. |
Since 3.7
VisuBox * visu_boxed_getBox (VisuBoxed *self
);
Retrieves the VisuBox of self
.
|
a VisuBoxed object. |
Returns : |
the VisuBox of self . [transfer none]
|
Since 3.7
gboolean visu_boxed_setBox (VisuBoxed *self
,VisuBoxed *box
,gboolean update
);
Attach the VisuBox of box
to boxed
. If update
is TRUE
, coordinates inside
boxed
are updated to fit into the new VisuBox. A reference is
taken on the VisuBox of box
. This routine emits "setBox"
signal if the self
has changed its VisuBox.
|
a VisuBoxed object. |
|
a VisuBoxed object. [transfer none] |
|
a boolean. |
Returns : |
FALSE boxed was already boxed with the VisuBox of box . |
Since 3.7