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

« back to all changes in this revision

Viewing changes to clutter/clutter-stage.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:
39
39
#define CLUTTER_TYPE_FOG                (clutter_fog_get_type ())
40
40
#define CLUTTER_TYPE_STAGE              (clutter_stage_get_type())
41
41
 
42
 
#define CLUTTER_STAGE(obj) \
43
 
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
44
 
  CLUTTER_TYPE_STAGE, ClutterStage))
45
 
 
46
 
#define CLUTTER_STAGE_CLASS(klass) \
47
 
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
48
 
  CLUTTER_TYPE_STAGE, ClutterStageClass))
49
 
 
50
 
#define CLUTTER_IS_STAGE(obj) \
51
 
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
52
 
  CLUTTER_TYPE_STAGE))
53
 
 
54
 
#define CLUTTER_IS_STAGE_CLASS(klass) \
55
 
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
56
 
  CLUTTER_TYPE_STAGE))
57
 
 
58
 
#define CLUTTER_STAGE_GET_CLASS(obj) \
59
 
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
60
 
  CLUTTER_TYPE_STAGE, ClutterStageClass))
 
42
#define CLUTTER_STAGE(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE, ClutterStage))
 
43
#define CLUTTER_STAGE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE, ClutterStageClass))
 
44
#define CLUTTER_IS_STAGE(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE))
 
45
#define CLUTTER_IS_STAGE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_STAGE))
 
46
#define CLUTTER_STAGE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_STAGE, ClutterStageClass))
 
47
 
 
48
#ifndef CLUTTER_DISABLE_DEPRECATED
61
49
 
62
50
/**
63
51
 * CLUTTER_STAGE_WIDTH:
65
53
 * Macro that evaluates to the width of the default stage
66
54
 *
67
55
 * Since: 0.2
 
56
 *
 
57
 * Deprecated: 1.2: Use clutter_actor_get_width() instead
68
58
 */
69
 
#define CLUTTER_STAGE_WIDTH() \
70
 
 (clutter_actor_get_width (clutter_stage_get_default ()))
 
59
#define CLUTTER_STAGE_WIDTH()           (clutter_actor_get_width (clutter_stage_get_default ()))
71
60
 
72
61
/**
73
62
 * CLUTTER_STAGE_HEIGHT:
75
64
 * Macro that evaluates to the height of the default stage
76
65
 *
77
66
 * Since: 0.2
 
67
 *
 
68
 * Deprecated: 1.2: use clutter_actor_get_height() instead
78
69
 */
79
 
#define CLUTTER_STAGE_HEIGHT() \
80
 
 (clutter_actor_get_height (clutter_stage_get_default ()))
 
70
#define CLUTTER_STAGE_HEIGHT()          (clutter_actor_get_height (clutter_stage_get_default ()))
 
71
 
 
72
#endif /* !CLUTTER_DISABLE_DEPRECATED */
81
73
 
82
74
/**
83
75
 * ClutterPickMode:
122
114
 * @unfullscreen: handler for the #ClutterStage::unfullscreen signal
123
115
 * @activate: handler for the #ClutterStage::activate signal
124
116
 * @deactivate: handler for the #ClutterStage::deactive signal
 
117
 * @delete_event: handler for the #ClutterStage::delete-event signal
125
118
 *
126
119
 * The #ClutterStageClass structure contains only private data
127
120
 *
140
133
  void (* activate)     (ClutterStage *stage);
141
134
  void (* deactivate)   (ClutterStage *stage);
142
135
 
 
136
  gboolean (* delete_event) (ClutterStage *stage,
 
137
                             ClutterEvent *event);
 
138
 
143
139
  /*< private >*/
144
140
  /* padding for future expansion */
145
 
  gpointer _padding_dummy[32];
 
141
  gpointer _padding_dummy[31];
146
142
};
147
143
 
148
144
 
247
243
                                                   gboolean      throttle);
248
244
gboolean clutter_stage_get_throttle_motion_events (ClutterStage *stage);
249
245
 
 
246
void                  clutter_stage_set_use_alpha      (ClutterStage *stage,
 
247
                                                        gboolean      use_alpha);
 
248
gboolean              clutter_stage_get_use_alpha      (ClutterStage *stage);
 
249
 
 
250
void                  clutter_stage_set_minimum_size (ClutterStage *stage,
 
251
                                                      guint         width,
 
252
                                                      guint         height);
 
253
void                  clutter_stage_get_minimum_size (ClutterStage *stage,
 
254
                                                      guint        *width,
 
255
                                                      guint        *height);
 
256
 
250
257
/* Commodity macro, for mallum only */
251
258
#define clutter_stage_add(stage,actor)                  G_STMT_START {  \
252
259
  if (CLUTTER_IS_STAGE ((stage)) && CLUTTER_IS_ACTOR ((actor)))         \