4
* Copyright (C) 2016 Red Hat
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.
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.
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/>.
19
* Author: Carlos Garnacho <carlosg@gnome.org>
22
#ifndef META_WAYLAND_TABLET_PAD_RING_H
23
#define META_WAYLAND_TABLET_PAD_RING_H
25
#include <wayland-server.h>
29
#include "meta-wayland-types.h"
30
#include "meta-cursor-renderer.h"
32
struct _MetaWaylandTabletPadRing
34
MetaWaylandTabletPad *pad;
35
MetaWaylandTabletPadGroup *group;
37
struct wl_list resource_list;
38
struct wl_list focus_resource_list;
43
MetaWaylandTabletPadRing * meta_wayland_tablet_pad_ring_new (MetaWaylandTabletPad *pad);
44
void meta_wayland_tablet_pad_ring_free (MetaWaylandTabletPadRing *ring);
46
void meta_wayland_tablet_pad_ring_set_group (MetaWaylandTabletPadRing *ring,
47
MetaWaylandTabletPadGroup *group);
49
meta_wayland_tablet_pad_ring_create_new_resource (MetaWaylandTabletPadRing *ring,
50
struct wl_client *client,
51
struct wl_resource *group_resource,
54
gboolean meta_wayland_tablet_pad_ring_handle_event (MetaWaylandTabletPadRing *ring,
55
const ClutterEvent *event);
57
void meta_wayland_tablet_pad_ring_sync_focus (MetaWaylandTabletPadRing *ring);
59
#endif /* META_WAYLAND_TABLET_PAD_RING_H */