1 /* 2 * Clutter. 3 * 4 * An OpenGL based 'interactive canvas' library. 5 * 6 * Copyright © 2009, 2010, 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 * Author: Carlos Garnacho <carlosg@gnome.org> 22 */ 23 24 #ifndef __CLUTTER_INPUT_DEVICE_TOOL_H__ 25 #define __CLUTTER_INPUT_DEVICE_TOOL_H__ 26 27 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) 28 #error "Only <clutter/clutter.h> can be included directly." 29 #endif 30 31 #include <clutter/clutter-types.h> 32 #include "clutter-enum-types.h" 33 34 G_BEGIN_DECLS 35 36 #define CLUTTER_TYPE_INPUT_DEVICE_TOOL (clutter_input_device_tool_get_type ()) 37 #define CLUTTER_INPUT_DEVICE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_INPUT_DEVICE_TOOL, ClutterInputDeviceTool)) 38 #define CLUTTER_IS_INPUT_DEVICE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_INPUT_DEVICE_TOOL)) 39 #define CLUTTER_INPUT_DEVICE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_INPUT_DEVICE_TOOL, ClutterInputDeviceToolClass)) 40 #define CLUTTER_IS_INPUT_DEVICE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_INPUT_DEVICE_TOOL)) 41 #define CLUTTER_INPUT_DEVICE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_INPUT_DEVICE_TOOL, ClutterInputDeviceToolClass)) 42 43 typedef struct _ClutterInputDeviceToolClass ClutterInputDeviceToolClass; 44 45 struct _ClutterInputDeviceTool 46 { 47 GObject parent_instance; 48 }; 49 50 struct _ClutterInputDeviceToolClass 51 { 52 GObjectClass parent_class; 53 }; 54 55 CLUTTER_EXPORT 56 GType clutter_input_device_tool_get_type (void) G_GNUC_CONST; 57 58 CLUTTER_EXPORT 59 guint64 clutter_input_device_tool_get_serial (ClutterInputDeviceTool *tool); 60 61 CLUTTER_EXPORT 62 ClutterInputDeviceToolType clutter_input_device_tool_get_tool_type (ClutterInputDeviceTool *tool); 63 64 CLUTTER_EXPORT 65 guint64 clutter_input_device_tool_get_id (ClutterInputDeviceTool *tool); 66 67 CLUTTER_EXPORT 68 ClutterInputAxisFlags clutter_input_device_tool_get_axes (ClutterInputDeviceTool *tool); 69 70 G_END_DECLS 71 72 #endif /* __CLUTTER_INPUT_DEVICE_TOOL_H__ */ 73