| nbtk Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
NbtkBin;
NbtkWidget * nbtk_bin_new (void);
void nbtk_bin_set_child (NbtkBin *bin,
ClutterActor *child);
ClutterActor * nbtk_bin_get_child (NbtkBin *bin);
void nbtk_bin_set_alignment (NbtkBin *bin,
NbtkAlignment x_align,
NbtkAlignment y_align);
void nbtk_bin_get_alignment (NbtkBin *bin,
NbtkAlignment *x_align,
NbtkAlignment *y_align);
void nbtk_bin_set_fill (NbtkBin *bin,
gboolean x_fill,
gboolean y_fill);
void nbtk_bin_get_fill (NbtkBin *bin,
gboolean *x_fill,
gboolean *y_fill);
GObject +----GInitiallyUnowned +----ClutterActor +----NbtkWidget +----NbtkBin +----NbtkButton +----NbtkScrollBar +----NbtkScrollView +----NbtkViewport
"child" ClutterActor* : Read / Write "x-align" NbtkAlignment : Read / Write "x-fill" gboolean : Read / Write "y-align" NbtkAlignment : Read / Write "y-fill" gboolean : Read / Write
NbtkBin is a simple container capable of having only one ClutterActor as a child.
NbtkBin inherits from NbtkWidget, so it is fully themable.
NbtkWidget * nbtk_bin_new (void);
Creates a new NbtkBin, a simple container for one child.
Returns : |
the newly created NbtkBin actor |
void nbtk_bin_set_child (NbtkBin *bin, ClutterActor *child);
Sets child as the child of bin.
If bin already has a child, the previous child is removed.
|
a NbtkBin |
|
a ClutterActor, or NULL
|
ClutterActor * nbtk_bin_get_child (NbtkBin *bin);
Retrieves a pointer to the child of bin.
|
a NbtkBin |
Returns : |
a ClutterActor, or NULL
|
void nbtk_bin_set_alignment (NbtkBin *bin, NbtkAlignment x_align, NbtkAlignment y_align);
Sets the horizontal and vertical alignment of the child inside a NbtkBin.
|
a NbtkBin |
|
horizontal alignment |
|
vertical alignment |
void nbtk_bin_get_alignment (NbtkBin *bin, NbtkAlignment *x_align, NbtkAlignment *y_align);
Retrieves the horizontal and vertical alignment of the child
inside a NbtkBin, as set by nbtk_bin_set_alignment().
void nbtk_bin_set_fill (NbtkBin *bin, gboolean x_fill, gboolean y_fill);
Sets whether the child of bin should fill out the horizontal
and/or vertical allocation of the parent
"child" property"child" ClutterActor* : Read / Write
The child ClutterActor of the NbtkBin container.
"x-align" property"x-align" NbtkAlignment : Read / Write
The horizontal alignment of the NbtkBin child.
Default value: NBTK_ALIGN_CENTER
"x-fill" property"x-fill" gboolean : Read / Write
Whether the child should fill the horizontal allocation
Default value: FALSE
"y-align" property"y-align" NbtkAlignment : Read / Write
The vertical alignment of the NbtkBin child.
Default value: NBTK_ALIGN_CENTER
"y-fill" property"y-fill" gboolean : Read / Write
Whether the child should fill the vertical allocation
Default value: FALSE