Class
ClutterLayoutManager
Description [src]
abstract class Clutter.LayoutManager : GObject.InitiallyUnowned {
/* No available fields */
}
The ClutterLayoutManager
structure contains only private data
and should be accessed using the provided API.
Available since: | 1.2 |
Instance methods
clutter_layout_manager_allocate
Allocates the children of container
given an area.
Available since: 1.2
clutter_layout_manager_child_get
Retrieves the values for a list of properties out of the
ClutterLayoutMeta
created by manager
and attached to the
child of a container
.
Available since: 1.2
clutter_layout_manager_child_get_property
Gets a property on the ClutterLayoutMeta
created by manager
and
attached to a child of container
.
Available since: 1.2
clutter_layout_manager_child_set
Sets a list of properties and their values on the ClutterLayoutMeta
associated by manager
to a child of container
.
Available since: 1.2
clutter_layout_manager_child_set_property
Sets a property on the ClutterLayoutMeta
created by manager
and
attached to a child of container
.
Available since: 1.2
clutter_layout_manager_find_child_property
Retrieves the GParamSpec
for the layout property name
inside
the ClutterLayoutMeta
sub-class used by manager
.
Available since: 1.2
clutter_layout_manager_get_child_meta
Retrieves the ClutterLayoutMeta
that the layout manager
associated
to the actor
child of container
, eventually by creating one if the
ClutterLayoutManager
supports layout properties.
Available since: 1.0
clutter_layout_manager_get_preferred_height
Computes the minimum and natural heights of the container
according
to manager
.
Available since: 1.2
clutter_layout_manager_get_preferred_width
Computes the minimum and natural widths of the container
according
to manager
.
Available since: 1.2
clutter_layout_manager_layout_changed
Emits the ClutterLayoutManager::layout-changed
signal on manager
.
Available since: 1.2
clutter_layout_manager_list_child_properties
Retrieves all the GParamSpec
s for the layout properties
stored inside the ClutterLayoutMeta
sub-class used by manager
.
Available since: 1.2
clutter_layout_manager_set_container
If the ClutterLayoutManager
sub-class allows it, allow
adding a weak reference of the container
using manager
from within the layout manager.
Available since: 1.2
Signals
Clutter.LayoutManager::layout-changed
The ::layout-changed signal is emitted each time a layout manager
has been changed. Every ClutterActor
using the manager
instance
as a layout manager should connect a handler to the ::layout-changed
signal and queue a relayout on themselves:
Available since: 1.2
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct ClutterLayoutManagerClass {
void (* get_preferred_width) (
ClutterLayoutManager* manager,
ClutterContainer* container,
gfloat for_height,
gfloat* min_width_p,
gfloat* nat_width_p
);
void (* get_preferred_height) (
ClutterLayoutManager* manager,
ClutterContainer* container,
gfloat for_width,
gfloat* min_height_p,
gfloat* nat_height_p
);
void (* allocate) (
ClutterLayoutManager* manager,
ClutterContainer* container,
const ClutterActorBox* allocation
);
void (* set_container) (
ClutterLayoutManager* manager,
ClutterContainer* container
);
GType (* get_child_meta_type) (
ClutterLayoutManager* manager
);
ClutterLayoutMeta* (* create_child_meta) (
ClutterLayoutManager* manager,
ClutterContainer* container,
ClutterActor* actor
);
void (* layout_changed) (
ClutterLayoutManager* manager
);
void (* _clutter_padding_1) (
void
);
void (* _clutter_padding_2) (
void
);
void (* _clutter_padding_3) (
void
);
void (* _clutter_padding_4) (
void
);
void (* _clutter_padding_5) (
void
);
void (* _clutter_padding_6) (
void
);
void (* _clutter_padding_7) (
void
);
void (* _clutter_padding_8) (
void
);
}
Class members
get_preferred_width |
|
No description available. | |
get_preferred_height |
|
No description available. | |
allocate |
|
No description available. | |
set_container |
|
No description available. | |
get_child_meta_type |
|
No description available. | |
create_child_meta |
|
No description available. | |
layout_changed |
|
No description available. | |
_clutter_padding_1 |
|
No description available. | |
_clutter_padding_2 |
|
No description available. | |
_clutter_padding_3 |
|
No description available. | |
_clutter_padding_4 |
|
No description available. | |
_clutter_padding_5 |
|
No description available. | |
_clutter_padding_6 |
|
No description available. | |
_clutter_padding_7 |
|
No description available. | |
_clutter_padding_8 |
|
No description available. |
Virtual methods
Clutter.LayoutManagerClass.allocate
Allocates the children of container
given an area.
Available since: 1.2
Clutter.LayoutManagerClass.create_child_meta
Clutter.LayoutManagerClass.get_child_meta_type
Clutter.LayoutManagerClass.get_preferred_height
Computes the minimum and natural heights of the container
according
to manager
.
Available since: 1.2
Clutter.LayoutManagerClass.get_preferred_width
Computes the minimum and natural widths of the container
according
to manager
.
Available since: 1.2
Clutter.LayoutManagerClass.layout_changed
Emits the ClutterLayoutManager::layout-changed
signal on manager
.
Available since: 1.2
Clutter.LayoutManagerClass.set_container
If the ClutterLayoutManager
sub-class allows it, allow
adding a weak reference of the container
using manager
from within the layout manager.
Available since: 1.2