Clutter 0.8.2 Reference Manual | ||||
---|---|---|---|---|
#define CLUTTER_ACTOR_SET_FLAGS (a,f) #define CLUTTER_ACTOR_UNSET_FLAGS (a,f) #define CLUTTER_ACTOR_IS_MAPPED (e) #define CLUTTER_ACTOR_IS_REALIZED (e) #define CLUTTER_ACTOR_IS_VISIBLE (e) #define CLUTTER_ACTOR_IS_REACTIVE (e) ClutterActorBox; enum ClutterActorFlags; enum ClutterRequestMode; ClutterGeometry; #define CLUTTER_CALLBACK (f) void (*ClutterCallback) (ClutterActor *actor, gpointer data); ClutterActor; ClutterActorClass; void clutter_actor_show (ClutterActor *self); void clutter_actor_show_all (ClutterActor *self); void clutter_actor_hide (ClutterActor *self); void clutter_actor_hide_all (ClutterActor *self); void clutter_actor_realize (ClutterActor *self); void clutter_actor_unrealize (ClutterActor *self); void clutter_actor_paint (ClutterActor *self); void clutter_actor_queue_redraw (ClutterActor *self); void clutter_actor_queue_relayout (ClutterActor *self); void clutter_actor_destroy (ClutterActor *self); gboolean clutter_actor_event (ClutterActor *actor, ClutterEvent *event, gboolean capture); void clutter_actor_pick (ClutterActor *self, const ClutterColor *color); gboolean clutter_actor_should_pick_paint (ClutterActor *self); void clutter_actor_allocate (ClutterActor *self, const ClutterActorBox *box, gboolean absolute_origin_changed); void clutter_actor_allocate_preferred_size (ClutterActor *self, gboolean absolute_origin_changed); void clutter_actor_get_allocation_coords (ClutterActor *self, gint *x_1, gint *y_1, gint *x_2, gint *y_2); void clutter_actor_get_allocation_box (ClutterActor *self, ClutterActorBox *box); void clutter_actor_get_allocation_geometry (ClutterActor *self, ClutterGeometry *geom); void clutter_actor_get_allocation_vertices (ClutterActor *self, ClutterActor *ancestor, ClutterVertex verts[4]); void clutter_actor_get_preferred_size (ClutterActor *self, ClutterUnit *min_width_p, ClutterUnit *min_height_p, ClutterUnit *natural_width_p, ClutterUnit *natural_height_p); void clutter_actor_get_preferred_width (ClutterActor *self, ClutterUnit for_height, ClutterUnit *min_width_p, ClutterUnit *natural_width_p); void clutter_actor_get_preferred_height (ClutterActor *self, ClutterUnit for_width, ClutterUnit *min_height_p, ClutterUnit *natural_height_p); void clutter_actor_set_fixed_position_set (ClutterActor *self, gboolean is_set); gboolean clutter_actor_get_fixed_position_set (ClutterActor *self); void clutter_actor_set_geometry (ClutterActor *self, const ClutterGeometry *geometry); void clutter_actor_get_geometry (ClutterActor *self, ClutterGeometry *geometry); void clutter_actor_set_size (ClutterActor *self, gint width, gint height); void clutter_actor_get_size (ClutterActor *self, guint *width, guint *height); void clutter_actor_set_position (ClutterActor *self, gint x, gint y); void clutter_actor_get_position (ClutterActor *self, gint *x, gint *y); void clutter_actor_set_width (ClutterActor *self, guint width); guint clutter_actor_get_width (ClutterActor *self); void clutter_actor_set_height (ClutterActor *self, guint height); guint clutter_actor_get_height (ClutterActor *self); void clutter_actor_set_x (ClutterActor *self, gint x); gint clutter_actor_get_x (ClutterActor *self); void clutter_actor_set_y (ClutterActor *self, gint y); gint clutter_actor_get_y (ClutterActor *self); void clutter_actor_move_by (ClutterActor *self, gint dx, gint dy); void clutter_actor_set_rotation (ClutterActor *self, ClutterRotateAxis axis, gdouble angle, gint x, gint y, gint z); gdouble clutter_actor_get_rotation (ClutterActor *self, ClutterRotateAxis axis, gint *x, gint *y, gint *z); gboolean clutter_actor_is_rotated (ClutterActor *self); void clutter_actor_set_opacity (ClutterActor *self, guint8 opacity); guint8 clutter_actor_get_opacity (ClutterActor *self); void clutter_actor_set_name (ClutterActor *self, const gchar *name); const gchar* clutter_actor_get_name (ClutterActor *self); guint32 clutter_actor_get_gid (ClutterActor *self); void clutter_actor_set_clip (ClutterActor *self, gint xoff, gint yoff, gint width, gint height); void clutter_actor_remove_clip (ClutterActor *self); gboolean clutter_actor_has_clip (ClutterActor *self); void clutter_actor_get_clip (ClutterActor *self, gint *xoff, gint *yoff, gint *width, gint *height); void clutter_actor_set_parent (ClutterActor *self, ClutterActor *parent); ClutterActor* clutter_actor_get_parent (ClutterActor *self); void clutter_actor_reparent (ClutterActor *self, ClutterActor *new_parent); void clutter_actor_unparent (ClutterActor *self); void clutter_actor_raise (ClutterActor *self, ClutterActor *below); void clutter_actor_lower (ClutterActor *self, ClutterActor *above); void clutter_actor_raise_top (ClutterActor *self); void clutter_actor_lower_bottom (ClutterActor *self); ClutterActor* clutter_actor_get_stage (ClutterActor *actor); void clutter_actor_set_depth (ClutterActor *self, gint depth); gint clutter_actor_get_depth (ClutterActor *self); void clutter_actor_set_scale (ClutterActor *self, gdouble scale_x, gdouble scale_y); void clutter_actor_get_scale (ClutterActor *self, gdouble *scale_x, gdouble *scale_y); gboolean clutter_actor_is_scaled (ClutterActor *self); void clutter_actor_apply_transform_to_point (ClutterActor *self, ClutterVertex *point, ClutterVertex *vertex); gboolean clutter_actor_transform_stage_point (ClutterActor *self, ClutterUnit x, ClutterUnit y, ClutterUnit *x_out, ClutterUnit *y_out); void clutter_actor_apply_relative_transform_to_point (ClutterActor *self, ClutterActor *ancestor, ClutterVertex *point, ClutterVertex *vertex); void clutter_actor_get_transformed_position (ClutterActor *self, gint *x, gint *y); void clutter_actor_get_transformed_size (ClutterActor *self, guint *width, guint *height); guint8 clutter_actor_get_paint_opacity (ClutterActor *self); void clutter_actor_get_abs_allocation_vertices (ClutterActor *self, ClutterVertex verts[4]); ClutterVertex; void clutter_actor_box_get_from_vertices (ClutterVertex vtx[4], ClutterActorBox *box); void clutter_actor_set_anchor_point (ClutterActor *self, gint anchor_x, gint anchor_y); void clutter_actor_get_anchor_point (ClutterActor *self, gint *anchor_x, gint *anchor_y); void clutter_actor_set_anchor_point_from_gravity (ClutterActor *self, ClutterGravity gravity); void clutter_actor_move_anchor_point (ClutterActor *self, gint anchor_x, gint anchor_y); void clutter_actor_move_anchor_point_from_gravity (ClutterActor *self, ClutterGravity gravity); void clutter_actor_set_reactive (ClutterActor *actor, gboolean reactive); gboolean clutter_actor_get_reactive (ClutterActor *actor); gboolean clutter_actor_set_shader (ClutterActor *self, ClutterShader *shader); ClutterShader* clutter_actor_get_shader (ClutterActor *self); void clutter_actor_set_shader_param (ClutterActor *self, const gchar *param, gfloat value); void clutter_actor_set_depthu (ClutterActor *self, ClutterUnit depth); ClutterUnit clutter_actor_get_depthu (ClutterActor *self); void clutter_actor_set_heightu (ClutterActor *self, ClutterUnit height); ClutterUnit clutter_actor_get_heightu (ClutterActor *self); void clutter_actor_set_widthu (ClutterActor *self, ClutterUnit width); ClutterUnit clutter_actor_get_widthu (ClutterActor *self); void clutter_actor_set_xu (ClutterActor *self, ClutterUnit x); ClutterUnit clutter_actor_get_xu (ClutterActor *self); void clutter_actor_set_yu (ClutterActor *self, ClutterUnit y); ClutterUnit clutter_actor_get_yu (ClutterActor *self); void clutter_actor_set_positionu (ClutterActor *self, ClutterUnit x, ClutterUnit y); void clutter_actor_get_positionu (ClutterActor *self, ClutterUnit *x, ClutterUnit *y); void clutter_actor_set_sizeu (ClutterActor *self, ClutterUnit width, ClutterUnit height); void clutter_actor_get_sizeu (ClutterActor *self, ClutterUnit *width, ClutterUnit *height); void clutter_actor_set_anchor_pointu (ClutterActor *self, ClutterUnit anchor_x, ClutterUnit anchor_y); void clutter_actor_get_anchor_pointu (ClutterActor *self, ClutterUnit *anchor_x, ClutterUnit *anchor_y); void clutter_actor_move_anchor_pointu (ClutterActor *self, ClutterUnit anchor_x, ClutterUnit anchor_y); void clutter_actor_set_clipu (ClutterActor *self, ClutterUnit xoff, ClutterUnit yoff, ClutterUnit width, ClutterUnit height); void clutter_actor_get_clipu (ClutterActor *self, ClutterUnit *xoff, ClutterUnit *yoff, ClutterUnit *width, ClutterUnit *height); void clutter_actor_set_rotationu (ClutterActor *self, ClutterRotateAxis axis, gdouble angle, ClutterUnit x, ClutterUnit y, ClutterUnit z); gdouble clutter_actor_get_rotationu (ClutterActor *self, ClutterRotateAxis axis, ClutterUnit *x, ClutterUnit *y, ClutterUnit *z); void clutter_actor_move_byu (ClutterActor *self, ClutterUnit dx, ClutterUnit dy); void clutter_actor_get_transformed_positionu (ClutterActor *self, ClutterUnit *x, ClutterUnit *y); void clutter_actor_get_transformed_sizeu (ClutterActor *self, ClutterUnit *width, ClutterUnit *height); void clutter_actor_set_scalex (ClutterActor *self, ClutterFixed scale_x, ClutterFixed scale_y); void clutter_actor_get_scalex (ClutterActor *self, ClutterFixed *scale_x, ClutterFixed *scale_y); void clutter_actor_set_rotationx (ClutterActor *self, ClutterRotateAxis axis, ClutterFixed angle, gint x, gint y, gint z); ClutterFixed clutter_actor_get_rotationx (ClutterActor *self, ClutterRotateAxis axis, gint *x, gint *y, gint *z);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterGroup +----ClutterRectangle +----ClutterTexture +----ClutterCloneTexture +----ClutterLabel +----ClutterEntry
"allocation" ClutterActorBox* : Read "anchor-x" gint : Read / Write "anchor-y" gint : Read / Write "clip" ClutterGeometry* : Read / Write "depth" gint : Read / Write "fixed-position-set" gboolean : Read / Write "fixed-x" ClutterUnit : Read / Write "fixed-y" ClutterUnit : Read / Write "has-clip" gboolean : Read "height" gint : Read / Write "min-height" ClutterUnit : Read / Write "min-height-set" gboolean : Read / Write "min-width" ClutterUnit : Read / Write "min-width-set" gboolean : Read / Write "name" gchar* : Read / Write "natural-height" ClutterUnit : Read / Write "natural-height-set" gboolean : Read / Write "natural-width" ClutterUnit : Read / Write "natural-width-set" gboolean : Read / Write "opacity" guchar : Read / Write "reactive" gboolean : Read / Write "request-mode" ClutterRequestMode : Read / Write "rotation-angle-x" gdouble : Read / Write "rotation-angle-y" gdouble : Read / Write "rotation-angle-z" gdouble : Read / Write "rotation-center-x" ClutterVertex* : Read / Write "rotation-center-y" ClutterVertex* : Read / Write "rotation-center-z" ClutterVertex* : Read / Write "scale-x" gdouble : Read / Write "scale-y" gdouble : Read / Write "show-on-set-parent" gboolean : Read / Write "visible" gboolean : Read / Write "width" gint : Read / Write "x" gint : Read / Write "y" gint : Read / Write
"button-press-event" : Run Last "button-release-event" : Run Last "captured-event" : Run Last "destroy" : Cleanup / No Recursion / No Hooks "enter-event" : Run Last "event" : Run Last "focus-in" : Run Last "focus-out" : Run Last "hide" : Run First "key-press-event" : Run Last "key-release-event" : Run Last "leave-event" : Run Last "motion-event" : Run Last "paint" : Run Last "parent-set" : Run Last "realize" : Run Last "scroll-event" : Run Last "show" : Run First "unrealize" : Run Last
ClutterActor is a base abstract class for all visual elements on the stage. Every object that must appear on the main ClutterStage must also be a ClutterActor, either by using one of the classes provided by Clutter, or by implementing a new ClutterActor subclass.
Every actor is a 2D surface positioned and optionally transformed in 3D space. The actor is positioned relative to top left corner of it parent with the childs origin being its anchor point (also top left by default).
The actors 2D surface is contained inside its bounding box, described by the ClutterActorBox structure:
The actor box represents the untransformed area occupied by an actor. Each visible actor that has been put on a ClutterStage also has a transformed area, depending on the actual transformations applied to it by the developer (scale, rotation). Tranforms will also be applied to any child actors. Also applied to all actors by the ClutterStage is a perspective transformation. API is provided for both tranformed and untransformed actor geometry information.
The 'modelview' transform matrix for the actor is constructed from the actor settings by the following order of operations:
Translation by actor x, y coords,
Scaling by scale_x, scale_y,
Negative translation by anchor point x, y,
Rotation around z axis,
Rotation around y axis,
Rotation around x axis,
Translation by actor depth (z),
Rectangular Clip is applied (this is not an operation on the matrix as such, but it is done as part of the transform set up).
An actor can either be explicitly sized and positioned, using the
various size and position accessors, like clutter_actor_set_x()
or
clutter_actor_set_width()
; or it can have a preferred width and
height, which then allows a layout manager to implicitly size and
position it by "allocating" an area for an actor. This allows for
actors to be manipulate in both a fixed or static parent container
(i.e. children of ClutterGroup) and a more automatic or dynamic
layout based parent container.
When accessing the position and size of an actor, the simple accessors
like clutter_actor_get_width()
and clutter_actor_get_x()
will return
a value depending on whether the actor has been explicitly sized and
positioned by the developer or implicitly by the layout manager.
Depending on whether you are querying an actor or implementing a layout manager, you should either use the simple accessors or use the size negotiation API.
Clutter actors are also able to receive input events and react to them. Events are handled in the following ways:
Actors emit pointer events if set reactive, see
clutter_actor_set_reactive()
The stage is always reactive
Events are handled by connecting signal handlers to the numerous event signal types.
Event handlers must return TRUE
if they handled
the event and wish to block the event emission chain, or FALSE
if the emission chain must continue
Keyboard events are emitted if actor has focus, see
clutter_stage_set_key_focus()
Motion events (motion, enter, leave) are not emitted
if clutter_set_motion_events_enabled()
is called with FALSE
.
See clutter_set_motion_events_enabled()
documentation for more
information.
Once emitted, an event emission chain has two
phases: capture and bubble. An emitted event starts in the capture
phase (see ClutterActor::captured-event) beginning at the stage and
traversing every child actor until the event source actor is reached.
The emission then enters the bubble phase, traversing back up the
chain via parents until it reaches the stage. Any event handler can
abort this chain by returning TRUE
(meaning "event handled").
Pointer events will 'pass through' non reactive overlapping actors.
Every '?' box in the diagram above is an entry point for application code.
For implementing a new custom actor class, please read the corresponding section of the API reference.
#define CLUTTER_ACTOR_SET_FLAGS(a,f) (((ClutterActor*)(a))->flags |= (f))
Sets the given flags on a ClutterActor
|
a ClutterActor |
|
the ClutterActorFlags to set |
#define CLUTTER_ACTOR_UNSET_FLAGS(a,f) (((ClutterActor*)(a))->flags &= ~(f))
Unsets the given flags on a ClutterActor
|
a ClutterActor |
|
the ClutterActorFlags to unset |
#define CLUTTER_ACTOR_IS_MAPPED(e) (((ClutterActor*)(e))->flags & CLUTTER_ACTOR_MAPPED)
Evaluates to TRUE
if the CLUTTER_ACTOR_MAPPED
flag is set.
|
a ClutterActor |
Since 0.2
#define CLUTTER_ACTOR_IS_REALIZED(e) (((ClutterActor*)(e))->flags & CLUTTER_ACTOR_REALIZED)
Evaluates to TRUE
if the CLUTTER_ACTOR_REALIZED
flag is set.
|
a ClutterActor |
Since 0.2
#define CLUTTER_ACTOR_IS_VISIBLE(e) (CLUTTER_ACTOR_IS_MAPPED (e) && CLUTTER_ACTOR_IS_REALIZED (e))
Evaluates to TRUE
if the actor is both realized and mapped.
|
a ClutterActor |
Since 0.2
#define CLUTTER_ACTOR_IS_REACTIVE(e) (((ClutterActor*)(e))->flags & CLUTTER_ACTOR_REACTIVE)
Evaluates to TRUE
if the CLUTTER_ACTOR_REACTIVE
flag is set.
|
a ClutterActor |
Since 0.6
typedef struct { ClutterUnit x1; ClutterUnit y1; ClutterUnit x2; ClutterUnit y2; } ClutterActorBox;
Bounding box of an actor. The coordinates of the top left and right bottom
corners of an actor. The coordinates of the two points are expressed in
ClutterUnits, that is are device-independent. If you want to obtain
the box dimensions in pixels, use clutter_actor_get_geometry()
.
ClutterUnit |
X coordinate of the top left corner |
ClutterUnit |
Y coordinate of the top left corner |
ClutterUnit |
X coordinate of the bottom right corner |
ClutterUnit |
Y coordinate of the bottom right corner |
typedef enum { CLUTTER_ACTOR_MAPPED = 1 << 1, CLUTTER_ACTOR_REALIZED = 1 << 2, CLUTTER_ACTOR_REACTIVE = 1 << 3 } ClutterActorFlags;
Flags used to signal the state of an actor.
typedef enum { CLUTTER_REQUEST_HEIGHT_FOR_WIDTH, CLUTTER_REQUEST_WIDTH_FOR_HEIGHT } ClutterRequestMode;
Specifies the type of requests for a ClutterActor.
Height for width requests | |
Width for height requests |
Since 0.8
typedef struct { gint x; gint y; guint width; guint height; } ClutterGeometry;
The rectangle containing an actor's bounding box, measured in pixels.
#define CLUTTER_CALLBACK(f) ((ClutterCallback) (f))
Convenience macro to cast a function to ClutterCallback
|
a function |
void (*ClutterCallback) (ClutterActor *actor, gpointer data);
Generic callback
|
a ClutterActor |
|
user data |
typedef struct { guint32 flags; } ClutterActor;
Base class for actors.
guint32 |
ClutterActorFlags |
typedef struct { void (* show) (ClutterActor *actor); void (* show_all) (ClutterActor *actor); void (* hide) (ClutterActor *actor); void (* hide_all) (ClutterActor *actor); void (* realize) (ClutterActor *actor); void (* unrealize) (ClutterActor *actor); void (* paint) (ClutterActor *actor); void (* parent_set) (ClutterActor *actor, ClutterActor *old_parent); void (* destroy) (ClutterActor *actor); void (* pick) (ClutterActor *actor, const ClutterColor *color); /* size negotiation */ void (* get_preferred_width) (ClutterActor *actor, ClutterUnit for_height, ClutterUnit *min_width_p, ClutterUnit *natural_width_p); void (* get_preferred_height) (ClutterActor *actor, ClutterUnit for_width, ClutterUnit *min_height_p, ClutterUnit *natural_height_p); void (* allocate) (ClutterActor *actor, const ClutterActorBox *box, gboolean absolute_origin_changed); /* event signals */ gboolean (* event) (ClutterActor *actor, ClutterEvent *event); gboolean (* button_press_event) (ClutterActor *actor, ClutterButtonEvent *event); gboolean (* button_release_event) (ClutterActor *actor, ClutterButtonEvent *event); gboolean (* scroll_event) (ClutterActor *actor, ClutterScrollEvent *event); gboolean (* key_press_event) (ClutterActor *actor, ClutterKeyEvent *event); gboolean (* key_release_event) (ClutterActor *actor, ClutterKeyEvent *event); gboolean (* motion_event) (ClutterActor *actor, ClutterMotionEvent *event); gboolean (* enter_event) (ClutterActor *actor, ClutterCrossingEvent *event); gboolean (* leave_event) (ClutterActor *actor, ClutterCrossingEvent *event); gboolean (* captured_event) (ClutterActor *actor, ClutterEvent *event); void (* focus_in) (ClutterActor *actor); void (* focus_out) (ClutterActor *actor); } ClutterActorClass;
Base class for actors.
|
signal class handler for "show"; it must chain up to the parent's implementation |
|
virtual function for containers and composite actors, to
determine which children should be shown when calling
clutter_actor_show_all() on the actor. Defaults to calling
clutter_actor_show() .
|
|
signal class handler for "hide"; it must chain up to the parent's implementation |
|
virtual function for containers and composite actors, to
determine which children should be shown when calling
clutter_actor_hide_all() on the actor. Defaults to calling
clutter_actor_hide() .
|
|
virtual function, used to allocate resources for the actor; it should chain up to the parent's implementation |
|
virtual function, used to deallocate resources allocated in ::realize; it should chain up to the parent's implementation |
|
virtual function, used to paint the actor |
|
signal class handler for the "parent-set" |
|
signal class handler for "destroy" |
|
virtual function, used to draw an outline of the actor with the given color |
|
virtual function, used when querying the minimum
and natural widths of an actor for a given height; it is used by
clutter_actor_get_preferred_width()
|
|
virtual function, used when querying the minimum
and natural heights of an actor for a given width; it is used by
clutter_actor_get_preferred_height()
|
|
virtual function, used when settings the coordinates of an
actor; it is used by clutter_actor_allocate()
|
|
class handler for "event" |
|
class handler for "button-press-event" |
|
class handler for "button-release-event" |
|
signal class closure for "scroll-event" |
|
signal class closure for "key-press-event" |
|
signal class closure for "key-release-event" |
|
signal class closure for "motion-event" |
|
signal class closure for "enter-event" |
|
signal class closure for "leave-event" |
|
signal class closure for "captured-event" |
|
signal class closure for "focus-in" |
|
signal class closure for "focus-out" |
void clutter_actor_show (ClutterActor *self);
Flags an actor to be displayed. An actor that isn't shown will not be rendered on the stage.
Actors are visible by default.
If this function is called on an actor without a parent, the
"show-on-set-parent" will be set to TRUE
as a side
effect.
|
A ClutterActor |
void clutter_actor_show_all (ClutterActor *self);
Calls clutter_actor_show()
on all children of an actor (if any).
|
a ClutterActor |
Since 0.2
void clutter_actor_hide (ClutterActor *self);
Flags an actor to be hidden. A hidden actor will not be rendered on the stage.
Actors are visible by default.
If this function is called on an actor without a parent, the
"show-on-set-parent" property will be set to FALSE
as a side-effect.
|
A ClutterActor |
void clutter_actor_hide_all (ClutterActor *self);
Calls clutter_actor_hide()
on all child actors (if any).
|
a ClutterActor |
Since 0.2
void clutter_actor_realize (ClutterActor *self);
Creates any underlying graphics resources needed by the actor to be displayed.
|
A ClutterActor |
void clutter_actor_unrealize (ClutterActor *self);
Frees up any underlying graphics resources needed by the actor to be displayed.
|
A ClutterActor |
void clutter_actor_paint (ClutterActor *self);
Renders the actor to display.
This function should not be called directly by applications.
Call clutter_actor_queue_redraw()
to queue paints, instead.
|
A ClutterActor |
void clutter_actor_queue_redraw (ClutterActor *self);
Queues up a redraw of an actor and any children. The redraw occurs once the main loop becomes idle (after the current batch of events has been processed, roughly).
Applications rarely need to call this, as redraws are handled automatically by modification functions.
|
A ClutterActor |
void clutter_actor_queue_relayout (ClutterActor *self);
Indicates that the actor's size request or other layout-affecting properties may have changed. This function is used inside ClutterActor subclass implementations, not by applications directly.
Queueing a new layout automatically queues a redraw as well.
|
A ClutterActor |
Since 0.8
void clutter_actor_destroy (ClutterActor *self);
Destroys an actor. When an actor is destroyed, it will break any references it holds to other objects. If the actor is inside a container, the actor will be removed.
When you destroy a container, its children will be destroyed as well.
Note: you cannot destroy the ClutterStage returned by
clutter_stage_get_default()
.
|
a ClutterActor |
gboolean clutter_actor_event (ClutterActor *actor, ClutterEvent *event, gboolean capture);
This function is used to emit an event on the main stage. You should rarely need to use this function, except for synthetising events.
|
a ClutterActor |
|
a ClutterEvent |
|
TRUE if event in in capture phase, FALSE otherwise. |
Returns : |
the return value from the signal emission: TRUE
if the actor handled the event, or FALSE if the event was
not handled
|
Since 0.6
void clutter_actor_pick (ClutterActor *self, const ClutterColor *color);
Renders a silhouette of the actor using the supplied color. Used internally for mapping pointer events to actors.
This function should never be called directly by applications.
Subclasses overiding the ClutterActor::pick()
method should call
clutter_actor_should_pick_paint()
to decide whether to render their
silhouette. Containers should always recursively call pick for
each child.
Since 0.4
|
A ClutterActor |
|
A ClutterColor |
gboolean clutter_actor_should_pick_paint (ClutterActor *self);
Utility call for subclasses overiding the pick method.
This function should never be called directly by applications.
|
A ClutterActor |
Returns : |
TRUE if the actor should paint its silhouette,
FALSE otherwise
|
void clutter_actor_allocate (ClutterActor *self, const ClutterActorBox *box, gboolean absolute_origin_changed);
Called by the parent of an actor to assign the actor its size. Should never be called by applications (except when implementing a container or layout manager).
Actors can know from their allocation box whether they have moved with respect to their parent actor. The absolute_origin_changed parameter additionally indicates whether the parent has moved with respect to the stage, for example because a grandparent's origin has moved.
|
A ClutterActor |
|
new allocation of the actor, in parent-relative coordinates |
|
whether the position of the parent has changed in stage coordinates |
Since 0.8
void clutter_actor_allocate_preferred_size (ClutterActor *self, gboolean absolute_origin_changed);
Allocates the natural size of self
.
This function is a utility call for ClutterActor implementations that allocates the actor's preferred natural size. It can be used by fixed layout managers (like ClutterGroup or so called 'composite actors') inside the ClutterActor::allocate implementation to give each child exactly how much space it requires.
This function is not meant to be used by applications. It is also not meant to be used outside the implementation of the ClutterActor::allocate virtual function.
|
a ClutterActor |
|
whether the position of the parent has changed in stage coordinates |
Since 0.8
void clutter_actor_get_allocation_coords (ClutterActor *self, gint *x_1, gint *y_1, gint *x_2, gint *y_2);
Gets the layout box an actor has been assigned. The allocation can
only be assumed valid inside a paint()
method; anywhere else, it
may be out-of-date.
An allocation does not incorporate the actor's scale or anchor point; those transformations do not affect layout, only rendering.
The returned coordinates are in pixels.
|
A ClutterActor |
|
x1 coordinate |
|
y1 coordinate |
|
x2 coordinate |
|
y2 coordinate |
Since 0.8
void clutter_actor_get_allocation_box (ClutterActor *self, ClutterActorBox *box);
Gets the layout box an actor has been assigned. The allocation can
only be assumed valid inside a paint()
method; anywhere else, it
may be out-of-date.
An allocation does not incorporate the actor's scale or anchor point; those transformations do not affect layout, only rendering.
get_preferred_width()
or get_preferred_height()
virtual functions.
|
A ClutterActor |
|
the function fills this in with the actor's allocation |
Since 0.8
void clutter_actor_get_allocation_geometry (ClutterActor *self, ClutterGeometry *geom);
Gets the layout box an actor has been assigned. The allocation can
only be assumed valid inside a paint()
method; anywhere else, it
may be out-of-date.
An allocation does not incorporate the actor's scale or anchor point; those transformations do not affect layout, only rendering.
The returned rectangle is in pixels.
|
A ClutterActor |
|
allocation geometry in pixels |
Since 0.8
void clutter_actor_get_allocation_vertices (ClutterActor *self, ClutterActor *ancestor, ClutterVertex verts[4]);
Calculates the transformed coordinates of the four corners of the
actor in the plane of ancestor
. The returned vertices relate to
the ClutterActorBox coordinates as follows:
v[0] contains (x1, y1)
v[1] contains (x2, y1)
v[2] contains (x1, y2)
v[3] contains (x2, y2)
If ancestor
is NULL
the ancestor will be the ClutterStage. In
this case, the coordinates returned will be the coordinates on
the stage before the projection is applied. This is different from
the behaviour of clutter_actor_get_abs_allocation_vertices()
.
|
A ClutterActor |
|
A ClutterActor to calculate the vertices against, or NULL
to use the default ClutterStage
|
|
return location for an array of 4 ClutterVertex in which to store the result. |
Since 0.6
void clutter_actor_get_preferred_size (ClutterActor *self, ClutterUnit *min_width_p, ClutterUnit *min_height_p, ClutterUnit *natural_width_p, ClutterUnit *natural_height_p);
Computes the preferred minimum and natural size of an actor, taking into account the actor's geometry management (either height-for-width or width-for-height).
The width and height used to compute the preferred height and preferred width are the actor's natural ones.
If you need to control the height for the preferred width, or the width for
the preferred height, you should use clutter_actor_get_preferred_width()
and clutter_actor_get_preferred_height()
, and check the actor's preferred
geometry management using the "request-mode" property.
|
a ClutterActor |
|
return location for the minimum width, or NULL
|
|
return location for the minimum height, or NULL
|
|
return location for the natural width, or NULL
|
|
return location for the natural height, or NULL
|
Since 0.8
void clutter_actor_get_preferred_width (ClutterActor *self, ClutterUnit for_height, ClutterUnit *min_width_p, ClutterUnit *natural_width_p);
Computes the requested minimum and natural widths for an actor, optionally depending on the specified height, or if they are already computed, returns the cached values.
An actor may not get its request - depending on the layout manager that's in effect.
A request should not incorporate the actor's scale or anchor point; those transformations do not affect layout, only rendering.
|
A ClutterActor |
|
available height when computing the preferred width, or a negative value to indicate that no height is defined |
|
return location for minimum width, or NULL
|
|
return location for the natural width, or NULL
|
Since 0.8
void clutter_actor_get_preferred_height (ClutterActor *self, ClutterUnit for_width, ClutterUnit *min_height_p, ClutterUnit *natural_height_p);
Computes the requested minimum and natural heights for an actor, or if they are already computed, returns the cached values.
An actor may not get its request - depending on the layout manager that's in effect.
A request should not incorporate the actor's scale or anchor point; those transformations do not affect layout, only rendering.
|
A ClutterActor |
|
available width to assume in computing desired height, or a negative value to indicate that no width is defined |
|
return location for minimum height, or NULL
|
|
return location for natural height, or NULL
|
Since 0.8
void clutter_actor_set_fixed_position_set (ClutterActor *self, gboolean is_set);
Sets whether an actor has a fixed position set (and will thus be unaffected by any layout manager).
|
A ClutterActor |
|
whether to use fixed position |
Since 0.8
gboolean clutter_actor_get_fixed_position_set (ClutterActor *self);
Checks whether an actor has a fixed position set (and will thus be unaffected by any layout manager).
|
A ClutterActor |
Returns : |
TRUE if the fixed position is set on the actor
|
Since 0.8
void clutter_actor_set_geometry (ClutterActor *self, const ClutterGeometry *geometry);
Sets the actor's fixed position and forces its minimum and natural
size, in pixels. This means the untransformed actor will have the
given geometry. This is the same as calling clutter_actor_set_position()
and clutter_actor_set_size()
.
|
A ClutterActor |
|
A ClutterGeometry |
void clutter_actor_get_geometry (ClutterActor *self, ClutterGeometry *geometry);
Gets the size and position of an actor relative to its parent
actor. This is the same as calling clutter_actor_get_position()
and
clutter_actor_get_size()
. It tries to "do what you mean" and get the
requested size and position if the actor's allocation is invalid.
|
A ClutterActor |
|
A location to store actors ClutterGeometry |
void clutter_actor_set_size (ClutterActor *self, gint width, gint height);
Sets the actor's size request in pixels. This overrides any "normal" size request the actor would have. For example a text actor might normally request the size of the text; this function would force a specific size instead.
If width
and/or height
are -1 the actor will use its
"normal" size request instead of overriding it, i.e.
you can "unset" the size with -1.
This function sets or unsets both the minimum and natural size.
|
A ClutterActor |
|
New width of actor in pixels, or -1 |
|
New height of actor in pixels, or -1 |
void clutter_actor_get_size (ClutterActor *self, guint *width, guint *height);
This function tries to "do what you mean" and return the size an actor will have. If the actor has a valid allocation, the allocation will be returned; otherwise, the actors natural size request will be returned.
If you care whether you get the request vs. the allocation, you
should probably call a different function like
clutter_actor_get_allocation_coords()
or
clutter_actor_get_preferred_width()
.
|
A ClutterActor |
|
return location for the width, or NULL .
|
|
return location for the height, or NULL .
|
Since 0.2
void clutter_actor_set_position (ClutterActor *self, gint x, gint y);
Sets the actor's fixed position in pixels relative to any parent actor.
If a layout manager is in use, this position will override the layout manager and force a fixed position.
|
A ClutterActor |
|
New left position of actor in pixels. |
|
New top position of actor in pixels. |
void clutter_actor_get_position (ClutterActor *self, gint *x, gint *y);
This function tries to "do what you mean" and tell you where the actor is, prior to any transformations. Retrieves the fixed position of an actor in pixels, if one has been set; otherwise, if the allocation is valid, returns the actor's allocated position; otherwise, returns 0,0.
The returned position is in pixels.
|
a ClutterActor |
|
return location for the X coordinate, or NULL
|
|
return location for the Y coordinate, or NULL
|
Since 0.6
void clutter_actor_set_width (ClutterActor *self, guint width);
Forces a width on an actor, causing the actor's preferred width and height (if any) to be ignored.
This function sets both the minimum and natural size of the actor.
|
A ClutterActor |
|
Requested new width for the actor, in pixels |
Since 0.2
guint clutter_actor_get_width (ClutterActor *self);
Retrieves the width of a ClutterActor.
If the actor has a valid allocation, this function will return the width of the allocated area given to the actor.
If the actor does not have a valid allocation, this function will return the actor's natural width, that is the preferred width of the actor.
If you care whether you get the preferred width or the width that
has been assigned to the actor, you should probably call a different
function like clutter_actor_get_allocation_coords()
to retrieve the
allocated size or clutter_actor_get_preferred_width()
to retrieve the
preferred width.
If an actor has a fixed width, for instance a width that has been
assigned using clutter_actor_set_width()
, the width returned will
be the same value.
|
A ClutterActor |
Returns : |
the width of the actor, in pixels |
void clutter_actor_set_height (ClutterActor *self, guint height);
Forces a height on an actor, causing the actor's preferred width and height (if any) to be ignored.
This function sets both the minimum and natural size of the actor.
|
A ClutterActor |
|
Requested new height for the actor, in pixels |
Since 0.2
guint clutter_actor_get_height (ClutterActor *self);
Retrieves the height of a ClutterActor.
If the actor has a valid allocation, this function will return the height of the allocated area given to the actor.
If the actor does not have a valid allocation, this function will return the actor's natural height, that is the preferred height of the actor.
If you care whether you get the preferred height or the height that
has been assigned to the actor, you should probably call a different
function like clutter_actor_get_allocation_coords()
to retrieve the
allocated size or clutter_actor_get_preferred_height()
to retrieve the
preferred height.
If an actor has a fixed height, for instance a height that has been
assigned using clutter_actor_set_height()
, the height returned will
be the same value.
|
A ClutterActor |
Returns : |
the height of the actor, in pixels |
void clutter_actor_set_x (ClutterActor *self, gint x);
Sets the actor's X coordinate, relative to its parent, in pixels.
Overrides any layout manager and forces a fixed position for the actor.
|
a ClutterActor |
|
the actor's position on the X axis |
Since 0.6
gint clutter_actor_get_x (ClutterActor *self);
Retrieves the X coordinate of a ClutterActor.
This function tries to "do what you mean", by returning the correct value depending on the actor's state.
If the actor has a valid allocation, this function will return the X coordinate of the origin of the allocation box.
If the actor has any fixed coordinate set using clutter_actor_set_x()
,
clutter_actor_set_position()
or clutter_actor_set_geometry()
, this
function will return that coordinate.
If both the allocation and a fixed position are missing, this function will return 0.
|
A ClutterActor |
Returns : |
the X coordinate, in pixels, ignoring any transformation (i.e. scaling, rotation) |
void clutter_actor_set_y (ClutterActor *self, gint y);
Sets the actor's Y coordinate, relative to its parent, in pixels.#
Overrides any layout manager and forces a fixed position for the actor.
|
a ClutterActor |
|
the actor's position on the Y axis |
Since 0.6
gint clutter_actor_get_y (ClutterActor *self);
Retrieves the Y coordinate of a ClutterActor.
This function tries to "do what you mean", by returning the correct value depending on the actor's state.
If the actor has a valid allocation, this function will return the Y coordinate of the origin of the allocation box.
If the actor has any fixed coordinate set using clutter_actor_set_y()
,
clutter_actor_set_position()
or clutter_actor_set_geometry()
, this
function will return that coordinate.
If both the allocation and a fixed position are missing, this function will return 0.
|
A ClutterActor |
Returns : |
the Y coordinate, in pixels, ignoring any transformation (i.e. scaling, rotation) |
void clutter_actor_move_by (ClutterActor *self, gint dx, gint dy);
Moves an actor by the specified distance relative to its current
position in pixels. This function modifies the fixed position of an
actor and thus removes it from any layout management. Another way
to move an actor is with an anchor point, see
clutter_actor_set_anchor_point()
.
|
A ClutterActor |
|
Distance to move Actor on X axis. |
|
Distance to move Actor on Y axis. |
Since 0.2
void clutter_actor_set_rotation (ClutterActor *self, ClutterRotateAxis axis, gdouble angle, gint x, gint y, gint z);
Sets the rotation angle of self
around the given axis.
The rotation center coordinates used depend on the value of axis
:
CLUTTER_X_AXIS
requires y
and z
CLUTTER_Y_AXIS
requires x
and z
CLUTTER_Z_AXIS
requires x
and y
The rotation coordinates are relative to the anchor point of the
actor, set using clutter_actor_set_anchor_point()
. If no anchor
point is set, the upper left corner is assumed as the origin.
|
a ClutterActor |
|
the axis of rotation |
|
the angle of rotation |
|
X coordinate of the rotation center |
|
Y coordinate of the rotation center |
|
Z coordinate of the rotation center |
Since 0.6
gdouble clutter_actor_get_rotation (ClutterActor *self, ClutterRotateAxis axis, gint *x, gint *y, gint *z);
Retrieves the angle and center of rotation on the given axis,
set using clutter_actor_set_angle()
.
The coordinates of the center returned by this function depend on the axis passed.
|
a ClutterActor |
|
the axis of rotation |
|
return value for the X coordinate of the center of rotation |
|
return value for the Y coordinate of the center of rotation |
|
return value for the Z coordinate of the center of rotation |
Returns : |
the angle of rotation. |
Since 0.6
gboolean clutter_actor_is_rotated (ClutterActor *self);
Checks whether any rotation is applied to the actor.
|
a ClutterActor |
Returns : |
TRUE if the actor is rotated.
|
Since 0.6
void clutter_actor_set_opacity (ClutterActor *self, guint8 opacity);
Sets the actor's opacity, with zero being completely transparent and 255 (0xff) being fully opaque.
|
A ClutterActor |
|
New opacity value for the actor. |
guint8 clutter_actor_get_opacity (ClutterActor *self);
Retrieves the opacity value of an actor, as set by
clutter_actor_set_opacity()
.
For retrieving the absolute opacity of the actor inside a paint
virtual function, see clutter_actor_get_paint_opacity()
.
|
a ClutterActor |
Returns : |
the opacity of the actor |
void clutter_actor_set_name (ClutterActor *self, const gchar *name);
Sets the given name to self
. The name can be used to identify
a ClutterActor.
|
A ClutterActor |
|
Textual tag to apply to actor |
const gchar* clutter_actor_get_name (ClutterActor *self);
Retrieves the name of self
.
|
A ClutterActor |
Returns : |
the name of the actor, or NULL . The returned string is
owned by the actor and should not be modified or freed.
|
guint32 clutter_actor_get_gid (ClutterActor *self);
Retrieves the unique id for self
.
|
A ClutterActor |
Returns : |
Globally unique value for this object instance. |
Since 0.6
void clutter_actor_set_clip (ClutterActor *self, gint xoff, gint yoff, gint width, gint height);
Sets clip area in pixels for self
. The clip area is always computed
from the upper left corner of the actor, even if the anchor point is
set otherwise.
|
A ClutterActor |
|
X offset of the clip rectangle, in pixels |
|
Y offset of the clip rectangle, in pixels |
|
Width of the clip rectangle, in pixels |
|
Height of the clip rectangle, in pixels |
void clutter_actor_remove_clip (ClutterActor *self);
Removes clip area from self
.
|
A ClutterActor |
gboolean clutter_actor_has_clip (ClutterActor *self);
Determines whether the actor has a clip area set or not.
|
a ClutterActor |
Returns : |
TRUE if the actor has a clip area set.
|
Since 0.1.1
void clutter_actor_get_clip (ClutterActor *self, gint *xoff, gint *yoff, gint *width, gint *height);
Gets the clip area for self
, in pixels.
|
a ClutterActor |
|
return location for the X offset of the clip rectangle, or NULL
|
|
return location for the Y offset of the clip rectangle, or NULL
|
|
return location for the width of the clip rectangle, or NULL
|
|
return location for the height of the clip rectangle, or NULL
|
Since 0.6
void clutter_actor_set_parent (ClutterActor *self, ClutterActor *parent);
Sets the parent of self
to parent
. The opposite function is
clutter_actor_unparent()
.
This function should not be used by applications, but by custom container actor subclasses.
|
A ClutterActor |
|
A new ClutterActor parent |
ClutterActor* clutter_actor_get_parent (ClutterActor *self);
Retrieves the parent of self
.
|
A ClutterActor |
Returns : |
The ClutterActor parent, or NULL if no parent is set
|
void clutter_actor_reparent (ClutterActor *self, ClutterActor *new_parent);
This function resets the parent actor of self
. It is
logically equivalent to calling clutter_actor_unparent()
and clutter_actor_set_parent()
.
|
a ClutterActor |
|
the new ClutterActor parent |
Since 0.2
void clutter_actor_unparent (ClutterActor *self);
Removes the parent of self
.
This function should not be used in applications. It should be called by implementations of container actors, to dissociate a child from the container.
|
a ClutterActor |
Since 0.1.1
void clutter_actor_raise (ClutterActor *self, ClutterActor *below);
Puts self
above below
.
Both actors must have the same parent.
This function is the equivalent of clutter_container_raise_child()
.
|
A ClutterActor |
|
A ClutterActor to raise above. |
void clutter_actor_lower (ClutterActor *self, ClutterActor *above);
Puts self
below above
.
Both actors must have the same parent.
This function is the equivalent of clutter_container_lower_child()
.
|
A ClutterActor |
|
A ClutterActor to lower below |
void clutter_actor_raise_top (ClutterActor *self);
Raises self
to the top.
This function calls clutter_actor_raise()
internally.
|
A ClutterActor |
void clutter_actor_lower_bottom (ClutterActor *self);
Lowers self
to the bottom.
This function calls clutter_actor_lower()
internally.
|
A ClutterActor |
ClutterActor* clutter_actor_get_stage (ClutterActor *actor);
Retrieves the ClutterStage where actor
is contained.
|
a ClutterActor |
Returns : |
the stage containing the actor, or NULL
|
Since 0.8
void clutter_actor_set_depth (ClutterActor *self, gint depth);
Sets the Z co-ordinate of self
to depth
. The Units of which are dependant
on the perspective setup.
|
a ClutterActor |
|
Z co-ord |
gint clutter_actor_get_depth (ClutterActor *self);
Retrieves the depth of self
.
|
a ClutterActor |
Returns : |
the depth of the actor |
void clutter_actor_set_scale (ClutterActor *self, gdouble scale_x, gdouble scale_y);
Scales an actor with the given factors. The scaling is always relative to the anchor point.
|
A ClutterActor |
|
double factor to scale actor by horizontally. |
|
double factor to scale actor by vertically. |
Since 0.2
void clutter_actor_get_scale (ClutterActor *self, gdouble *scale_x, gdouble *scale_y);
Retrieves an actors scale in floating point.
|
A ClutterActor |
|
Location to store horizonal float scale factor, or NULL .
|
|
Location to store vertical float scale factor, or NULL .
|
Since 0.2
gboolean clutter_actor_is_scaled (ClutterActor *self);
Checks whether the actor is scaled in either dimension.
|
a ClutterActor |
Returns : |
TRUE if the actor is scaled.
|
Since 0.6
void clutter_actor_apply_transform_to_point (ClutterActor *self, ClutterVertex *point, ClutterVertex *vertex);
Transforms point
in coordinates relative to the actor
into screen-relative coordinates with the current actor
transformation (i.e. scale, rotation, etc)
|
A ClutterActor |
|
A point as ClutterVertex |
|
The translated ClutterVertex |
Since 0.4
gboolean clutter_actor_transform_stage_point (ClutterActor *self, ClutterUnit x, ClutterUnit y, ClutterUnit *x_out, ClutterUnit *y_out);
This function translates screen coordinates (x
, y
) to
coordinates relative to the actor. For example, it can be used to translate
screen events from global screen coordinates into actor-local coordinates.
The conversion can fail, notably if the transform stack results in the actor being projected on the screen as a mere line.
The conversion should not be expected to be pixel-perfect due to the nature of the operation. In general the error grows when the skewing of the actor rectangle on screen increases.
Note: This function is fairly computationally intensive.
Note: This function only works when the allocation is up-to-date, i.e. inside of paint()
|
A ClutterActor |
|
x screen coordinate of the point to unproject, in ClutterUnits |
|
y screen coordinate of the point to unproject, in ClutterUnits |
|
return location for the unprojected x coordinance, in ClutterUnits |
|
return location for the unprojected y coordinance, in ClutterUnits |
Returns : |
TRUE if conversion was successful.
|
Since 0.6
void clutter_actor_apply_relative_transform_to_point (ClutterActor *self, ClutterActor *ancestor, ClutterVertex *point, ClutterVertex *vertex);
Transforms point
in coordinates relative to the actor into
ancestor-relative coordinates using the relevant transform
stack (i.e. scale, rotation, etc).
If ancestor
is NULL
the ancestor will be the ClutterStage. In
this case, the coordinates returned will be the coordinates on
the stage before the projection is applied. This is different from
the behaviour of clutter_actor_apply_transform_to_point()
.
|
A ClutterActor |
|
A ClutterActor ancestor, or NULL to use the
default ClutterStage
|
|
A point as ClutterVertex |
|
The translated ClutterVertex |
Since 0.6
void clutter_actor_get_transformed_position (ClutterActor *self, gint *x, gint *y);
Gets the absolute position of an actor, in pixels, relative to the stage.
|
A ClutterActor |
|
return location for the X coordinate, or NULL
|
|
return location for the Y coordinate, or NULL
|
Since 0.8
void clutter_actor_get_transformed_size (ClutterActor *self, guint *width, guint *height);
Gets the absolute size of an actor taking into account any scaling factors
|
A ClutterActor |
|
return location for the width, or NULL
|
|
return location for the height, or NULL
|
Since 0.8
guint8 clutter_actor_get_paint_opacity (ClutterActor *self);
Retrieves the absolute opacity of the actor, as it appears on the stage.
This function traverses the hierarchy chain and composites the opacity of the actor with that of its parents.
This function is intended for subclasses to use in the paint virtual function, to paint themselves with the correct opacity.
|
A ClutterActor |
Returns : |
The actor opacity value. |
Since 0.8
void clutter_actor_get_abs_allocation_vertices (ClutterActor *self, ClutterVertex verts[4]);
Calculates the transformed screen coordinates of the four corners of the actor; the returned vertices relate to the ClutterActorBox coordinates as follows:
v[0] contains (x1, y1)
v[1] contains (x2, y1)
v[2] contains (x1, y2)
v[3] contains (x2, y2)
|
A ClutterActor |
|
Pointer to a location of an array of 4 ClutterVertex where to store the result. |
Since 0.4
typedef struct { ClutterUnit x; ClutterUnit y; ClutterUnit z; } ClutterVertex;
Vertex of an actor in 3D space, expressed in device independent units.
ClutterUnit |
X coordinate of the vertex |
ClutterUnit |
Y coordinate of the vertex |
ClutterUnit |
Z coordinate of the vertex |
Since 0.4
void clutter_actor_box_get_from_vertices (ClutterVertex vtx[4], ClutterActorBox *box);
Calculates the bounding box represented by the four vertices; for details
of the vertex array see clutter_actor_get_abs_allocation_vertices()
.
|
array of four ClutterVertex |
|
return location for a ClutterActorBox |
Since 0.6
void clutter_actor_set_anchor_point (ClutterActor *self, gint anchor_x, gint anchor_y);
Sets an anchor point for the actor
. The anchor point is a point in the
coordinate space of an actor to which the actor position within its
parent is relative; the default is (0, 0), i.e. the top-left corner of
the actor.
|
a ClutterActor |
|
X coordinate of the anchor point |
|
Y coordinate of the anchor point |
Since 0.6
void clutter_actor_get_anchor_point (ClutterActor *self, gint *anchor_x, gint *anchor_y);
Gets the current anchor point of the actor
in pixels.
|
a ClutterActor |
|
return location for the X coordinate of the anchor point |
|
return location for the y coordinate of the anchor point |
Since 0.6
void clutter_actor_set_anchor_point_from_gravity (ClutterActor *self, ClutterGravity gravity);
Sets an anchor point on the actor, based on the given gravity (this is a
convenience function wrapping clutter_actor_set_anchor_point()
).
Note that the anchor is still stored as a point and the gravity
value is forgotten. For example, if you set the anchor point to
CLUTTER_GRAVITY_SOUTH_EAST
and later double the size of the actor,
the anchor point will not move to the bottom right and will now be
in the center of the actor.
|
a ClutterActor |
|
ClutterGravity. |
Since 0.6
void clutter_actor_move_anchor_point (ClutterActor *self, gint anchor_x, gint anchor_y);
Sets an anchor point for the actor
, and adjusts the actor postion so
that the relative position of the actor toward its parent remains the
same.
|
a ClutterActor |
|
X coordinate of the anchor point |
|
Y coordinate of the anchor point |
Since 0.6
void clutter_actor_move_anchor_point_from_gravity (ClutterActor *self, ClutterGravity gravity);
Sets an anchor point on the actor based on the given gravity, adjusting the actor postion so that its relative position within its parent remains unchanged.
Note that the anchor is still stored as a point and the gravity
value is forgotten. For example, if you set the anchor point to
CLUTTER_GRAVITY_SOUTH_EAST
and later double the size of the actor,
the anchor point will not move to the bottom right and will now be
in the center of the actor.
|
a ClutterActor |
|
ClutterGravity. |
Since 0.6
void clutter_actor_set_reactive (ClutterActor *actor, gboolean reactive);
Sets actor
as reactive. Reactive actors will receive events.
|
a ClutterActor |
|
whether the actor should be reactive to events |
Since 0.6
gboolean clutter_actor_get_reactive (ClutterActor *actor);
Checks whether actor
is marked as reactive.
|
a ClutterActor |
Returns : |
TRUE if the actor is reactive
|
Since 0.6
gboolean clutter_actor_set_shader (ClutterActor *self, ClutterShader *shader);
Sets the ClutterShader to be used when rendering self
.
If shader
is NULL
it will unset any currently set shader
for the actor.
|
a ClutterActor |
|
a ClutterShader or NULL to unset the shader.
|
Returns : |
TRUE if the shader was successfully applied
|
Since 0.6
ClutterShader* clutter_actor_get_shader (ClutterActor *self);
Queries the currently set ClutterShader on self
.
|
a ClutterActor |
Returns : |
The currently set ClutterShader or NULL if no
shader is set.
|
Since 0.6
void clutter_actor_set_shader_param (ClutterActor *self, const gchar *param, gfloat value);
Sets the value for a named parameter of the shader applied
to actor
.
|
a ClutterActor |
|
the name of the parameter |
|
the value of the parameter |
Since 0.6
void clutter_actor_set_depthu (ClutterActor *self, ClutterUnit depth);
Sets the Z co-ordinate of self
to depth
in ClutterUnits, the
units of which are dependant on the perspective setup.
|
a ClutterActor |
|
Z co-ordinate, in ClutterUnits |
ClutterUnit clutter_actor_get_depthu (ClutterActor *self);
Retrieves the depth of self
.
|
a ClutterActor |
Returns : |
the depth of the actor, in ClutterUnits |
Since 0.6
void clutter_actor_set_heightu (ClutterActor *self, ClutterUnit height);
Forces a height on an actor, causing the actor's preferred width and height (if any) to be ignored.
This function sets both the minimum and natural size of the actor.
|
A ClutterActor |
|
Requested new height for the actor, in ClutterUnits |
Since 0.6
ClutterUnit clutter_actor_get_heightu (ClutterActor *self);
Retrieves the height of a ClutterActor, in ClutterUnits.
If the actor has a valid allocation, this function will return the height of the allocated area given to the actor.
If the actor does not have a valid allocation, this function will return the actor's natural height, that is the preferred height of the actor.
If you care whether you get the preferred height or the height that
has been assigned to the actor, you should probably call a different
function like clutter_actor_get_allocation_coords()
to retrieve the
allocated size or clutter_actor_get_preferred_height()
to retrieve the
preferred height.
If an actor has a fixed height, for instance a height that has been
assigned using clutter_actor_set_height()
, the height returned will
be the same value.
|
A ClutterActor |
Returns : |
the height of the actor, in ClutterUnits |
Since 0.6
void clutter_actor_set_widthu (ClutterActor *self, ClutterUnit width);
Forces a width on an actor, causing the actor's preferred width and height (if any) to be ignored.
This function sets both the minimum and natural size of the actor.
|
A ClutterActor |
|
Requested new width for the actor, in ClutterUnits |
Since 0.6
ClutterUnit clutter_actor_get_widthu (ClutterActor *self);
Retrieves the width of a ClutterActor, in ClutterUnits.
If the actor has a valid allocation, this function will return the width of the allocated area given to the actor.
If the actor does not have a valid allocation, this function will return the actor's natural width, that is the preferred width of the actor.
If you care whether you get the preferred width or the width that
has been assigned to the actor, you should probably call a different
function like clutter_actor_get_allocation_coords()
to retrieve the
allocated size or clutter_actor_get_preferred_width()
to retrieve the
preferred width.
If an actor has a fixed width, for instance a width that has been
assigned using clutter_actor_set_width()
, the width returned will
be the same value.
|
A ClutterActor |
Returns : |
the width of the actor, in ClutterUnits |
Since 0.6
void clutter_actor_set_xu (ClutterActor *self, ClutterUnit x);
Sets the actor's X coordinate, relative to its parent.
Overrides any layout manager and forces a fixed position for the actor.
|
a ClutterActor |
|
the actor's position on the X axis, in ClutterUnits |
Since 0.6
ClutterUnit clutter_actor_get_xu (ClutterActor *self);
Retrieves the X coordinate of a ClutterActor, in ClutterUnits.
This function tries to "do what you mean", by returning the correct value depending on the actor's state.
If the actor has a valid allocation, this function will return the X coordinate of the origin of the allocation box.
If the actor has any fixed coordinate set using clutter_actor_set_x()
,
clutter_actor_set_position()
or clutter_actor_set_geometry()
, this
function will return that coordinate.
If both the allocation and a fixed position are missing, this function will return 0.
|
A ClutterActor |
Returns : |
the X coordinate, in ClutterUnits, ignoring any transformation (i.e. scaling, rotation) |
Since 0.6
void clutter_actor_set_yu (ClutterActor *self, ClutterUnit y);
Sets the actor's Y coordinate, relative to its parent.
Overrides any layout manager and forces a fixed position for the actor.
|
a ClutterActor |
|
the actor's position on the Y axis, in ClutterUnits |
Since 0.6
ClutterUnit clutter_actor_get_yu (ClutterActor *self);
Retrieves the Y coordinate of a ClutterActor, in ClutterUnits.
This function tries to "do what you mean", by returning the correct value depending on the actor's state.
If the actor has a valid allocation, this function will return the Y coordinate of the origin of the allocation box.
If the actor has any fixed coordinate set using clutter_actor_set_y()
,
clutter_actor_set_position()
or clutter_actor_set_geometry()
, this
function will return that coordinate.
If both the allocation and a fixed position are missing, this function will return 0.
|
A ClutterActor |
Returns : |
the Y coordinate, in ClutterUnits, ignoring any transformation (i.e. scaling, rotation) |
Since 0.6
void clutter_actor_set_positionu (ClutterActor *self, ClutterUnit x, ClutterUnit y);
Sets the actor's position in ClutterUnits relative to any parent actor.
If a layout manager is in use, this position will override the layout manager and force a fixed position.
|
A ClutterActor |
|
New left position of actor in ClutterUnits |
|
New top position of actor in ClutterUnits |
Since 0.6
void clutter_actor_get_positionu (ClutterActor *self, ClutterUnit *x, ClutterUnit *y);
This function tries to "do what you mean" and tell you where the actor is, prior to any transformations. Retrieves the fixed position of an actor in pixels, if one has been set; otherwise, if the allocation is valid, returns the actor's allocated position; otherwise, returns 0,0.
The returned position is in ClutterUnits.
|
a ClutterActor |
|
return location for the X coordinate, or NULL
|
|
return location for the Y coordinate, or NULL
|
Since 0.6
void clutter_actor_set_sizeu (ClutterActor *self, ClutterUnit width, ClutterUnit height);
Overrides the actor's size request in ClutterUnits. If width
and/or height
are -1 the actor will use its normal size request (the
override is removed).
This function sets or unsets both the minimum and natural size.
|
A ClutterActor |
|
New width of actor in ClutterUnits, or -1 |
|
New height of actor in ClutterUnits, or -1 |
Since 0.6
void clutter_actor_get_sizeu (ClutterActor *self, ClutterUnit *width, ClutterUnit *height);
This function tries to "do what you mean" and return the size an actor will have. If the actor has a valid allocation, the allocation will be returned; otherwise, the actors natural size request will be returned.
If you care whether you get the request vs. the allocation, you
should probably call a different function like
clutter_actor_get_allocation_coords()
or
clutter_actor_get_preferred_width()
.
|
A ClutterActor |
|
return location for the width, or NULL
|
|
return location for the height, or NULL
|
Since 0.6
void clutter_actor_set_anchor_pointu (ClutterActor *self, ClutterUnit anchor_x, ClutterUnit anchor_y);
Sets an anchor point for self
. The anchor point is a point in the
coordinate space of an actor to which the actor position within its
parent is relative; the default is (0, 0), i.e. the top-left corner
of the actor.
|
a ClutterActor |
|
X coordinate of the anchor point, in ClutterUnits |
|
Y coordinate of the anchor point, in ClutterUnits |
Since 0.6
void clutter_actor_get_anchor_pointu (ClutterActor *self, ClutterUnit *anchor_x, ClutterUnit *anchor_y);
Gets the current anchor point of the actor
in ClutterUnits.
|
a ClutterActor |
|
return location for the X coordinace of the anchor point |
|
return location for the X coordinace of the anchor point |
Since 0.6
void clutter_actor_move_anchor_pointu (ClutterActor *self, ClutterUnit anchor_x, ClutterUnit anchor_y);
Sets an anchor point for the actor, and adjusts the actor postion so that the relative position of the actor toward its parent remains the same.
|
a ClutterActor |
|
X coordinate of the anchor point |
|
Y coordinate of the anchor point |
Since 0.6
void clutter_actor_set_clipu (ClutterActor *self, ClutterUnit xoff, ClutterUnit yoff, ClutterUnit width, ClutterUnit height);
Unit-based variant of clutter_actor_set_clip()
Sets clip area for self
. The clip area is always computed from the
upper left corner of the actor, even if the anchor point is set
otherwise.
|
A ClutterActor |
|
X offset of the clip rectangle, in ClutterUnits |
|
Y offset of the clip rectangle, in ClutterUnits |
|
Width of the clip rectangle, in ClutterUnits |
|
Height of the clip rectangle, in ClutterUnits |
Since 0.6
void clutter_actor_get_clipu (ClutterActor *self, ClutterUnit *xoff, ClutterUnit *yoff, ClutterUnit *width, ClutterUnit *height);
Unit-based variant of clutter_actor_get_clip()
.
Gets the clip area for self
, in ClutterUnits.
|
a ClutterActor |
|
return location for the X offset of the clip rectangle, or NULL
|
|
return location for the Y offset of the clip rectangle, or NULL
|
|
return location for the width of the clip rectangle, or NULL
|
|
return location for the height of the clip rectangle, or NULL
|
Since 0.6
void clutter_actor_set_rotationu (ClutterActor *self, ClutterRotateAxis axis, gdouble angle, ClutterUnit x, ClutterUnit y, ClutterUnit z);
Sets the rotation angle of self
around the given axis.
This function is the units based variant of clutter_actor_set_rotation()
.
|
a ClutterActor |
|
the axis of rotation |
|
the angle of rotation |
|
X coordinate of the rotation center, in ClutterUnits |
|
Y coordinate of the rotation center, in ClutterUnits |
|
Z coordinate of the rotation center, in ClutterUnits |
Since 0.8
gdouble clutter_actor_get_rotationu (ClutterActor *self, ClutterRotateAxis axis, ClutterUnit *x, ClutterUnit *y, ClutterUnit *z);
Retrieves the angle and center of rotation on the given axis,
set using clutter_actor_set_rotation()
.
This function is the units based variant of clutter_actor_get_rotation()
.
|
a ClutterActor |
|
the axis of rotation |
|
return value for the X coordinate of the center of rotation, in ClutterUnits |
|
return value for the Y coordinate of the center of rotation, in ClutterUnits |
|
return value for the Z coordinate of the center of rotation, in ClutterUnits |
Returns : |
the angle of rotation |
Since 0.8
void clutter_actor_move_byu (ClutterActor *self, ClutterUnit dx, ClutterUnit dy);
Moves an actor by the specified distance relative to its current position.
The move is accomplished by setting a fixed position, overriding
any layout manager, see clutter_actor_set_positionu()
.
|
A ClutterActor |
|
Distance to move Actor on X axis, in ClutterUnits. |
|
Distance to move Actor on Y axis, in ClutterUnits. |
Since 0.6
void clutter_actor_get_transformed_positionu (ClutterActor *self, ClutterUnit *x, ClutterUnit *y);
Gets the absolute position of an actor, in ClutterUnits, relative to the stage.
|
A ClutterActor |
|
return location for the X coordinate, or NULL
|
|
return location for the Y coordinate, or NULL
|
Since 0.8
void clutter_actor_get_transformed_sizeu (ClutterActor *self, ClutterUnit *width, ClutterUnit *height);
Gets the absolute size of an actor in ClutterUnitss, taking into account the scaling factors.
If the actor has a valid allocation, the allocated size will be used. If the actor has not a valid allocation then the preferred size will be transformed and returned.
If you want the transformed allocation, see
clutter_actor_get_abs_allocation_vertices()
instead.
clutter_actor_get_transformed_position()
; if you need this
information, you need to use clutter_actor_get_abs_allocation_vertices()
to get the coords of the actual quadrangle.
|
A ClutterActor |
|
return location for the width, or NULL
|
|
return location for the height, or NULL
|
Since 0.8
void clutter_actor_set_scalex (ClutterActor *self, ClutterFixed scale_x, ClutterFixed scale_y);
Fixed point version of clutter_actor_set_scale()
.
Scales an actor with the given factors. The scaling is always relative to the anchor point.
|
A ClutterActor |
|
ClutterFixed factor to scale actor by horizontally. |
|
ClutterFixed factor to scale actor by vertically. |
void clutter_actor_get_scalex (ClutterActor *self, ClutterFixed *scale_x, ClutterFixed *scale_y);
Fixed point version of clutter_actor_get_scale()
.
Retrieves the scale factors of an actor.
|
A ClutterActor |
|
Location to store horizonal scale factor, or NULL .
|
|
Location to store vertical scale factor, or NULL .
|
Since 0.2
void clutter_actor_set_rotationx (ClutterActor *self, ClutterRotateAxis axis, ClutterFixed angle, gint x, gint y, gint z);
Sets the rotation angle of self
around the given axis.
This function is the fixed point variant of clutter_actor_set_rotation()
.
|
a ClutterActor |
|
the axis of rotation |
|
the angle of rotation |
|
X coordinate of the rotation center |
|
Y coordinate of the rotation center |
|
Z coordinate of the rotation center |
Since 0.6
ClutterFixed clutter_actor_get_rotationx (ClutterActor *self, ClutterRotateAxis axis, gint *x, gint *y, gint *z);
Retrieves the angle and center of rotation on the given axis,
set using clutter_actor_set_rotation()
.
This function is the fixed point variant of clutter_actor_get_rotation()
.
|
a ClutterActor |
|
the axis of rotation |
|
return value for the X coordinate of the center of rotation |
|
return value for the Y coordinate of the center of rotation |
|
return value for the Z coordinate of the center of rotation |
Returns : |
the angle of rotation as a fixed point value. |
Since 0.6
"allocation"
property"allocation" ClutterActorBox* : Read
The allocation for the actor, in ClutterUnits. This is read-only, but you might monitor this property to know when an actor moves or resizes.
Since 0.8
"anchor-x"
property"anchor-x" gint : Read / Write
X coordinate of the anchor point.
Allowed values: >= -2147483647
Default value: 0
"anchor-y"
property"anchor-y" gint : Read / Write
Y coordinate of the anchor point.
Allowed values: >= -2147483647
Default value: 0
"depth"
property"depth" gint : Read / Write
Depth of the actor.
Allowed values: >= -2147483647
Default value: 0
Since 0.6
"fixed-position-set"
property"fixed-position-set" gboolean : Read / Write
This flag controls whether the fixed-x and fixed-y properties are used.
Default value: FALSE
Since 0.8
"fixed-x"
property"fixed-x" ClutterUnit : Read / Write
The fixed X position of the actor in ClutterUnits. Writing this property sets the fixed-position-set property as well, as a side effect.
Since 0.8
"fixed-y"
property"fixed-y" ClutterUnit : Read / Write
The fixed Y position of the actor in ClutterUnits. Writing this property sets the fixed-position-set property as well, as a side effect.
Since 0.8
"has-clip"
property"has-clip" gboolean : Read
Whether the actor has the clip property set or not.
Default value: FALSE
"height"
property"height" gint : Read / Write
Height of the actor (in pixels). If written, forces the minimum and natural size request of the actor to the given height. If read, returns the allocated height if available, otherwise the height request.
Allowed values: >= 0
Default value: 0
"min-height"
property"min-height" ClutterUnit : Read / Write
A forced minimum height request for the actor, in ClutterUnits. Writing this property sets the min-height-set property as well, as a side effect. This property overrides the usual height request of the actor.
Since 0.8
"min-height-set"
property"min-height-set" gboolean : Read / Write
This flag controls whether the min-height property is used.
Default value: FALSE
Since 0.8
"min-width"
property"min-width" ClutterUnit : Read / Write
A forced minimum width request for the actor, in ClutterUnits. Writing this property sets the min-width-set property as well, as a side effect. This property overrides the usual width request of the actor.
Since 0.8
"min-width-set"
property"min-width-set" gboolean : Read / Write
This flag controls whether the min-width property is used.
Default value: FALSE
Since 0.8
"name"
property"name" gchar* : Read / Write
The name of the actor.
Default value: NULL
Since 0.2
"natural-height"
property"natural-height" ClutterUnit : Read / Write
A forced natural height request for the actor, in ClutterUnits. Writing this property sets the natural-height-set property as well, as a side effect. This property overrides the usual height request of the actor.
Since 0.8
"natural-height-set"
property"natural-height-set" gboolean : Read / Write
This flag controls whether the natural-height property is used.
Default value: FALSE
Since 0.8
"natural-width"
property"natural-width" ClutterUnit : Read / Write
A forced natural width request for the actor, in ClutterUnits. Writing this property sets the natural-width-set property as well, as a side effect. This property overrides the usual width request of the actor.
Since 0.8
"natural-width-set"
property"natural-width-set" gboolean : Read / Write
This flag controls whether the natural-width property is used.
Default value: FALSE
Since 0.8
"reactive"
property"reactive" gboolean : Read / Write
Whether the actor is reactive to events or not.
Default value: FALSE
Since 0.6
"request-mode"
property"request-mode" ClutterRequestMode : Read / Write
Request mode for the ClutterActor. The request mode determines the type of geometry management used by the actor, either height for width (the default) or width for height.
For actors implementing height for width, the parent container should get the preferred width first, and then the preferred height for that width.
For actors implementing width for height, the parent container should get the preferred height first, and then the preferred width for that height.
For instance:
ClutterRequestMode mode; ClutterUnit natural_width, min_width; ClutterUnit natural_height, min_height; g_object_get (G_OBJECT (child), "request-mode", &mode, NULL); if (mode == CLUTTER_REQUEST_HEIGHT_FOR_WIDTH) { clutter_actor_get_preferred_width (child, -1, &min_width, &natural_width); clutter_actor_get_preferred_height (child, natural_width, &min_height, &natural_height); } else { clutter_actor_get_preferred_height (child, -1, &min_height, &natural_height); clutter_actor_get_preferred_width (child, natural_height, &min_width, &natural_width); }
will retrieve the minimum and natural width and height depending on the preferred request mode of the ClutterActor "child".
The clutter_actor_get_preferred_size()
function will implement this
check for you.
Default value: CLUTTER_REQUEST_HEIGHT_FOR_WIDTH
Since 0.8
"rotation-angle-x"
property"rotation-angle-x" gdouble : Read / Write
The rotation angle on the X axis.
Allowed values: >= 0
Default value: 0
"rotation-angle-y"
property"rotation-angle-y" gdouble : Read / Write
The rotation angle on the Y axis.
Allowed values: >= 0
Default value: 0
"rotation-angle-z"
property"rotation-angle-z" gdouble : Read / Write
The rotation angle on the Z axis.
Allowed values: >= 0
Default value: 0
"rotation-center-x"
property"rotation-center-x" ClutterVertex* : Read / Write
The rotation center on the X axis.
"rotation-center-y"
property"rotation-center-y" ClutterVertex* : Read / Write
The rotation center on the Y axis.
"rotation-center-z"
property"rotation-center-z" ClutterVertex* : Read / Write
The rotation center on the Z axis.
"scale-x"
property"scale-x" gdouble : Read / Write
Scale factor on the X axis.
Allowed values: >= 0
Default value: 1
"scale-y"
property"scale-y" gdouble : Read / Write
Scale factor on the Y axis.
Allowed values: >= 0
Default value: 1
"show-on-set-parent"
property"show-on-set-parent" gboolean : Read / Write
If TRUE
, the actor is automatically shown when parented.
Calling clutter_actor_hide()
on an actor which has not been
parented will set this property to FALSE
as a side effect.
Default value: TRUE
Since 0.8
"visible"
property"visible" gboolean : Read / Write
Whether the actor is visible or not.
Default value: FALSE
"width"
property"width" gint : Read / Write
Width of the actor (in pixels). If written, forces the minimum and natural size request of the actor to the given width. If read, returns the allocated width if available, otherwise the width request.
Allowed values: >= 0
Default value: 0
"x"
property"x" gint : Read / Write
X coordinate of the actor in pixels. If written, forces a fixed position for the actor. If read, returns the fixed position if any, otherwise the allocation if available, otherwise 0.
Allowed values: >= -2147483647
Default value: 0
"y"
property"y" gint : Read / Write
Y coordinate of the actor in pixels. If written, forces a fixed position for the actor. If read, returns the fixed position if any, otherwise the allocation if available, otherwise 0.
Allowed values: >= -2147483647
Default value: 0
"button-press-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::button-press-event signal is emitted each time a mouse button
is pressed on actor
.
|
the actor which received the event |
|
a ClutterButtonEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"button-release-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::button-release-event signal is emitted each time a mouse button
is released on actor
.
|
the actor which received the event |
|
a ClutterButtonEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"captured-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
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 ClutterStage) 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 ClutterActor::button-press-event or ::key-released-event) are emitted.
|
the actor which received the signal |
|
a ClutterEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"destroy"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Cleanup / No Recursion / No Hooks
The ::destroy signal is emitted when an actor is destroyed,
either by direct invocation of clutter_actor_destroy()
or
when the ClutterGroup that contains the actor is destroyed.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
Since 0.2
"enter-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::enter-event signal is emitted when the pointer enters the actor
|
the actor which the pointer has entered. |
|
a ClutterCrossingEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
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 ClutterStage).
|
the actor which received the event |
|
a ClutterEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"focus-in"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run Last
The ::focus-in signal is emitted when actor
recieves key focus.
|
the actor which now has key focus |
|
user data set when the signal handler was connected. |
Since 0.6
"focus-out"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run Last
The ::focus-out signal is emitted when actor
loses key focus.
|
the actor which now has key focus |
|
user data set when the signal handler was connected. |
Since 0.6
"hide"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run First
The ::hide signal is emitted when an actor is no longer rendered on the stage.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
Since 0.2
"key-press-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::key-press-event signal is emitted each time a keyboard button
is pressed while actor
has key focus (see clutter_stage_set_key_focus()
).
|
the actor which received the event |
|
a ClutterKeyEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"key-release-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::key-release-event signal is emitted each time a keyboard button
is released while actor
has key focus (see
clutter_stage_set_key_focus()
).
|
the actor which received the event |
|
a ClutterKeyEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"leave-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::leave-event signal is emitted when the pointer leaves the actor
.
|
the actor which the pointer has left |
|
a ClutterCrossingEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"motion-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::motion-event signal is emitted each time the mouse pointer is
moved over actor
.
|
the actor which received the event |
|
a ClutterMotionEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"paint"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run Last
The ::paint signal is emitted each time an actor is being painted.
Subclasses of ClutterActor should override the class signal handler and paint themselves in that function.
It is possible to connect a handler to the ::paint signal in order to set up some custom aspect of a paint.
|
the ClutterActor that received the signal |
|
user data set when the signal handler was connected. |
Since 0.8
"parent-set"
signalvoid user_function (ClutterActor *actor, ClutterActor *old_parent, gpointer user_data) : Run Last
This signal is emitted when the parent of the actor changes.
|
the object which received the signal |
|
the previous parent of the actor, or NULL
|
|
user data set when the signal handler was connected. |
Since 0.2
"realize"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run Last
The ::realize signal is emitted each time an actor is being realized.
|
the ClutterActor that received the signal |
|
user data set when the signal handler was connected. |
Since 0.8
"scroll-event"
signalgboolean user_function (ClutterActor *actor, ClutterEvent *event, gpointer user_data) : Run Last
The ::scroll-event signal is emitted each time the mouse is
scrolled on actor
|
the actor which received the event |
|
a ClutterScrollEvent |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the event has been handled by the actor,
or FALSE to continue the emission.
|
Since 0.6
"show"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run First
The ::show signal is emitted when an actor is visible and rendered on the stage.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
Since 0.2
"unrealize"
signalvoid user_function (ClutterActor *actor, gpointer user_data) : Run Last
The ::unrealize signal is emitted each time an actor is being unrealized.
|
the ClutterActor that received the signal |
|
user data set when the signal handler was connected. |
Since 0.8