Class: Clutter::LayoutManager
- Inherits:
-
GObject::InitiallyUnowned
- Object
- GObject::InitiallyUnowned
- Clutter::LayoutManager
- Defined in:
- (unknown)
Overview
The Clutter::LayoutManagerClass structure contains only private data and should be accessed using the provided API
Direct Known Subclasses
BinLayout, BoxLayout, FixedLayout, FlowLayout, GridLayout, TableLayout
Instance Method Summary collapse
-
#allocate(container, allocation, flags) ⇒ nil
Allocates the children of container given an area.
-
#animation_progress ⇒ Float
Retrieves the progress of the animation, if one has been started by clutter_layout_manager_begin_animation().
-
#begin_animation(duration, mode) ⇒ Clutter::Alpha
Begins an animation of duration milliseconds, using the provided easing mode.
-
#child_get(container, actor, first_property, array) ⇒ nil
Retrieves the values for a list of properties out of the Clutter::LayoutMeta created by manager and attached to the child of a container.
-
#child_get_property(container, actor, property_name, value) ⇒ nil
Gets a property on the Clutter::LayoutMeta created by manager and attached to a child of container.
-
#child_set(container, actor, first_property, array) ⇒ nil
Sets a list of properties and their values on the Clutter::LayoutMeta associated by manager to a child of container.
-
#child_set_property(container, actor, property_name, value) ⇒ nil
Sets a property on the Clutter::LayoutMeta created by manager and attached to a child of container.
-
#container=(container) ⇒ nil
If the Clutter::LayoutManager sub-class allows it, allow adding a weak reference of the container using manager from within the layout manager.
-
#end_animation ⇒ nil
Ends an animation started by clutter_layout_manager_begin_animation().
-
#find_child_property(name) ⇒ GObject::ParamSpec
Retrieves the GParam::Spec for the layout property name inside the Clutter::LayoutMeta sub-class used by manager.
-
#get_child_meta(container, actor) ⇒ Clutter::LayoutMeta
Retrieves the Clutter::LayoutMeta that the layout manager associated to the actor child of container, eventually by creating one if the Clutter::LayoutManager supports layout properties.
-
#get_preferred_height(container, for_width, min_height_p, nat_height_p) ⇒ nil
Computes the minimum and natural heights of the container according to manager.
-
#get_preferred_width(container, for_height, min_width_p, nat_width_p) ⇒ nil
Computes the minimum and natural widths of the container according to manager.
-
#layout_changed ⇒ nil
Emits the Clutter::LayoutManager::layout-changed signal on manager.
-
#list_child_properties(n_pspecs) ⇒ Array<GObject::ParamSpec>
Retrieves all the GParam::Specs for the layout properties stored inside the Clutter::LayoutMeta sub-class used by manager.
Instance Method Details
#allocate(container, allocation, flags) ⇒ nil
Allocates the children of container given an area
See also clutter_actor_allocate()
#animation_progress ⇒ Float
Retrieves the progress of the animation, if one has been started by clutter_layout_manager_begin_animation()
The returned value has the same semantics of the Clutter::Alpha:alpha value
#begin_animation(duration, mode) ⇒ Clutter::Alpha
Begins an animation of duration milliseconds, using the provided easing mode
The easing mode can be specified either as a Clutter::AnimationMode or as a logical id returned by clutter_alpha_register_func()
The result of this function depends on the manager implementation
#child_get(container, actor, first_property, array) ⇒ nil
Retrieves the values for a list of properties out of the Clutter::LayoutMeta created by manager and attached to the child of a container
#child_get_property(container, actor, property_name, value) ⇒ nil
Gets a property on the Clutter::LayoutMeta created by manager and attached to a child of container
The #GValue must already be initialized to the type of the property and has to be unset with g_value_unset() after extracting the real value out of it
#child_set(container, actor, first_property, array) ⇒ nil
Sets a list of properties and their values on the Clutter::LayoutMeta associated by manager to a child of container
Languages bindings should use clutter_layout_manager_child_set_property() instead
#child_set_property(container, actor, property_name, value) ⇒ nil
Sets a property on the Clutter::LayoutMeta created by manager and attached to a child of container
#container=(container) ⇒ nil
If the Clutter::LayoutManager sub-class allows it, allow adding a weak reference of the container using manager from within the layout manager
The layout manager should not increase the reference count of the container
#end_animation ⇒ nil
Ends an animation started by clutter_layout_manager_begin_animation()
The result of this call depends on the manager implementation
#find_child_property(name) ⇒ GObject::ParamSpec
Retrieves the GParam::Spec for the layout property name inside the Clutter::LayoutMeta sub-class used by manager
#get_child_meta(container, actor) ⇒ Clutter::LayoutMeta
Retrieves the Clutter::LayoutMeta that the layout manager associated to the actor child of container, eventually by creating one if the Clutter::LayoutManager supports layout properties
#get_preferred_height(container, for_width, min_height_p, nat_height_p) ⇒ nil
Computes the minimum and natural heights of the container according to manager.
See also clutter_actor_get_preferred_height()
#get_preferred_width(container, for_height, min_width_p, nat_width_p) ⇒ nil
Computes the minimum and natural widths of the container according to manager.
See also clutter_actor_get_preferred_width()
#layout_changed ⇒ nil
Emits the Clutter::LayoutManager::layout-changed signal on manager
This function should only be called by implementations of the Clutter::LayoutManager class
#list_child_properties(n_pspecs) ⇒ Array<GObject::ParamSpec>
Retrieves all the GParam::Specs for the layout properties stored inside the Clutter::LayoutMeta sub-class used by manager