![]() |
![]() |
![]() |
Moblin UI Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
MxBin; void mx_bin_set_child (MxBin *bin, ClutterActor *child); ClutterActor * mx_bin_get_child (MxBin *bin); void mx_bin_set_alignment (MxBin *bin, MxAlign x_align, MxAlign y_align); void mx_bin_get_alignment (MxBin *bin, MxAlign *x_align, MxAlign *y_align); void mx_bin_set_fill (MxBin *bin, gboolean x_fill, gboolean y_fill); void mx_bin_get_fill (MxBin *bin, gboolean *x_fill, gboolean *y_fill);
GObject +----GInitiallyUnowned +----ClutterActor +----MxWidget +----MxBin +----MxButton +----MxExpander +----MxScrollBar +----MxScrollView +----MxViewport
MxBin implements ClutterContainer, MxFocusable, ClutterScriptable and MxStylable.
"child" ClutterActor* : Read / Write "x-align" MxAlign : Read / Write "x-fill" gboolean : Read / Write "y-align" MxAlign : Read / Write "y-fill" gboolean : Read / Write
MxBin is a simple container capable of having only one ClutterActor as a child.
MxBin inherits from MxWidget, so it is fully themable.
void mx_bin_set_child (MxBin *bin, ClutterActor *child);
Sets child
as the child of bin
.
If bin
already has a child, the previous child is removed.
|
a MxBin |
|
a ClutterActor, or NULL
|
ClutterActor * mx_bin_get_child (MxBin *bin);
Retrieves a pointer to the child of bin
.
|
a MxBin |
Returns : |
a ClutterActor, or NULL
|
void mx_bin_set_alignment (MxBin *bin, MxAlign x_align, MxAlign y_align);
Sets the horizontal and vertical alignment of the child inside a MxBin.
|
a MxBin |
|
horizontal alignment |
|
vertical alignment |
void mx_bin_get_alignment (MxBin *bin, MxAlign *x_align, MxAlign *y_align);
Retrieves the horizontal and vertical alignment of the child
inside a MxBin, as set by mx_bin_set_alignment()
.
|
a MxBin |
|
return location for the horizontal alignment, or NULL
|
|
return location for the vertical alignment, or NULL
|
void mx_bin_set_fill (MxBin *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 MxBin |
|
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 MxBin container.
"x-align"
property"x-align" MxAlign : Read / Write
The horizontal alignment of the MxBin child.
Default value: MX_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" MxAlign : Read / Write
The vertical alignment of the MxBin child.
Default value: MX_ALIGN_MIDDLE
"y-fill"
property"y-fill" gboolean : Read / Write
Whether the child should fill the vertical allocation
Default value: FALSE