Clutter.ZoomAction¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.GestureAction (18), Clutter.ActorMeta (5), GObject.Object (37)
- Structs:
class |
|
|
Virtual Methods¶
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Constraints the zoom to an axis |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.ZoomAction(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.ZoomAction
structure contains only private data and should be accessed using the provided APINew in version 1.12.
- classmethod new()¶
- Returns:
the newly created
Clutter.ZoomAction
- Return type:
Creates a new
Clutter.ZoomAction
instanceNew in version 1.12.
- get_focal_point()¶
- Returns:
- Return type:
point:
Clutter.Point
Retrieves the focal point of the current zoom
New in version 1.12.
- get_transformed_focal_point()¶
- Returns:
- Return type:
point:
Clutter.Point
Retrieves the focal point relative to the actor’s coordinates of the current zoom
New in version 1.12.
- get_zoom_axis()¶
- Returns:
the axis constraint
- Return type:
Retrieves the axis constraint set by
Clutter.ZoomAction.set_zoom_axis
()New in version 1.12.
- set_zoom_axis(axis)¶
- Parameters:
axis (
Clutter.ZoomAxis
) – the axis to constraint the zooming to
Restricts the zooming action to a specific axis
New in version 1.12.
- do_zoom(actor, focal_point, factor) virtual¶
- Parameters:
actor (
Clutter.Actor
) –focal_point (
Clutter.Point
) –factor (
float
) –
- Return type:
Signal Details¶
- Clutter.ZoomAction.signals.zoom(zoom_action, actor, focal_point, factor)¶
- Signal Name:
zoom
- Flags:
- Parameters:
zoom_action (
Clutter.ZoomAction
) – The object which received the signalactor (
Clutter.Actor
) – theClutter.Actor
attached to the actionfocal_point (
Clutter.Point
) – the focal point of the zoomfactor (
float
) – the initial distance between the 2 touch points
- Returns:
True
if the zoom should continue, andFalse
if the zoom should be cancelled.- Return type:
The
::zoom
signal is emitted for each series of touch events that change the distance and focal point between the touch points.The default handler of the signal will call
Clutter.Actor.set_scale
() on actor using the ratio of the first distance between the touch points and the current distance. To override the default behaviour, connect to this signal and returnFalse
.New in version 1.12.
Property Details¶
- Clutter.ZoomAction.props.zoom_axis¶
- Name:
zoom-axis
- Type:
- Default Value:
- Flags:
Constraints the zooming action to the specified axis
New in version 1.12.