Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkdevicepad.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2016 Red Hat
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 * Author: Carlos Garnacho <carlosg@gnome.org>
18 */
19
20#pragma once
21
22#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gdk/gdk.h> can be included directly."
24#endif
25
26#include <gdk/gdktypes.h>
27
29
30#define GDK_TYPE_DEVICE_PAD (gdk_device_pad_get_type ())
31#define GDK_DEVICE_PAD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_DEVICE_PAD, GdkDevicePad))
32#define GDK_IS_DEVICE_PAD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_DEVICE_PAD))
33
34typedef struct _GdkDevicePad GdkDevicePad;
35typedef struct _GdkDevicePadInterface GdkDevicePadInterface;
36
37/**
38 * GdkDevicePadFeature:
39 * @GDK_DEVICE_PAD_FEATURE_BUTTON: a button
40 * @GDK_DEVICE_PAD_FEATURE_RING: a ring-shaped interactive area
41 * @GDK_DEVICE_PAD_FEATURE_STRIP: a straight interactive area
42 *
43 * A pad feature.
44 */
50
53
56
59 int group_idx);
60
63 GdkDevicePadFeature feature);
64
67 GdkDevicePadFeature feature,
68 int feature_idx);
69
71
#define GDK_AVAILABLE_IN_ALL
GdkDevicePadFeature
@ GDK_DEVICE_PAD_FEATURE_STRIP
@ GDK_DEVICE_PAD_FEATURE_BUTTON
@ GDK_DEVICE_PAD_FEATURE_RING
struct _GdkDevicePad GdkDevicePad
GDK_AVAILABLE_IN_ALL GType gdk_device_pad_get_type(void) G_GNUC_CONST
struct _GdkDevicePadInterface GdkDevicePadInterface
GDK_AVAILABLE_IN_ALL int gdk_device_pad_get_group_n_modes(GdkDevicePad *pad, int group_idx)
GDK_AVAILABLE_IN_ALL int gdk_device_pad_get_feature_group(GdkDevicePad *pad, GdkDevicePadFeature feature, int feature_idx)
GDK_AVAILABLE_IN_ALL int gdk_device_pad_get_n_groups(GdkDevicePad *pad)
GDK_AVAILABLE_IN_ALL int gdk_device_pad_get_n_features(GdkDevicePad *pad, GdkDevicePadFeature feature)
#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