~jderose/ubuntu/utopic/unity-settings-daemon/tune-syndaemon

« back to all changes in this revision

Viewing changes to plugins/wacom/gsd-wacom-osd-window.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-02-07 11:44:36 UTC
  • Revision ID: package-import@ubuntu.com-20140207114436-7t5u3yvwc4ul7w3e
Tags: upstream-14.04.0
ImportĀ upstreamĀ versionĀ 14.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2012 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, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 *
 
18
 * Author: Olivier Fourdan <ofourdan@redhat.com>
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __GSD_WACOM_OSD_WINDOW_H
 
23
#define __GSD_WACOM_OSD_WINDOW_H
 
24
 
 
25
#include <gtk/gtk.h>
 
26
#include <glib-object.h>
 
27
#include "gsd-wacom-device.h"
 
28
 
 
29
#define GSD_TYPE_WACOM_OSD_WINDOW         (gsd_wacom_osd_window_get_type ())
 
30
#define GSD_WACOM_OSD_WINDOW(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GSD_TYPE_WACOM_OSD_WINDOW, GsdWacomOSDWindow))
 
31
#define GSD_WACOM_OSD_WINDOW_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GSD_TYPE_WACOM_OSD_WINDOW, GsdWacomOSDWindowClass))
 
32
#define GSD_IS_WACOM_OSD_WINDOW(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSD_TYPE_WACOM_OSD_WINDOW))
 
33
#define GSD_IS_WACOM_OSD_WINDOW_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GSD_TYPE_WACOM_OSD_WINDOW))
 
34
#define GSD_WACOM_OSD_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSD_TYPE_WACOM_OSD_WINDOW, GsdWacomOSDWindowClass))
 
35
 
 
36
typedef struct GsdWacomOSDWindowPrivate GsdWacomOSDWindowPrivate;
 
37
 
 
38
typedef struct
 
39
{
 
40
        GtkWindow                 window;
 
41
        GsdWacomOSDWindowPrivate *priv;
 
42
} GsdWacomOSDWindow;
 
43
 
 
44
typedef struct
 
45
{
 
46
        GtkWindowClass            parent_class;
 
47
} GsdWacomOSDWindowClass;
 
48
 
 
49
GType                     gsd_wacom_osd_window_get_type        (void) G_GNUC_CONST;
 
50
GsdWacomDevice *          gsd_wacom_osd_window_get_device      (GsdWacomOSDWindow        *osd_window);
 
51
void                      gsd_wacom_osd_window_set_message     (GsdWacomOSDWindow        *osd_window,
 
52
                                                                const gchar              *str);
 
53
const char *              gsd_wacom_osd_window_get_message     (GsdWacomOSDWindow        *osd_window);
 
54
void                      gsd_wacom_osd_window_set_active      (GsdWacomOSDWindow        *osd_window,
 
55
                                                                GsdWacomTabletButton     *button,
 
56
                                                                GtkDirectionType          dir,
 
57
                                                                gboolean                  active);
 
58
void                      gsd_wacom_osd_window_set_mode        (GsdWacomOSDWindow        *osd_window,
 
59
                                                                gint                      group_id,
 
60
                                                                gint                      mode);
 
61
GtkWidget *               gsd_wacom_osd_window_new             (GsdWacomDevice           *pad,
 
62
                                                                const gchar              *message);
 
63
 
 
64
#endif /* __GSD_WACOM_OSD_WINDOW_H */