1 /* 2 * Clutter. 3 * 4 * An OpenGL based 'interactive canvas' library. 5 * 6 * Copyright (C) 2011 Intel Corp. 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 * Robert Bragg <robert@linux.intel.com> 23 */ 24 25 #ifndef __CLUTTER_DEVICE_MANAGER_WAYLAND_H__ 26 #define __CLUTTER_DEVICE_MANAGER_WAYLAND_H__ 27 28 #include <clutter/clutter-device-manager.h> 29 #include <wayland/clutter-backend-wayland.h> 30 31 G_BEGIN_DECLS 32 33 #define CLUTTER_TYPE_DEVICE_MANAGER_WAYLAND (_clutter_device_manager_wayland_get_type ()) 34 #define CLUTTER_DEVICE_MANAGER_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_DEVICE_MANAGER_WAYLAND, ClutterDeviceManagerWayland)) 35 #define CLUTTER_IS_DEVICE_MANAGER_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_DEVICE_MANAGER_WAYLAND)) 36 #define CLUTTER_DEVICE_MANAGER_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_DEVICE_MANAGER_WAYLAND, ClutterDeviceManagerWaylandClass)) 37 #define CLUTTER_IS_DEVICE_MANAGER_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_DEVICE_MANAGER_WAYLAND)) 38 #define CLUTTER_DEVICE_MANAGER_WAYLAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_DEVICE_MANAGER_WAYLAND, ClutterDeviceManagerWaylandClass)) 39 40 typedef struct _ClutterDeviceManagerWayland ClutterDeviceManagerWayland; 41 typedef struct _ClutterDeviceManagerWaylandClass ClutterDeviceManagerWaylandClass; 42 43 struct _ClutterDeviceManagerWayland 44 { 45 ClutterDeviceManager parent_instance; 46 47 GSList *devices; 48 49 ClutterInputDevice *core_pointer; 50 ClutterInputDevice *core_keyboard; 51 }; 52 53 struct _ClutterDeviceManagerWaylandClass 54 { 55 ClutterDeviceManagerClass parent_class; 56 }; 57 58 GType _clutter_device_manager_wayland_get_type (void) G_GNUC_CONST; 59 60 ClutterDeviceManager * 61 _clutter_device_manager_wayland_new (ClutterBackend *backend); 62 63 void 64 _clutter_device_manager_wayland_add_input_group (ClutterDeviceManager *manager, 65 uint32_t id); 66 67 void 68 _clutter_events_wayland_init (ClutterBackend *backend); 69 70 void 71 _clutter_events_wayland_uninit (ClutterBackend *backend); 72 73 G_END_DECLS 74 75 #endif /* __CLUTTER_DEVICE_MANAGER_WAYLAND_H__ */ 76