cluttermm: Clutter::LayoutManager Class Reference
Public Member Functions | |
virtual | ~LayoutManager () |
ClutterLayoutManager* | gobj () |
Provides access to the underlying C GObject. More... | |
const ClutterLayoutManager* | gobj () const |
Provides access to the underlying C GObject. More... | |
ClutterLayoutManager* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
template<class PropertyType > | |
void | set_child_property (const Glib::RefPtr< Container >& container, const Glib::RefPtr< Actor >& child, const Glib::ustring& property_name, const PropertyType& value) |
void | set_child_property_value (const Glib::RefPtr< Container >& container, const Glib::RefPtr< Actor >& child, const Glib::ustring& property_name, const Glib::ValueBase& value) |
Sets a property on the Clutter::LayoutMeta created by manager and attached to a child of container. More... | |
template<class PropertyType > | |
void | get_child_property (const Glib::RefPtr< Container >& container, const Glib::RefPtr< const Actor >& actor, const Glib::ustring& property_name, PropertyType& value) const |
void | get_child_property_value (const Glib::RefPtr< Container >& container, const Glib::RefPtr< const Actor >& actor, const Glib::ustring& property_name, Glib::ValueBase& value) const |
void | get_preferred_width (const Glib::RefPtr< Container >& container, float for_height, float& min_width_p, float& natural_width_p) const |
Computes the minimum and natural widths of the container according to manager. More... | |
void | get_preferred_height (const Glib::RefPtr< Container >& container, float for_width, float& min_height_p, float& natural_height_p) const |
Computes the minimum and natural heights of the container according to manager. More... | |
void | allocate (const Glib::RefPtr< Container >& container, const ActorBox& box, AllocationFlags absolute_origin_changed) |
Allocates the children of container given an area. More... | |
void | set_container (const Glib::RefPtr< Container >& container) |
If the Clutter::LayoutManager sub-class allows it, allow adding a weak reference of the container using manager from within the layout manager. More... | |
void | layout_changed () |
Emits the Clutter::LayoutManager::signal_layout_changed() signal on manager. More... | |
Glib::RefPtr< LayoutMeta > | get_child_meta (const Glib::RefPtr< Container >& container, const Glib::RefPtr< Actor >& actor) |
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. More... | |
Glib::RefPtr< const LayoutMeta > | get_child_meta (const Glib::RefPtr< Container >& container, const Glib::RefPtr< Actor >& actor) const |
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. More... | |
Glib::RefPtr< Alpha > | begin_animation (guint duration, gulong mode) |
Begins an animation of duration milliseconds, using the provided easing mode. More... | |
Glib::RefPtr< const Alpha > | begin_animation (guint duration, gulong mode) const |
Begins an animation of duration milliseconds, using the provided easing mode. More... | |
double | get_animation_progress () |
Retrieves the progress of the animation, if one has been started by begin_animation() More... | |
void | end_animation () |
Ends an animation started by begin_animation() More... | |
virtual void | get_preferred_width_vfunc (const Glib::RefPtr< Container >& container, float for_height, float& min_width_p, float& natural_width_p) const |
virtual void | get_preferred_height_vfunc (const Glib::RefPtr< Container >& container, float for_width, float& min_height_p, float& natural_height_p) const |
virtual void | allocate_vfunc (const Glib::RefPtr< Container >& container, const ActorBox& box, AllocationFlags absolute_origin_changed) |
virtual void | set_container_vfunc (const Glib::RefPtr< Container >& container) |
virtual GType | get_child_meta_type_vfunc () const |
virtual Glib::RefPtr< LayoutMeta > | create_child_meta_vfunc (const Glib::RefPtr< Container >& container, const Glib::RefPtr< Actor >& actor) |
virtual Glib::RefPtr< Alpha > | begin_animation_vfunc (guint duration, gulong mode) |
virtual double | get_animation_progress_vfunc () |
virtual void | end_animation_vfunc () |
Glib::SignalProxy0< void > | signal_layout_changed () |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
Protected Member Functions | |
LayoutManager () | |
virtual void | on_layout_changed () |
This is a default handler for the signal signal_layout_changed(). More... | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Clutter::LayoutManager > | wrap (ClutterLayoutManager* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
Constructor & Destructor Documentation
|
virtual |
|
protected |
Member Function Documentation
void Clutter::LayoutManager::allocate | ( | const Glib::RefPtr< Container >& | container, |
const ActorBox& | box, | ||
AllocationFlags | absolute_origin_changed | ||
) |
Allocates the children of container given an area.
See also Clutter::Actor::allocate()
- Parameters
-
container The Clutter::Container using manager. allocation The Clutter::ActorBox containing the allocated area of container. flags The allocation flags.
|
virtual |
Glib::RefPtr<Alpha> Clutter::LayoutManager::begin_animation | ( | guint | duration, |
gulong | mode | ||
) |
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
Deprecated: 1.12
- Parameters
-
duration The duration of the animation, in milliseconds. mode The easing mode of the animation.
- Returns
- The Clutter::Alpha created by the layout manager; the returned instance is owned by the layout manager and should not be unreferenced.
Glib::RefPtr<const Alpha> Clutter::LayoutManager::begin_animation | ( | guint | duration, |
gulong | mode | ||
) | const |
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
Deprecated: 1.12
- Parameters
-
duration The duration of the animation, in milliseconds. mode The easing mode of the animation.
- Returns
- The Clutter::Alpha created by the layout manager; the returned instance is owned by the layout manager and should not be unreferenced.
|
virtual |
|
virtual |
void Clutter::LayoutManager::end_animation | ( | ) |
Ends an animation started by begin_animation()
The result of this call depends on the manager implementation
Deprecated: 1.12
|
virtual |
double Clutter::LayoutManager::get_animation_progress | ( | ) |
Retrieves the progress of the animation, if one has been started by begin_animation()
The returned value has the same semantics of the Clutter::Alpha::property_alpha() value
Deprecated: 1.12
- Returns
- The progress of the animation.
|
virtual |
Glib::RefPtr<LayoutMeta> Clutter::LayoutManager::get_child_meta | ( | const Glib::RefPtr< Container >& | container, |
const Glib::RefPtr< Actor >& | actor | ||
) |
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.
- Parameters
-
container A Clutter::Container using manager. actor A Clutter::Actor child of container.
- Returns
- A Clutter::LayoutMeta, or
0
if the Clutter::LayoutManager does not have layout properties. The returned layout meta instance is owned by the Clutter::LayoutManager and it should not be unreferenced.
Glib::RefPtr<const LayoutMeta> Clutter::LayoutManager::get_child_meta | ( | const Glib::RefPtr< Container >& | container, |
const Glib::RefPtr< Actor >& | actor | ||
) | const |
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.
- Parameters
-
container A Clutter::Container using manager. actor A Clutter::Actor child of container.
- Returns
- A Clutter::LayoutMeta, or
0
if the Clutter::LayoutManager does not have layout properties. The returned layout meta instance is owned by the Clutter::LayoutManager and it should not be unreferenced.
|
virtual |
|
inline |
void Clutter::LayoutManager::get_child_property_value | ( | const Glib::RefPtr< Container >& | container, |
const Glib::RefPtr< const Actor >& | actor, | ||
const Glib::ustring & | property_name, | ||
Glib::ValueBase & | value | ||
) | const |
void Clutter::LayoutManager::get_preferred_height | ( | const Glib::RefPtr< Container >& | container, |
float | for_width, | ||
float & | min_height_p, | ||
float & | natural_height_p | ||
) | const |
Computes the minimum and natural heights of the container according to manager.
See also Clutter::Actor::get_preferred_height()
- Parameters
-
container The Clutter::Container using manager. for_width The width for which the height should be computed, or -1. min_height_p Return location for the minimum height of the layout, or 0
.nat_height_p Return location for the natural height of the layout, or 0
.
|
virtual |
void Clutter::LayoutManager::get_preferred_width | ( | const Glib::RefPtr< Container >& | container, |
float | for_height, | ||
float & | min_width_p, | ||
float & | natural_width_p | ||
) | const |
Computes the minimum and natural widths of the container according to manager.
See also Clutter::Actor::get_preferred_width()
- Parameters
-
container The Clutter::Container using manager. for_height The height for which the width should be computed, or -1. min_width_p Return location for the minimum width of the layout, or 0
.nat_width_p Return location for the natural width of the layout, or 0
.
|
virtual |
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
inline |
Provides access to the underlying C GObject.
ClutterLayoutManager* Clutter::LayoutManager::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
void Clutter::LayoutManager::layout_changed | ( | ) |
Emits the Clutter::LayoutManager::signal_layout_changed() signal on manager.
This function should only be called by implementations of the Clutter::LayoutManager class
|
protectedvirtual |
This is a default handler for the signal signal_layout_changed().
|
inline |
void Clutter::LayoutManager::set_child_property_value | ( | const Glib::RefPtr< Container >& | container, |
const Glib::RefPtr< Actor >& | child, | ||
const Glib::ustring & | property_name, | ||
const Glib::ValueBase & | value | ||
) |
Sets a property on the Clutter::LayoutMeta created by manager and attached to a child of container.
- Parameters
-
container A Clutter::Container using manager. actor A Clutter::Actor child of container. property_name The name of the property to set. value A Value with the value of the property to set.
void Clutter::LayoutManager::set_container | ( | const Glib::RefPtr< Container >& | container) |
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
- Parameters
-
container A Clutter::Container using manager.
|
virtual |
Glib::SignalProxy0< void > Clutter::LayoutManager::signal_layout_changed | ( | ) |
- Slot Prototype:
void on_my_layout_changed()
The signal_layout_changed() signal is emitted each time a layout manager has been changed. Every Clutter::Actor using the manager instance as a layout manager should connect a handler to the signal_layout_changed() signal and queue a relayout on themselves:
[C example ellipted]
Sub-classes of Clutter::LayoutManager that implement a layout that can be controlled or changed using parameters should emit the signal_layout_changed() signal whenever one of the parameters changes, by using Clutter::LayoutManager::layout_changed().
Friends And Related Function Documentation
|
related |
A Glib::wrap() method for this object.
- Parameters
-
object The C instance. take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file:
- cluttermm/layout-manager.h