GObject.Object
GObject.InitiallyUnowned
Clutter.Interval
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterInterval |
Class : | Interval |
Extends: | GObject.InitiallyUnowned |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
parent_instance : GObject.InitiallyUnowned
read only
|
Clutter.Interval | |
priv : Clutter.IntervalPrivate
read only
|
Clutter.Interval | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
ref_count : Number
|
GObject.InitiallyUnowned | |
value_type : Number
The type of the values in the interval.
The type of the values in the interval.
|
Clutter.Interval |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Interval
(Object properties)
Create a new Clutter.Interval
Create a new Clutter.Interval
|
||
Create a new Clutter.Interval
Create a new Clutter.Interval
|
||
Sets the progress function for a given value_type, like: |[ clutter_interval_register_progress_func (MY_TYPE_FOO, my_foo_progress); ]| Whenever a ClutterInterval instance using the default ClutterInterval::compute_value implementation is set as an interval between two GValue of type value_type, it will call for instance: |[ static gboolean my_int_progress (const GValue *a, const GValue *b, gdouble progress, GValue *retval) { gint ia = g_value_get_int (a); gint ib = g_value_get_int (b); gint res = factor * (ib - ia) + ia; g_value_set_int (retval, res); return TRUE; } clutter_interval_register_progress_func (G_TYPE_INT, my_int_progress); ]| To unset a previously set progress function of a GType, pass NULL for func.
Sets the progress function for a given value_type, like: |[ clutter_interval_register_progress_func (MY_TYPE_FOO, my_foo_progress); ]| Whenever a ClutterInterval instance using the default ClutterInterval::compute_value implementation is set as an interval between two GValue of type value_type, it will call for instance: |[ static gboolean my_int_progress (const GValue *a, const GValue *b, gdouble progress, GValue *retval) { gint ia = g_value_get_int (a); gint ib = g_value_get_int (b); gint res = factor * (ib - ia) + ia; g_value_set_int (retval, res); return TRUE; } clutter_interval_register_progress_func (G_TYPE_INT, my_int_progress); ]| To unset a previously set progress function of a GType, pass NULL for func.
|
Clutter.Interval | |
clone
()
:
Clutter.Interval
Creates a copy of interval.
Creates a copy of interval.
|
Clutter.Interval | |
Computes the value between the interval boundaries given the progress factor and puts it into value.
Computes the value between the interval boundaries given the progress factor and puts it into value.
|
Clutter.Interval | |
get_final_value
(Value value)
:
none
Retrieves the final value of interval and copies it into value.
Retrieves the final value of interval and copies it into value. The passed GValue must be initialized to the value held by the ClutterInterval.
|
Clutter.Interval | |
get_initial_value
(Value value)
:
none
Retrieves the initial value of interval and copies it into value.
Retrieves the initial value of interval and copies it into value. The passed GValue must be initialized to the value held by the ClutterInterval.
|
Clutter.Interval | |
get_value_type
()
:
Number
Retrieves the GType of the values inside interval.
Retrieves the GType of the values inside interval.
|
Clutter.Interval | |
peek_final_value
()
:
GObject.Value
Gets the pointer to the final value of interval
Gets the pointer to the final value of interval
|
Clutter.Interval | |
peek_initial_value
()
:
GObject.Value
Gets the pointer to the initial value of interval
Gets the pointer to the initial value of interval
|
Clutter.Interval | |
set_final_value
(Value value)
:
none
Sets the final value of interval to value.
Sets the final value of interval to value. The value is copied inside the ClutterInterval.
|
Clutter.Interval | |
set_initial_value
(Value value)
:
none
Sets the initial value of interval to value.
Sets the initial value of interval to value. The value is copied inside the ClutterInterval.
|
Clutter.Interval | |
Validates the initial and final values of interval against a GParamSpec.
Validates the initial and final values of interval against a GParamSpec.
|
Clutter.Interval |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.Animation
Method |
Binds interval to the property_name of the GObject attached to animation.
|
Clutter.Animation
Method |
Changes the interval for property_name.
|
Clutter.Animation
Method |
get_interval
(String property_name)
:
Clutter.Interval
Retrieves the ClutterInterval associated to property_name inside animation.
|