~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to clutter/clutter-actor.h

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 * Authored By Matthew Allum  <mallum@openedhand.com>
7
7
 *
8
 
 * Copyright (C) 2006 OpenedHand
 
8
 * Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
 
9
 * Copyright (C) 2009, 2010 Intel Corp
9
10
 *
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
93
94
 
94
95
/**
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
98
100
 *   allocated
99
101
 * @CLUTTER_ACTOR_REACTIVE: the actor 'reacts' to mouse events emmitting event
100
102
 *   signals
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
102
107
 *
103
108
 * Flags used to signal the state of an actor.
104
109
 */
105
110
typedef enum
106
111
{
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;
112
118
 
113
119
/**
129
135
} ClutterAllocationFlags;
130
136
 
131
137
/**
 
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.
 
144
 *
 
145
 * Flags passed to the clutter_actor_queue_redraw_with_clip ()
 
146
 * function
 
147
 *
 
148
 * Since: 1.2
 
149
 */
 
150
typedef enum
 
151
{
 
152
  CLUTTER_REDRAW_CLIPPED_TO_BOX         = 0,
 
153
  CLUTTER_REDRAW_CLIPPED_TO_ALLOCATION  = 1 << 1
 
154
} ClutterRedrawFlags;
 
155
 
 
156
/**
132
157
 * ClutterActor:
133
158
 * @flags: #ClutterActorFlags
134
159
 *
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
205
231
 *
206
232
 * Base class for actors.
207
233
 */
271
297
  void     (* key_focus_in)         (ClutterActor         *actor);
272
298
  void     (* key_focus_out)        (ClutterActor         *actor);
273
299
 
 
300
  void     (* queue_relayout)       (ClutterActor         *actor);
 
301
 
274
302
  /*< private >*/
275
303
  /* padding for future expansion */
276
 
  gpointer _padding_dummy[32];
 
304
  gpointer _padding_dummy[31];
277
305
};
278
306
 
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);
 
325
 
297
326
void                  clutter_actor_queue_relayout            (ClutterActor          *self);
298
327
void                  clutter_actor_destroy                   (ClutterActor          *self);
299
328
 
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);
522
554
 
523
555
gboolean clutter_actor_is_in_clone_paint              (ClutterActor        *self);
 
556
gboolean clutter_actor_has_pointer                    (ClutterActor        *self);
 
557
 
 
558
void                 clutter_actor_set_text_direction (ClutterActor         *self,
 
559
                                                       ClutterTextDirection  text_dir);
 
560
ClutterTextDirection clutter_actor_get_text_direction (ClutterActor         *self);
 
561
 
 
562
void                 clutter_actor_push_internal      (ClutterActor         *self);
 
563
void                 clutter_actor_pop_internal       (ClutterActor         *self);
524
564
 
525
565
G_END_DECLS
526
566