clutter-bin-layout

clutter-bin-layout — A simple layout manager

Functions

Description

ClutterBinLayout is a layout manager which implements the following policy:

  • the preferred size is the maximum preferred size between all the children of the container using the layout;

  • each child is allocated in "layers", on on top of the other;

  • for each layer there are horizontal and vertical alignment policies.

The bin-layout example shows how to pack actors inside a ClutterBinLayout.

ClutterBinLayout is available since Clutter 1.2

Functions

clutter_bin_layout_set_alignment ()

void
clutter_bin_layout_set_alignment (ClutterBinLayout *self,
                                  ClutterActor *child,
                                  ClutterBinAlignment x_align,
                                  ClutterBinAlignment y_align);

clutter_bin_layout_set_alignment has been deprecated since version 1.12 and should not be used in newly-written code.

Use the “x-align” and “y-align” properties of ClutterActor instead.

Sets the horizontal and vertical alignment policies to be applied to a child of self

If child is NULL then the x_align and y_align values will be set as the default alignment policies

Parameters

self

a ClutterBinLayout

 

child

a child of container .

[allow-none]

x_align

the horizontal alignment policy to be used for the child inside container

 

y_align

the vertical aligment policy to be used on the child inside container

 

Since: 1.2


clutter_bin_layout_get_alignment ()

void
clutter_bin_layout_get_alignment (ClutterBinLayout *self,
                                  ClutterActor *child,
                                  ClutterBinAlignment *x_align,
                                  ClutterBinAlignment *y_align);

clutter_bin_layout_get_alignment has been deprecated since version 1.12 and should not be used in newly-written code.

Use the “x-align” and the “y-align” properties of ClutterActor instead.

Retrieves the horizontal and vertical alignment policies for a child of self

If child is NULL the default alignment policies will be returned instead

Parameters

self

a ClutterBinLayout

 

child

a child of container .

[allow-none]

x_align

return location for the horizontal alignment policy.

[out][allow-none]

y_align

return location for the vertical alignment policy.

[out][allow-none]

Since: 1.2


clutter_bin_layout_add ()

void
clutter_bin_layout_add (ClutterBinLayout *self,
                        ClutterActor *child,
                        ClutterBinAlignment x_align,
                        ClutterBinAlignment y_align);

clutter_bin_layout_add has been deprecated since version 1.12 and should not be used in newly-written code.

Use clutter_actor_add_child() instead.

Adds a ClutterActor to the container using self and sets the alignment policies for it

This function is equivalent to clutter_container_add_actor() and clutter_layout_manager_child_set_property() but it does not require a pointer to the ClutterContainer associated to the ClutterBinLayout

Parameters

self

a ClutterBinLayout

 

child

a ClutterActor

 

x_align

horizontal alignment policy for child

 

y_align

vertical alignment policy for child

 

Since: 1.2