Class: Clutter::Alpha
- Inherits:
-
GObject::InitiallyUnowned
- Object
- GObject::InitiallyUnowned
- Clutter::Alpha
- Defined in:
- (unknown)
Overview
Base class for Clutter::Alpha
Class Method Summary collapse
-
.register_closure(closure) ⇒ Clutter::gulong
#GClosure variant of clutter_alpha_register_func().
-
.register_func(func, data) ⇒ Clutter::gulong
Registers a global alpha function and returns its logical id to be used by clutter_alpha_set_mode() or by Clutter::Animation.
Instance Method Summary collapse
-
#alpha ⇒ Float
The alpha value as computed by the alpha function.
-
#alpha=(alpha) ⇒ Float
The alpha value as computed by the alpha function.
-
#closure=(closure) ⇒ nil
Sets the #GClosure used to compute the alpha value at each frame of the Clutter::Timeline bound to alpha.
-
#initialize(timeline, func, data, destroy) ⇒ Clutter::Alpha
constructor
Creates a new Clutter::Alpha instances and sets the timeline and the alpha function.
-
#mode ⇒ Clutter::gulong
The progress function logical id - either a value from the Clutter::AnimationMode enumeration or a value returned by clutter_alpha_register_func().
-
#mode=(mode) ⇒ Clutter::gulong
The progress function logical id - either a value from the Clutter::AnimationMode enumeration or a value returned by clutter_alpha_register_func().
-
#set_func(func, data, destroy) ⇒ nil
Sets the Clutter::AlphaFunc function used to compute the alpha value at each frame of the Clutter::Timeline bound to alpha.
-
#timeline ⇒ Clutter::Timeline
A Clutter::Timeline instance used to drive the alpha function.
-
#timeline=(timeline) ⇒ Clutter::Timeline
A Clutter::Timeline instance used to drive the alpha function.
Constructor Details
#initialize(timeline, func, data, destroy) ⇒ Clutter::Alpha
Creates a new Clutter::Alpha instances and sets the timeline and the alpha function.
This function will not register func as a global alpha function.
See also clutter_alpha_set_timeline() and clutter_alpha_set_func().
Class Method Details
.register_closure(closure) ⇒ Clutter::gulong
#GClosure variant of clutter_alpha_register_func().
Registers a global alpha function and returns its logical id to be used by clutter_alpha_set_mode() or by Clutter::Animation.
The logical id is always greater than %CLUTTER_ANIMATION_LAST.
.register_func(func, data) ⇒ Clutter::gulong
Registers a global alpha function and returns its logical id to be used by clutter_alpha_set_mode() or by Clutter::Animation.
The logical id is always greater than %CLUTTER_ANIMATION_LAST.
Instance Method Details
#alpha ⇒ Float
The alpha value as computed by the alpha function. The linear interval is 0.0 to 1.0, but the Alpha allows overshooting by one unit in each direction, so the valid interval is -1.0 to 2.0.
#alpha=(alpha) ⇒ Float
The alpha value as computed by the alpha function. The linear interval is 0.0 to 1.0, but the Alpha allows overshooting by one unit in each direction, so the valid interval is -1.0 to 2.0.
#closure=(closure) ⇒ nil
Sets the #GClosure used to compute the alpha value at each frame of the Clutter::Timeline bound to alpha.
#mode ⇒ Clutter::gulong
The progress function logical id - either a value from the Clutter::AnimationMode enumeration or a value returned by clutter_alpha_register_func().
If %CLUTTER_CUSTOM_MODE is used then the function set using clutter_alpha_set_closure() or clutter_alpha_set_func() will be used.
#mode=(mode) ⇒ Clutter::gulong
The progress function logical id - either a value from the Clutter::AnimationMode enumeration or a value returned by clutter_alpha_register_func().
If %CLUTTER_CUSTOM_MODE is used then the function set using clutter_alpha_set_closure() or clutter_alpha_set_func() will be used.
#set_func(func, data, destroy) ⇒ nil
Sets the Clutter::AlphaFunc function used to compute the alpha value at each frame of the Clutter::Timeline bound to alpha.
This function will not register func as a global alpha function.
#timeline ⇒ Clutter::Timeline
A Clutter::Timeline instance used to drive the alpha function.
#timeline=(timeline) ⇒ Clutter::Timeline
A Clutter::Timeline instance used to drive the alpha function.