Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkdevicetool.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2009 Carlos Garnacho <carlosg@gnome.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gdk/gdk.h> can be included directly."
22#endif
23
24#include <gdk/gdktypes.h>
25
27
28#define GDK_TYPE_DEVICE_TOOL (gdk_device_tool_get_type ())
29#define GDK_DEVICE_TOOL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_DEVICE_TOOL, GdkDeviceTool))
30#define GDK_IS_DEVICE_TOOL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_DEVICE_TOOL))
31
32typedef struct _GdkDeviceTool GdkDeviceTool;
33
34/**
35 * GdkDeviceToolType:
36 * @GDK_DEVICE_TOOL_TYPE_UNKNOWN: Tool is of an unknown type.
37 * @GDK_DEVICE_TOOL_TYPE_PEN: Tool is a standard tablet stylus.
38 * @GDK_DEVICE_TOOL_TYPE_ERASER: Tool is standard tablet eraser.
39 * @GDK_DEVICE_TOOL_TYPE_BRUSH: Tool is a brush stylus.
40 * @GDK_DEVICE_TOOL_TYPE_PENCIL: Tool is a pencil stylus.
41 * @GDK_DEVICE_TOOL_TYPE_AIRBRUSH: Tool is an airbrush stylus.
42 * @GDK_DEVICE_TOOL_TYPE_MOUSE: Tool is a mouse.
43 * @GDK_DEVICE_TOOL_TYPE_LENS: Tool is a lens cursor.
44 *
45 * Indicates the specific type of tool being used being a tablet. Such as an
46 * airbrush, pencil, etc.
47 */
58
61
64
67
70
73
75
#define GDK_AVAILABLE_IN_ALL
GdkDeviceToolType
@ GDK_DEVICE_TOOL_TYPE_BRUSH
@ GDK_DEVICE_TOOL_TYPE_PENCIL
@ GDK_DEVICE_TOOL_TYPE_UNKNOWN
@ GDK_DEVICE_TOOL_TYPE_AIRBRUSH
@ GDK_DEVICE_TOOL_TYPE_MOUSE
@ GDK_DEVICE_TOOL_TYPE_LENS
@ GDK_DEVICE_TOOL_TYPE_PEN
@ GDK_DEVICE_TOOL_TYPE_ERASER
GDK_AVAILABLE_IN_ALL guint64 gdk_device_tool_get_hardware_id(GdkDeviceTool *tool)
GDK_AVAILABLE_IN_ALL guint64 gdk_device_tool_get_serial(GdkDeviceTool *tool)
GDK_AVAILABLE_IN_ALL GdkAxisFlags gdk_device_tool_get_axes(GdkDeviceTool *tool)
struct _GdkDeviceTool GdkDeviceTool
GDK_AVAILABLE_IN_ALL GdkDeviceToolType gdk_device_tool_get_tool_type(GdkDeviceTool *tool)
GDK_AVAILABLE_IN_ALL GType gdk_device_tool_get_type(void) G_GNUC_CONST
GdkAxisFlags
Definition gdkenums.h:259
unsigned long guint64
Definition glibconfig.h:67
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427