cluttermm: Clutter::LayoutManager Class Reference

Inheritance diagram for Clutter::LayoutManager:
Collaboration diagram for Clutter::LayoutManager:

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< LayoutMetaget_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 LayoutMetaget_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< Alphabegin_animation (guint duration, gulong mode)
 Begins an animation of duration milliseconds, using the provided easing mode. More...

 
Glib::RefPtr< const Alphabegin_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< LayoutMetacreate_child_meta_vfunc (const Glib::RefPtr< Container >& container, const Glib::RefPtr< Actor >& actor)
 
virtual Glib::RefPtr< Alphabegin_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 Clutter::LayoutManager::~LayoutManager ( )
virtual
Clutter::LayoutManager::LayoutManager ( )
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()

Since cluttermm 1.2:
Parameters
containerThe Clutter::Container using manager.
allocationThe Clutter::ActorBox containing the allocated area of container.
flagsThe allocation flags.
virtual void Clutter::LayoutManager::allocate_vfunc ( const Glib::RefPtr< Container >&  container,
const ActorBox box,
AllocationFlags  absolute_origin_changed 
)
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

Since cluttermm 1.2:

Deprecated: 1.12

Parameters
durationThe duration of the animation, in milliseconds.
modeThe 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

Since cluttermm 1.2:

Deprecated: 1.12

Parameters
durationThe duration of the animation, in milliseconds.
modeThe 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 Glib::RefPtr<Alpha> Clutter::LayoutManager::begin_animation_vfunc ( guint  duration,
gulong  mode 
)
virtual
virtual Glib::RefPtr<LayoutMeta> Clutter::LayoutManager::create_child_meta_vfunc ( const Glib::RefPtr< Container >&  container,
const Glib::RefPtr< Actor >&  actor 
)
virtual
void Clutter::LayoutManager::end_animation ( )

Ends an animation started by begin_animation()

The result of this call depends on the manager implementation

Since cluttermm 1.2:

Deprecated: 1.12

virtual void Clutter::LayoutManager::end_animation_vfunc ( )
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

Since cluttermm 1.2:

Deprecated: 1.12

Returns
The progress of the animation.
virtual double Clutter::LayoutManager::get_animation_progress_vfunc ( )
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.

Since cluttermm 1.0:
Parameters
containerA Clutter::Container using manager.
actorA 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.

Since cluttermm 1.0:
Parameters
containerA Clutter::Container using manager.
actorA 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 GType Clutter::LayoutManager::get_child_meta_type_vfunc ( ) const
virtual
template <class PropertyType >
void Clutter::LayoutManager::get_child_property ( const Glib::RefPtr< Container >&  container,
const Glib::RefPtr< const Actor >&  actor,
const Glib::ustring property_name,
PropertyType &  value 
) const
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()

Since cluttermm 1.2:
Parameters
containerThe Clutter::Container using manager.
for_widthThe width for which the height should be computed, or -1.
min_height_pReturn location for the minimum height of the layout, or 0.
nat_height_pReturn location for the natural height of the layout, or 0.
virtual void Clutter::LayoutManager::get_preferred_height_vfunc ( const Glib::RefPtr< Container >&  container,
float  for_width,
float &  min_height_p,
float &  natural_height_p 
) const
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()

Since cluttermm 1.2:
Parameters
containerThe Clutter::Container using manager.
for_heightThe height for which the width should be computed, or -1.
min_width_pReturn location for the minimum width of the layout, or 0.
nat_width_pReturn location for the natural width of the layout, or 0.
virtual void Clutter::LayoutManager::get_preferred_width_vfunc ( const Glib::RefPtr< Container >&  container,
float  for_height,
float &  min_width_p,
float &  natural_width_p 
) const
virtual
static GType Clutter::LayoutManager::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

ClutterLayoutManager* Clutter::LayoutManager::gobj ( )
inline

Provides access to the underlying C GObject.

const ClutterLayoutManager* Clutter::LayoutManager::gobj ( ) const
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

Since cluttermm 1.2:
virtual void Clutter::LayoutManager::on_layout_changed ( )
protectedvirtual

This is a default handler for the signal signal_layout_changed().

template <class PropertyType >
void Clutter::LayoutManager::set_child_property ( const Glib::RefPtr< Container >&  container,
const Glib::RefPtr< Actor >&  child,
const Glib::ustring property_name,
const PropertyType &  value 
)
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.

Since cluttermm 1.2:
Parameters
containerA Clutter::Container using manager.
actorA Clutter::Actor child of container.
property_nameThe name of the property to set.
valueA 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

Since cluttermm 1.2:
Parameters
containerA Clutter::Container using manager.
virtual void Clutter::LayoutManager::set_container_vfunc ( const Glib::RefPtr< Container >&  container)
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().

Since cluttermm 1.2:

Friends And Related Function Documentation

Glib::RefPtr< Clutter::LayoutManager > wrap ( ClutterLayoutManager *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse 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