~elementary-os/elementaryos/os-patch-mutter-bionic

« back to all changes in this revision

Viewing changes to src/wayland/meta-wayland-tablet-pad-ring.h

  • Committer: RabbitBot
  • Date: 2018-04-11 14:49:36 UTC
  • Revision ID: rabbitbot@elementary.io-20180411144936-hgymqa9d8d1xfpbh
Initial import, version 3.28.0-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Wayland Support
 
3
 *
 
4
 * Copyright (C) 2016 Red Hat
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 
18
 *
 
19
 * Author: Carlos Garnacho <carlosg@gnome.org>
 
20
 */
 
21
 
 
22
#ifndef META_WAYLAND_TABLET_PAD_RING_H
 
23
#define META_WAYLAND_TABLET_PAD_RING_H
 
24
 
 
25
#include <wayland-server.h>
 
26
 
 
27
#include <glib.h>
 
28
 
 
29
#include "meta-wayland-types.h"
 
30
#include "meta-cursor-renderer.h"
 
31
 
 
32
struct _MetaWaylandTabletPadRing
 
33
{
 
34
  MetaWaylandTabletPad *pad;
 
35
  MetaWaylandTabletPadGroup *group;
 
36
 
 
37
  struct wl_list resource_list;
 
38
  struct wl_list focus_resource_list;
 
39
 
 
40
  gchar *feedback;
 
41
};
 
42
 
 
43
MetaWaylandTabletPadRing * meta_wayland_tablet_pad_ring_new  (MetaWaylandTabletPad *pad);
 
44
void                       meta_wayland_tablet_pad_ring_free (MetaWaylandTabletPadRing *ring);
 
45
 
 
46
void                       meta_wayland_tablet_pad_ring_set_group (MetaWaylandTabletPadRing  *ring,
 
47
                                                                   MetaWaylandTabletPadGroup *group);
 
48
struct wl_resource *
 
49
             meta_wayland_tablet_pad_ring_create_new_resource (MetaWaylandTabletPadRing *ring,
 
50
                                                               struct wl_client         *client,
 
51
                                                               struct wl_resource       *group_resource,
 
52
                                                               uint32_t                  id);
 
53
 
 
54
gboolean     meta_wayland_tablet_pad_ring_handle_event        (MetaWaylandTabletPadRing *ring,
 
55
                                                               const ClutterEvent       *event);
 
56
 
 
57
void         meta_wayland_tablet_pad_ring_sync_focus          (MetaWaylandTabletPadRing *ring);
 
58
 
 
59
#endif /* META_WAYLAND_TABLET_PAD_RING_H */
 
60