cluttermm: Clutter::BindConstraint Class Reference
BindConstraint is a Constraint that binds the position or the size of the Actor to which it is applied to the the position or the size of another Actor, or "source". More...
Public Member Functions | |
virtual | ~BindConstraint () |
ClutterBindConstraint* | gobj () |
Provides access to the underlying C GObject. More... | |
const ClutterBindConstraint* | gobj () const |
Provides access to the underlying C GObject. More... | |
ClutterBindConstraint* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
void | set_source (const Glib::RefPtr< Actor >& source) |
Sets the source Clutter::Actor for the constraint. More... | |
Glib::RefPtr< Actor > | get_source () |
Retrieves the Clutter::Actor set using set_source() More... | |
Glib::RefPtr< const Actor > | get_source () const |
Retrieves the Clutter::Actor set using set_source() More... | |
void | set_coordinate (BindCoordinate coordinate) |
Sets the coordinate to bind in the constraint. More... | |
BindCoordinate | get_coordinate () const |
Retrieves the bound coordinate of the constraint. More... | |
void | set_offset (float offset) |
Sets the offset to be applied to the constraint. More... | |
float | get_offset () const |
Retrieves the offset set using set_offset() More... | |
Public Member Functions inherited from Clutter::Constraint | |
virtual | ~Constraint () |
ClutterConstraint* | gobj () |
Provides access to the underlying C GObject. More... | |
const ClutterConstraint* | gobj () const |
Provides access to the underlying C GObject. More... | |
ClutterConstraint* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
Public Member Functions inherited from Clutter::ActorMeta | |
virtual | ~ActorMeta () |
ClutterActorMeta* | gobj () |
Provides access to the underlying C GObject. More... | |
const ClutterActorMeta* | gobj () const |
Provides access to the underlying C GObject. More... | |
ClutterActorMeta* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
void | set_name (const Glib::ustring& name) |
Sets the name of meta. More... | |
Glib::ustring | get_name () const |
Retrieves the name set using set_name() More... | |
void | set_enabled (bool is_enabled=true) |
Sets whether meta should be enabled or not. More... | |
bool | get_enabled () const |
Retrieves whether meta is enabled. More... | |
Glib::RefPtr< Actor > | get_actor () |
Retrieves a pointer to the Clutter::Actor that owns meta. More... | |
Glib::RefPtr< const Actor > | get_actor () const |
Retrieves a pointer to the Clutter::Actor that owns meta. More... | |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
static Glib::RefPtr < BindConstraint > | create (const Glib::RefPtr< Actor >& source, BindCoordinate coordinate, float offset) |
Static Public Member Functions inherited from Clutter::Constraint | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
Static Public Member Functions inherited from Clutter::ActorMeta | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Clutter::BindConstraint > | wrap (ClutterBindConstraint* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
Related Functions inherited from Clutter::Constraint | |
Glib::RefPtr< Clutter::Constraint > | wrap (ClutterConstraint* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
Related Functions inherited from Clutter::ActorMeta | |
Glib::RefPtr< Clutter::ActorMeta > | wrap (ClutterActorMeta* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
Detailed Description
BindConstraint is a Constraint that binds the position or the size of the Actor to which it is applied to the the position or the size of another Actor, or "source".
An offset can be applied to the constraint, to avoid overlapping. The offset can also be animated.
Constructor & Destructor Documentation
|
virtual |
|
explicitprotected |
Member Function Documentation
|
static |
BindCoordinate Clutter::BindConstraint::get_coordinate | ( | ) | const |
float Clutter::BindConstraint::get_offset | ( | ) | const |
Glib::RefPtr<Actor> Clutter::BindConstraint::get_source | ( | ) |
Retrieves the Clutter::Actor set using set_source()
- Returns
- A pointer to the source actor.
Glib::RefPtr<const Actor> Clutter::BindConstraint::get_source | ( | ) | const |
Retrieves the Clutter::Actor set using set_source()
- Returns
- A pointer to the source actor.
|
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.
ClutterBindConstraint* Clutter::BindConstraint::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
protected |
The coordinate to bind.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
|
protected |
The coordinate to bind.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
|
protected |
The offset in pixels to apply to the binding.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
|
protected |
The offset in pixels to apply to the binding.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
|
protected |
The source of the binding.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
|
protected |
The source of the binding.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
void Clutter::BindConstraint::set_coordinate | ( | BindCoordinate | coordinate) |
Sets the coordinate to bind in the constraint.
- Parameters
-
coordinate The coordinate to bind.
void Clutter::BindConstraint::set_offset | ( | float | offset) |
Sets the offset to be applied to the constraint.
- Parameters
-
offset The offset to apply, in pixels.
void Clutter::BindConstraint::set_source | ( | const Glib::RefPtr< Actor >& | source) |
Sets the source Clutter::Actor for the constraint.
- Parameters
-
source A Clutter::Actor, or 0
to unset the source.
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/bind-constraint.h