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 "gsd-device-manager.h" |
25 |
|
|
#include "cc-wacom-device.h" |
26 |
|
|
#include <glib.h> |
27 |
|
|
|
28 |
|
|
#define CC_TYPE_WACOM_TOOL (cc_wacom_tool_get_type ()) |
29 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcWacomTool, cc_wacom_tool, CC, WACOM_TOOL, GObject) |
30 |
|
|
|
31 |
|
|
CcWacomTool * cc_wacom_tool_new (guint64 serial, |
32 |
|
|
guint64 id, |
33 |
|
|
CcWacomDevice *device); |
34 |
|
|
|
35 |
|
|
guint64 cc_wacom_tool_get_serial (CcWacomTool *tool); |
36 |
|
|
guint64 cc_wacom_tool_get_id (CcWacomTool *tool); |
37 |
|
|
|
38 |
|
|
const gchar * cc_wacom_tool_get_name (CcWacomTool *tool); |
39 |
|
|
const gchar * cc_wacom_tool_get_icon_name (CcWacomTool *tool); |
40 |
|
|
|
41 |
|
|
GSettings * cc_wacom_tool_get_settings (CcWacomTool *tool); |
42 |
|
|
|
43 |
|
|
guint cc_wacom_tool_get_num_buttons (CcWacomTool *tool); |
44 |
|
|
gboolean cc_wacom_tool_get_has_paired_eraser (CcWacomTool *tool); |
45 |
|
|
|
46 |
|
|
const gchar * cc_wacom_tool_get_description (CcWacomTool *tool); |
47 |
|
|
|