clutter.Actor
class clutter.Actor(gobject.GInitiallyUnowned): |
gobject.GObject +--gobject.GInitiallyUnowned +-- clutter.Actor
|
def callback( | |
def callback( | |
def callback( | |
"destroy" | def callback( |
def callback( | |
"event" | def callback( |
"focus-in" | def callback( |
def callback( | |
def callback( | |
def callback( | |
def callback( | |
def callback( | |
def callback( | |
def callback( | |
"show" | def callback( |
"hide" | def callback( |
"paint" | def callback( |
"realize" | def callback( |
def callback( |
clutter.Actor
is a
base abstract class for all visual elements on the stage. Every object that must
appear on the main clutter.Stage
must also be a clutter.Actor
,
either by using one of the classes provided by Clutter, or by implementing a new
clutter.Actor
subclass.
def set_rotation(axis
, angle
, x
, y
, z
)
| a ClutterRotateAxis |
| a gdouble |
| a gint |
| a gint |
| a gint |
def get_rotation(axis
, x
, y
, z
)
| a ClutterRotateAxis |
| a gint* |
| a gint* |
| a gint* |
Returns : | a gdouble |
def set_clip(x_offset
, y_offset
, width
, height
)
| a gint |
| a gint |
| a gint |
| a gint |
def apply_transform_to_point(point
, vertex
)
| a ClutterVertex* |
| a ClutterVertex* |
def apply_relative_transform_to_point(ancestor
, point
, vertex
)
| a ClutterActor* |
| a ClutterVertex* |
| a ClutterVertex* |
def get_clip(xoff
, yoff
, width
, height
)
| a gint* |
| a gint* |
| a gint* |
| a gint* |
def event(event
, capture
)
| a ClutterEvent* |
| a gboolean |
Returns : | a gboolean |
def set_anchor_point(anchor_x
, anchor_y
)
| a gint |
| a gint |
def move_anchor_point(anchor_x
, anchor_y
)
| a gint |
| a gint |
def get_anchor_point(anchor_x
, anchor_y
)
| a gint* |
| a gint* |
def set_anchor_point_from_gravity(gravity
)
| a ClutterGravity |
def move_anchor_point_from_gravity(gravity
)
| a ClutterGravity |
def transform_stage_point(x
, y
, x_out
, y_out
)
| a gint32 |
| a gint32 |
| a gint32* |
| a gint32* |
Returns : | a gboolean |
def get_preferred_width(for_height
, min_width_p
, natural_width_p
)
| a gint32 |
| a gint32* |
| a gint32* |
def get_preferred_height(for_width
, min_height_p
, natural_height_p
)
| a gint32 |
| a gint32* |
| a gint32* |
def get_preferred_size(min_width_p
, min_height_p
, natural_width_p
, natural_height_p
)
| a gint32* |
| a gint32* |
| a gint32* |
| a gint32* |
def allocate(box
, absolute_origin_changed
)
| a clutter.ActorBox |
| a boolean |
def allocate_preferred_size(absolute_origin_changed
)
| a gboolean |
def get_allocation_coords()
| a gint* |
| a gint* |
| a gint* |
| a gint* |
def get_allocation_vertices(ancestor
, verts[4]
)
| a ClutterActor* |
| a ClutterVertex |
def get_transformed_size(width
, height
)
| a guint* |
| a guint* |
def get_transformed_sizeu(width
, height
)
| a gint32* |
| a gint32* |
def set_rotationx(axis
, angle
, x
, y
, z
)
| a ClutterRotateAxis |
| a ClutterFixed |
| a gint |
| a gint |
| a gint |
def set_rotationu(axis
, angle
, x
, y
, z
)
| a ClutterRotateAxis |
| a gdouble |
| a gint32 |
| a gint32 |
| a gint32 |
def get_rotationx(axis
, x
, y
, z
)
| a ClutterRotateAxis |
| a gint* |
| a gint* |
| a gint* |
Returns : | a ClutterFixed |
def get_rotationu(axis
, x
, y
, z
)
| a ClutterRotateAxis |
| a gint32* |
| a gint32* |
| a gint32* |
Returns : | a gdouble |
def set_clipu(xoff
, yoff
, width
, height
)
| a gint32 |
| a gint32 |
| a gint32 |
| a gint32 |
def get_clipu(xoff
, yoff
, width
, height
)
| a gint32* |
| a gint32* |
| a gint32* |
| a gint32* |
def set_scalex(scale_x
, scale_y
)
| a ClutterFixed |
| a ClutterFixed |
def get_scalex(scale_x
, scale_y
)
| a ClutterFixed* |
| a ClutterFixed* |
def set_anchor_pointu(anchor_x
, anchor_y
)
| a gint32 |
| a gint32 |
def move_anchor_pointu(anchor_x
, anchor_y
)
| a gint32 |
| a gint32 |
def get_anchor_pointu(anchor_x
, anchor_y
)
| a gint32* |
| a gint32* |
def get_abs_allocation_vertices(verts[4]
)
| a ClutterVertex |
def callback(actor
, event
, user_param1
, ...
)
| the object which received the event |
| a clutter.ButtonEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "button-press-event" signal is emitted each time a mouse button is pressed on actor
.
def callback(actor
, event
, user_param1
, ...
)
| the object which received the event |
| a clutter.ButtonEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "button-release-event" signal is emitted each time a mouse button is released on actor
.
def callback(actor
, event
, user_param1
, ...
)
| the object which received the signal |
| a clutter.Event |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "captured-event" signal is emitted when an event is captured by Clutter.
This signal will be emitted starting from the top-level container (the
clutter.Stage
)
to the actor which received the event going down the hierarchy. This signal
can be used to intercept every event before the specialized events
(like "button-press-event" or
"
def callback(actor
, user_param1
, ...
)
| the object which received the signal |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "destroy" signal is emitted when an actor is destroyed, either by direct invocation of
clutter.Actor.destroy
()
or when the clutter.Group
that
contains the actor is destroyed.
def callback(actor
, event
, user_param1
, ...
)
| the object which the pointer has entered |
| a clutter.CrossingEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "event-event" signal is emitted when the pointer enters the actor
.
def callback(actor
, event
, user_param1
, ...
)
| the object which received the event |
| a clutter.Event |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "event" signal is emitted each time an event is received by the actor.
This signal will be emitted on every actor, following the hierarchy chain,
until it reaches the top-level container (the
clutter.Stage
).
def callback(actor
, user_param1
, ...
)
| the actor which now now has key focus |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "focus-in" signal is emitted when actor
recieves key focus.
def callback(actor
, user_param1
, ...
)
| the actor which now now has key focus |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "focus-out" signal is emitted when actor
loses key focus.
def callback(actor
, user_param1
, ...
)
| the object which received the signal |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "hide" signal is emitted when an actor is no longer visible.
def callback(actor
, event
, user_param1
, ...
)
| the actor which received the event |
| a clutter.KeyEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "key-press-event" signal is emitted each time a keyboard button
is pressed on actor
.
def callback(actor
, event
, user_param1
, ...
)
| the actor which received the event |
| a clutter.KeyEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "key-press-event" signal is emitted each time a keyboard button
is released on actor
.
def callback(actor
, event
, user_param1
, ...
)
| the actor which the pointer has left |
| a clutter.CrossingEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "leave-event" signal is emitted when the pointer leaves the actor
.
def callback(actor
, event
, user_param1
, ...
)
| the actor which the pointer has moved on |
| a clutter.MotionEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "motion-event" signal is emitted each time the mouse pointer is moved on actor
.
def callback(actor
, old_parent
, user_param1
, ...
)
| the actor which received the signal |
| the previous parent of the actor, or None |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "parent-set" signal is emitted when the parent of the actor changes.
def callback(actor
, event
, user_param1
, ...
)
| the actor which received the event |
| a clutter.ScrollEvent |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
| True if the event has been handled by the actor,
or False to continue the emission. |
The "scroll-event" signal is emitted each time the mouse is scrolled on actor
.
def callback(actor
, user_param1
, ...
)
| the actor which received the event |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "show" signal is emitted when an actor becomes visible.
def callback(actor
, user_param1
, ...
)
| the actor which received the event |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "paint" signal is emitted when an actor is being painted.
def callback(actor
, user_param1
, ...
)
| the actor which received the event |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "realize" signal is emitted when an actor is being realized.
def callback(actor
, user_param1
, ...
)
| the actor which received the event |
| the first user parameter (if any) specified
with the connect () method |
| additional user parameters (if any) |
The "unrealize" signal is emitted when an actor is being unrealized.