| clutk Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
CtkBox; CtkBoxClass; CtkBoxPrivate; CtkBoxChild; void ctk_box_pack (CtkBox *box,ClutterActor *child,gboolean expand,gboolean fill); void ctk_box_set_homogeneous (CtkBox *box,gboolean homogeneous); gboolean ctk_box_get_homogeneous (CtkBox *box); void ctk_box_set_spacing (CtkBox *box,gint spacing); gint ctk_box_get_spacing (CtkBox *box); void ctk_box_set_orientation (CtkBox *box,CtkOrientation orient); CtkOrientation ctk_box_get_orientation (CtkBox *box); void ctk_box_sort_children (CtkBox *box,GCompareFunc func);
GObject +----GInitiallyUnowned +----ClutterActor +----CtkActor +----CtkBox +----CtkHBox +----CtkVBox
"homogeneous" gboolean : Read / Write "orientation" gint : Read / Write "spacing" gint : Read / Write
CtkBox is a base class for our box containers, It handles all the logic for CtkVbox and CtkHbox
void ctk_box_pack (CtkBox *box,ClutterActor *child,gboolean expand,gboolean fill);
Adds an actor to the given box, the actor is added to the end of the box
|
A CtkBox |
|
The ClutterActor that is to be added to the box
|
|
TRUE if the actor is to be given extra space allocated to box
|
|
TRUE if space given to actor by the expand option is actually allocated to actor, rather than just padding it.
|
void ctk_box_set_homogeneous (CtkBox *box,gboolean homogeneous);
sets the "homogeneous" property of the box, controls whether all the children
in box are given equal space.
|
a CtkBox |
|
a boolean value dictating if children in box are homogeneous
|
gboolean ctk_box_get_homogeneous (CtkBox *box);
gets whether the box is homogeneous, see ctk_box_set_homogeneous()
|
a CtkBox |
Returns : |
TRUE or FALSE |
void ctk_box_set_spacing (CtkBox *box,gint spacing);
Sets the size of the spacing for box, which is the number of pixels between the children of box
|
a CtkBox |
|
a gint refering to the size of the spacing in pixels |
gint ctk_box_get_spacing (CtkBox *box);
Returns the spacing of box, see also ctk_box_set_spacing()
|
a CtkBox |
Returns : |
An integer regarding box spacing
|
void ctk_box_set_orientation (CtkBox *box,CtkOrientation orient);
Sets the orientation of the given box, see CtkOrientation
|
a CtkBox |
|
a CtkOrientation orientation |
CtkOrientation ctk_box_get_orientation (CtkBox *box);
Gets the orientation of box
|
a CtkBox |
Returns : |
a CtkOrientation detailing box orientation
|
void ctk_box_sort_children (CtkBox *box,GCompareFunc func);
Sorts the children in box using func as its comparison function
|
a CtkBox |
|
a GCompareFunc to be used to sort children in box
|
"homogeneous" property"homogeneous" gboolean : Read / Write
Whether the children should all be the same size.
Default value: FALSE
"orientation" property"orientation" gint : Read / Write
The orientation of the box.
Allowed values: [0,1]
Default value: 1
"spacing" property"spacing" gint : Read / Write
The amount of space between the children.
Allowed values: >= 0
Default value: 0