Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright © 2016 Red Hat, Inc. |
3 |
|
|
* |
4 |
|
|
* This program is free software; you can redistribute it and/or modify |
5 |
|
|
* it under the terms of the GNU General Public License as published by |
6 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
7 |
|
|
* (at your option) any later version. |
8 |
|
|
* |
9 |
|
|
* This program 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 |
12 |
|
|
* GNU General Public License for more details. |
13 |
|
|
* |
14 |
|
|
* You should have received a copy of the GNU General Public License |
15 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
16 |
|
|
* |
17 |
|
|
* Authors: Carlos Garnacho <carlosg@gnome.org> |
18 |
|
|
* |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#pragma once |
22 |
|
|
|
23 |
|
|
#include "config.h" |
24 |
|
|
#include <glib-object.h> |
25 |
|
|
#include <libwacom/libwacom.h> |
26 |
|
|
|
27 |
|
|
#include "gsd-device-manager.h" |
28 |
|
|
|
29 |
|
|
#define GNOME_DESKTOP_USE_UNSTABLE_API |
30 |
|
|
#include <gnome-rr/gnome-rr.h> |
31 |
|
|
|
32 |
|
|
#define CC_TYPE_WACOM_DEVICE (cc_wacom_device_get_type ()) |
33 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcWacomDevice, cc_wacom_device, CC, WACOM_DEVICE, GObject) |
34 |
|
|
|
35 |
|
|
WacomDeviceDatabase * |
36 |
|
|
cc_wacom_device_database_get (void); |
37 |
|
|
|
38 |
|
|
CcWacomDevice * cc_wacom_device_new (GsdDevice *device); |
39 |
|
|
CcWacomDevice * cc_wacom_device_new_fake (const gchar *name); |
40 |
|
|
|
41 |
|
|
const gchar * cc_wacom_device_get_name (CcWacomDevice *device); |
42 |
|
|
const gchar * cc_wacom_device_get_icon_name (CcWacomDevice *device); |
43 |
|
|
|
44 |
|
|
gboolean cc_wacom_device_is_reversible (CcWacomDevice *device); |
45 |
|
|
|
46 |
|
|
WacomIntegrationFlags |
47 |
|
|
cc_wacom_device_get_integration_flags (CcWacomDevice *device); |
48 |
|
|
|
49 |
|
|
GsdDevice * cc_wacom_device_get_device (CcWacomDevice *device); |
50 |
|
|
GSettings * cc_wacom_device_get_settings (CcWacomDevice *device); |
51 |
|
|
|
52 |
|
|
const gint * cc_wacom_device_get_supported_tools (CcWacomDevice *device, |
53 |
|
|
gint *n_tools); |
54 |
|
|
|
55 |
|
|
GnomeRROutput * cc_wacom_device_get_output (CcWacomDevice *device, |
56 |
|
|
GnomeRRScreen *screen); |
57 |
|
|
void cc_wacom_device_set_output (CcWacomDevice *wacom_device, |
58 |
|
|
GnomeRROutput *monitor); |
59 |
|
|
|
60 |
|
|
guint cc_wacom_device_get_num_buttons (CcWacomDevice *wacom_device); |
61 |
|
|
|
62 |
|
|
GSettings * cc_wacom_device_get_button_settings (CcWacomDevice *device, |
63 |
|
|
guint button); |
64 |
|
|
|
65 |
|
|
const gchar * cc_wacom_device_get_description (CcWacomDevice *device); |
66 |
|
|
|
67 |
|
|
|