![]() |
![]() |
![]() |
Netbook Toolkit 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, NbtkAlign x_align, NbtkAlign y_align); void nbtk_bin_get_alignment (NbtkBin *bin, NbtkAlign *x_align, NbtkAlign *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 +----NbtkExpander +----NbtkScrollBar +----NbtkScrollView +----NbtkViewport
"child" ClutterActor* : Read / Write "x-align" NbtkAlign : Read / Write "x-fill" gboolean : Read / Write "y-align" NbtkAlign : 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, NbtkAlign x_align, NbtkAlign 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, NbtkAlign *x_align, NbtkAlign *y_align);
Retrieves the horizontal and vertical alignment of the child
inside a NbtkBin, as set by nbtk_bin_set_alignment()
.
|
a NbtkBin |
|
return location for the horizontal alignment, or NULL
|
|
return location for the vertical alignment, or NULL
|
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
|
a NbtkBin |
|
TRUE if the child should fill horizontally the bin
|
|
TRUE if the child should fill vertically the bin
|
"child"
property"child" ClutterActor* : Read / Write
The child ClutterActor of the NbtkBin container.
"x-align"
property"x-align" NbtkAlign : Read / Write
The horizontal alignment of the NbtkBin child.
Default value: NBTK_ALIGN_MIDDLE
"x-fill"
property"x-fill" gboolean : Read / Write
Whether the child should fill the horizontal allocation
Default value: FALSE
"y-align"
property"y-align" NbtkAlign : Read / Write
The vertical alignment of the NbtkBin child.
Default value: NBTK_ALIGN_MIDDLE