6
6
* Authored By Matthew Allum <mallum@openedhand.com>
8
* Copyright (C) 2006 OpenedHand
8
* Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
9
* Copyright (C) 2009, 2010 Intel Corp
10
11
* This library is free software; you can redistribute it and/or
11
12
* modify it under the terms of the GNU Lesser General Public
95
96
* ClutterActorFlags:
96
* @CLUTTER_ACTOR_MAPPED: the actor will be painted (is visible, and inside a toplevel, and all parents visible)
97
* @CLUTTER_ACTOR_MAPPED: the actor will be painted (is visible, and inside
98
* a toplevel, and all parents visible)
97
99
* @CLUTTER_ACTOR_REALIZED: the resources associated to the actor have been
99
101
* @CLUTTER_ACTOR_REACTIVE: the actor 'reacts' to mouse events emmitting event
101
103
* @CLUTTER_ACTOR_VISIBLE: the actor has been shown by the application program
104
* @CLUTTER_ACTOR_NO_LAYOUT: the actor provides an explicit layout management
105
* policy for its children; this flag will prevent Clutter from automatic
106
* queueing of relayout and will defer all layouting to the actor itself
103
108
* Flags used to signal the state of an actor.
107
CLUTTER_ACTOR_MAPPED = 1 << 1,
108
CLUTTER_ACTOR_REALIZED = 1 << 2,
109
CLUTTER_ACTOR_REACTIVE = 1 << 3,
110
CLUTTER_ACTOR_VISIBLE = 1 << 4
112
CLUTTER_ACTOR_MAPPED = 1 << 1,
113
CLUTTER_ACTOR_REALIZED = 1 << 2,
114
CLUTTER_ACTOR_REACTIVE = 1 << 3,
115
CLUTTER_ACTOR_VISIBLE = 1 << 4,
116
CLUTTER_ACTOR_NO_LAYOUT = 1 << 5
111
117
} ClutterActorFlags;
129
135
} ClutterAllocationFlags;
138
* ClutterRedrawFlags:
139
* @CLUTTER_REDRAW_CLIPPED_TO_BOX: Tells clutter the redraw is clipped
140
* to a given clip box in actor coordinates.
141
* @CLUTTER_REDRAW_CLIPPED_TO_ALLOCATION: Tells clutter the maximum
142
* extents of what needs to be redrawn lies within the actors
143
* current allocation.
145
* Flags passed to the clutter_actor_queue_redraw_with_clip ()
152
CLUTTER_REDRAW_CLIPPED_TO_BOX = 0,
153
CLUTTER_REDRAW_CLIPPED_TO_ALLOCATION = 1 << 1
154
} ClutterRedrawFlags;
133
158
* @flags: #ClutterActorFlags
202
227
* @captured_event: signal class closure for #ClutterActor::captured-event
203
228
* @key_focus_in: signal class closure for #ClutterActor::focus-in
204
229
* @key_focus_out: signal class closure for #ClutterActor::focus-out
230
* @queue_relayout: class handler for #ClutterActor::queue-relayout
206
232
* Base class for actors.
271
297
void (* key_focus_in) (ClutterActor *actor);
272
298
void (* key_focus_out) (ClutterActor *actor);
300
void (* queue_relayout) (ClutterActor *actor);
275
303
/* padding for future expansion */
276
gpointer _padding_dummy[32];
304
gpointer _padding_dummy[31];
279
307
GType clutter_actor_get_type (void) G_GNUC_CONST;
294
322
void clutter_actor_unmap (ClutterActor *self);
295
323
void clutter_actor_paint (ClutterActor *self);
296
324
void clutter_actor_queue_redraw (ClutterActor *self);
297
326
void clutter_actor_queue_relayout (ClutterActor *self);
298
327
void clutter_actor_destroy (ClutterActor *self);
300
329
/* size negotiation */
330
void clutter_actor_set_request_mode (ClutterActor *self,
331
ClutterRequestMode mode);
332
ClutterRequestMode clutter_actor_get_request_mode (ClutterActor *self);
301
333
void clutter_actor_get_preferred_width (ClutterActor *self,
302
334
gfloat for_height,
303
335
gfloat *min_width_p,
521
553
CoglMatrix *matrix);
523
555
gboolean clutter_actor_is_in_clone_paint (ClutterActor *self);
556
gboolean clutter_actor_has_pointer (ClutterActor *self);
558
void clutter_actor_set_text_direction (ClutterActor *self,
559
ClutterTextDirection text_dir);
560
ClutterTextDirection clutter_actor_get_text_direction (ClutterActor *self);
562
void clutter_actor_push_internal (ClutterActor *self);
563
void clutter_actor_pop_internal (ClutterActor *self);