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

« back to all changes in this revision

Viewing changes to clutter/clutter-event.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:
29
29
#define __CLUTTER_EVENT_H__
30
30
 
31
31
#include <glib-object.h>
 
32
#include <clutter/clutter-input-device.h>
32
33
#include <clutter/clutter-types.h>
33
34
 
34
35
#define CLUTTER_TYPE_EVENT      (clutter_event_get_type ())
191
192
  CLUTTER_STAGE_STATE_ACTIVATED        = (1<<3)
192
193
} ClutterStageState;
193
194
 
194
 
typedef union _ClutterEvent ClutterEvent;
195
 
 
196
195
typedef struct _ClutterAnyEvent         ClutterAnyEvent;
197
196
typedef struct _ClutterButtonEvent      ClutterButtonEvent;
198
197
typedef struct _ClutterKeyEvent         ClutterKeyEvent;
202
201
typedef struct _ClutterCrossingEvent    ClutterCrossingEvent;
203
202
 
204
203
/**
205
 
 * ClutterInputDevice:
206
 
 *
207
 
 * Generic representation of an input device. The
208
 
 * actual contents of this structure depend on the
209
 
 * backend used.
210
 
 */
211
 
typedef struct _ClutterInputDevice      ClutterInputDevice;
212
 
 
213
 
/**
214
 
 * ClutterInputDeviceType:
215
 
 * @CLUTTER_POINTER_DEVICE: A pointer device
216
 
 * @CLUTTER_KEYBOARD_DEVICE: A keyboard device
217
 
 * @CLUTTER_EXTENSION_DEVICE: A generic extension device
218
 
 * @CLUTTER_N_DEVICE_TYPES: The number of device types
219
 
 *
220
 
 * The types of input devices available.
221
 
 *
222
 
 * The #ClutterInputDeviceType enumeration can be extended at later
223
 
 * date; not every platform supports every input device type.
224
 
 *
225
 
 * Since: 1.0
226
 
 */
227
 
typedef enum {
228
 
  CLUTTER_POINTER_DEVICE,
229
 
  CLUTTER_KEYBOARD_DEVICE,
230
 
  CLUTTER_EXTENSION_DEVICE,
231
 
 
232
 
  CLUTTER_N_DEVICE_TYPES
233
 
} ClutterInputDeviceType;
234
 
 
235
 
/**
236
204
 * ClutterAnyEvent:
237
205
 * @type: event type
238
206
 * @time: event time
507
475
guint32                clutter_keysym_to_unicode            (guint             keyval);
508
476
 
509
477
guint32                clutter_get_current_event_time       (void);
510
 
 
511
 
ClutterInputDeviceType clutter_input_device_get_device_type (ClutterInputDevice *device);
512
 
gint                   clutter_input_device_get_device_id   (ClutterInputDevice *device);
 
478
G_CONST_RETURN ClutterEvent *clutter_get_current_event      (void);
513
479
 
514
480
G_END_DECLS
515
481