| 1 |
/* Clutter. |
| 2 |
* An OpenGL based 'interactive canvas' library. |
| 3 |
* |
| 4 |
* Copyright (C) 2006, 2007 OpenedHand |
| 5 |
* Copyright (C) 2010 Intel Corp |
| 6 |
* 2011 Giovanni Campagna <[email protected]> |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Lesser General Public |
| 10 |
* License as published by the Free Software Foundation; either |
| 11 |
* version 2 of the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public |
| 19 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
* |
| 21 |
* Authors: |
| 22 |
* Matthew Allum |
| 23 |
* Robert Bragg |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef __CLUTTER_BACKEND_CEX100_H__ |
| 27 |
#define __CLUTTER_BACKEND_CEX100_H__ |
| 28 |
|
| 29 |
#include <glib-object.h> |
| 30 |
#include <clutter/clutter-event.h> |
| 31 |
#include <clutter/clutter-backend.h> |
| 32 |
#include <clutter/clutter-device-manager.h> |
| 33 |
|
| 34 |
#include "clutter-backend-private.h" |
| 35 |
|
| 36 |
G_BEGIN_DECLS |
| 37 |
|
| 38 |
#define CLUTTER_TYPE_BACKEND_CEX100 (_clutter_backend_cex100_get_type ()) |
| 39 |
#define CLUTTER_BACKEND_CEX100(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BACKEND_CEX100, ClutterBackendCex100)) |
| 40 |
#define CLUTTER_IS_BACKEND_CEX100(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BACKEND_CEX100)) |
| 41 |
#define CLUTTER_BACKEND_CEX100_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_BACKEND_CEX100, ClutterBackendCex100Class)) |
| 42 |
#define CLUTTER_IS_BACKEND_CEX100_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BACKEND_CEX100)) |
| 43 |
#define CLUTTER_BACKEND_CEX100_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BACKEND_CEX100, ClutterBackendCex100Class)) |
| 44 |
|
| 45 |
typedef struct _ClutterBackendCex100 ClutterBackendCex100; |
| 46 |
typedef struct _ClutterBackendCex100Class ClutterBackendCex100Class; |
| 47 |
|
| 48 |
struct _ClutterBackendCex100 |
| 49 |
{ |
| 50 |
ClutterBackend parent_instance; |
| 51 |
|
| 52 |
/* device manager (ie evdev) */ |
| 53 |
ClutterDeviceManager *device_manager; |
| 54 |
|
| 55 |
/* event source */ |
| 56 |
GSource *event_source; |
| 57 |
|
| 58 |
/* event timer */ |
| 59 |
GTimer *event_timer; |
| 60 |
}; |
| 61 |
|
| 62 |
struct _ClutterBackendCex100Class |
| 63 |
{ |
| 64 |
ClutterBackendClass parent_class; |
| 65 |
}; |
| 66 |
|
| 67 |
GType _clutter_backend_cex100_get_type (void) G_GNUC_CONST; |
| 68 |
|
| 69 |
G_END_DECLS |
| 70 |
|
| 71 |
#endif /* __CLUTTER_BACKEND_CEX100_H__ */ |