![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NbtkBoxLayout; NbtkWidget * nbtk_box_layout_new (void
); void nbtk_box_layout_set_vertical (NbtkBoxLayout *box
,gboolean vertical
); gboolean nbtk_box_layout_get_vertical (NbtkBoxLayout *box
); void nbtk_box_layout_set_pack_start (NbtkBoxLayout *box
,gboolean pack_start
); gboolean nbtk_box_layout_get_pack_start (NbtkBoxLayout *box
); void nbtk_box_layout_set_spacing (NbtkBoxLayout *box
,guint spacing
); guint nbtk_box_layout_get_spacing (NbtkBoxLayout *box
);
GObject +----GInitiallyUnowned +----ClutterActor +----NbtkWidget +----NbtkBoxLayout +----NbtkListView
NbtkBoxLayout implements ClutterScriptable, NbtkStylable, ClutterContainer and NbtkScrollable.
"pack-start" gboolean : Read / Write "spacing" guint : Read / Write "vertical" gboolean : Read / Write
The NbtkBoxLayout arranges its children along a single line, where each child can be allocated either its preferred size or larger if the expand option is set. If the fill option is set, the actor will be allocated more than its requested size. If the fill option is not set, but the expand option is enabled, then the position of the actor within the available space can be determined by the alignment child property.
typedef struct _NbtkBoxLayout NbtkBoxLayout;
The contents of this structure are private and should only be accessed through the public API.
NbtkWidget * nbtk_box_layout_new (void
);
Create a new NbtkBoxLayout.
Returns : |
a newly allocated NbtkBoxLayout |
void nbtk_box_layout_set_vertical (NbtkBoxLayout *box
,gboolean vertical
);
Set the value of the "vertical" property
|
A NbtkBoxLayout |
|
TRUE if the layout should be vertical |
gboolean nbtk_box_layout_get_vertical (NbtkBoxLayout *box
);
Get the value of the "vertical" property.
|
A NbtkBoxLayout |
Returns : |
TRUE if the layout is vertical |
void nbtk_box_layout_set_pack_start (NbtkBoxLayout *box
,gboolean pack_start
);
Set the value of the "pack-start" property.
|
A NbtkBoxLayout |
|
TRUE if the layout should use pack-start |
gboolean nbtk_box_layout_get_pack_start (NbtkBoxLayout *box
);
Get the value of the "pack-start" property.
|
A NbtkBoxLayout |
Returns : |
TRUE if pack-start is enabled |
void nbtk_box_layout_set_spacing (NbtkBoxLayout *box
,guint spacing
);
Set the amount of spacing between children in pixels
|
A NbtkBoxLayout |
|
the spacing value |
guint nbtk_box_layout_get_spacing (NbtkBoxLayout *box
);
Get the spacing between children in pixels
|
A NbtkBoxLayout |
Returns : |
the spacing value |