![]() |
![]() |
![]() |
Cinnamon St Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct StBoxLayout; struct StBoxLayoutClass; StWidget * st_box_layout_new (void
); void st_box_layout_set_vertical (StBoxLayout *box
,gboolean vertical
); gboolean st_box_layout_get_vertical (StBoxLayout *box
); void st_box_layout_set_pack_start (StBoxLayout *box
,gboolean pack_start
); gboolean st_box_layout_get_pack_start (StBoxLayout *box
); void st_box_layout_set_align_end (StBoxLayout *box
,gboolean align_end
); gboolean st_box_layout_get_align_end (StBoxLayout *box
); void st_box_layout_insert_actor (StBoxLayout *self
,ClutterActor *actor
,int pos
); void st_box_layout_insert_before (StBoxLayout *self
,ClutterActor *actor
,ClutterActor *sibling
);
GObject +----GInitiallyUnowned +----ClutterActor +----StWidget +----StContainer +----StBoxLayout
StBoxLayout implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and StScrollable.
"align-end" gboolean : Read / Write "pack-start" gboolean : Read / Write "vertical" gboolean : Read / Write
The StBoxLayout 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.
struct StBoxLayout;
The contents of this structure are private and should only be accessed through the public API.
StWidget * st_box_layout_new (void
);
Create a new StBoxLayout.
Returns : |
a newly allocated StBoxLayout |
void st_box_layout_set_vertical (StBoxLayout *box
,gboolean vertical
);
Set the value of the "vertical" property
|
A StBoxLayout |
|
TRUE if the layout should be vertical |
gboolean st_box_layout_get_vertical (StBoxLayout *box
);
Get the value of the "vertical" property.
|
A StBoxLayout |
Returns : |
TRUE if the layout is vertical |
void st_box_layout_set_pack_start (StBoxLayout *box
,gboolean pack_start
);
Set the value of the "pack-start" property.
|
A StBoxLayout |
|
TRUE if the layout should use pack-start |
gboolean st_box_layout_get_pack_start (StBoxLayout *box
);
Get the value of the "pack-start" property.
|
A StBoxLayout |
Returns : |
TRUE if pack-start is enabled |
void st_box_layout_set_align_end (StBoxLayout *box
,gboolean align_end
);
Set the value of the "align-end" property.
|
A StBoxLayout |
|
TRUE if the layout should use align-end |
gboolean st_box_layout_get_align_end (StBoxLayout *box
);
Get the value of the "align-end" property.
|
A StBoxLayout |
Returns : |
TRUE if align-end is enabled |
void st_box_layout_insert_actor (StBoxLayout *self
,ClutterActor *actor
,int pos
);
Adds actor
to self
at position pos
. If pos
is
negative or larger than the number of elements in the
list then actor
is added after all the others previously
added.
|
A StBoxLayout |
|
A ClutterActor |
|
position to insert actor |
void st_box_layout_insert_before (StBoxLayout *self
,ClutterActor *actor
,ClutterActor *sibling
);
Adds actor
to self
at the position before sibling
.
sibling
cannot be NULL
and must be already a child
of self
.
|
A StBoxLayout |
|
A ClutterActor |
|
A previously added ClutterActor |