Clutter.BehaviourScale¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Behaviour (10), GObject.Object (37), Clutter.Scriptable (4)
- Structs:
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Final scale on the X axis |
||
r/w |
Initial scale on the X axis |
||
r/w |
Final scale on the Y axis |
||
r/w |
Initial scale on the Y axis |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.BehaviourScale(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.BehaviourScale
struct contains only private data and should be accessed using the provided APINew in version 0.2.
Deprecated since version 1.6: Use clutter_actor_animate() with
Clutter.Actor
:scale-x
andClutter.Actor
:scale-y
instead.- classmethod new(alpha, x_scale_start, y_scale_start, x_scale_end, y_scale_end)¶
- Parameters:
alpha (
Clutter.Alpha
orNone
) – aClutter.Alpha
instance, orNone
x_scale_start (
float
) – initial scale factor on the X axisy_scale_start (
float
) – initial scale factor on the Y axisx_scale_end (
float
) – final scale factor on the X axisy_scale_end (
float
) – final scale factor on the Y axis
- Returns:
the newly created
Clutter.BehaviourScale
- Return type:
Creates a new
Clutter.BehaviourScale
instance.If alpha is not
None
, theClutter.Behaviour
will take ownership of theClutter.Alpha
instance. In the case when alpha isNone
, it can be set later withClutter.Behaviour.set_alpha
().New in version 0.2.
Deprecated since version 1.6.
- get_bounds()¶
- Returns:
- x_scale_start:
return location for the initial scale factor on the X axis, or
None
- y_scale_start:
return location for the initial scale factor on the Y axis, or
None
- x_scale_end:
return location for the final scale factor on the X axis, or
None
- y_scale_end:
return location for the final scale factor on the Y axis, or
None
- Return type:
(x_scale_start:
float
, y_scale_start:float
, x_scale_end:float
, y_scale_end:float
)
Retrieves the bounds used by scale behaviour.
New in version 0.4.
Deprecated since version 1.6.
- set_bounds(x_scale_start, y_scale_start, x_scale_end, y_scale_end)¶
- Parameters:
Sets the bounds used by scale behaviour.
New in version 0.6.
Deprecated since version 1.6.
Property Details¶
- Clutter.BehaviourScale.props.x_scale_end¶
-
The final scaling factor on the X axis for the actors.
New in version 0.6.
Deprecated since version 1.6.
- Clutter.BehaviourScale.props.x_scale_start¶
-
The initial scaling factor on the X axis for the actors.
New in version 0.6.
Deprecated since version 1.6.
- Clutter.BehaviourScale.props.y_scale_end¶
-
The final scaling factor on the Y axis for the actors.
New in version 0.6.
Deprecated since version 1.6.