2015-10-27 10:28:10 -04:00
|
|
|
/*
|
|
|
|
* Wayland Support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Red Hat
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Author: Carlos Garnacho <carlosg@gnome.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_WAYLAND_TABLET_SEAT_H
|
|
|
|
#define META_WAYLAND_TABLET_SEAT_H
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include "meta-wayland-types.h"
|
|
|
|
|
|
|
|
struct _MetaWaylandTabletSeat
|
|
|
|
{
|
|
|
|
MetaWaylandTabletManager *manager;
|
2016-05-10 10:38:48 -04:00
|
|
|
MetaWaylandSeat *seat;
|
2015-10-27 10:28:10 -04:00
|
|
|
ClutterDeviceManager *device_manager;
|
|
|
|
struct wl_list resource_list;
|
|
|
|
|
|
|
|
GHashTable *tablets;
|
|
|
|
GHashTable *tools;
|
2016-05-10 11:22:34 -04:00
|
|
|
GHashTable *pads;
|
2015-10-27 10:28:10 -04:00
|
|
|
};
|
|
|
|
|
2016-05-10 10:38:48 -04:00
|
|
|
MetaWaylandTabletSeat *meta_wayland_tablet_seat_new (MetaWaylandTabletManager *tablet_manager,
|
|
|
|
MetaWaylandSeat *seat);
|
2015-10-27 10:28:10 -04:00
|
|
|
void meta_wayland_tablet_seat_free (MetaWaylandTabletSeat *tablet_seat);
|
|
|
|
|
|
|
|
struct wl_resource *meta_wayland_tablet_seat_create_new_resource (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
struct wl_client *client,
|
|
|
|
struct wl_resource *seat_resource,
|
|
|
|
uint32_t id);
|
|
|
|
struct wl_resource *meta_wayland_tablet_seat_lookup_resource (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
struct wl_client *client);
|
|
|
|
|
|
|
|
MetaWaylandTablet *meta_wayland_tablet_seat_lookup_tablet (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
ClutterInputDevice *device);
|
|
|
|
|
|
|
|
MetaWaylandTabletTool *meta_wayland_tablet_seat_lookup_tool (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
ClutterInputDeviceTool *tool);
|
|
|
|
|
2016-05-10 11:28:29 -04:00
|
|
|
MetaWaylandTabletPad *meta_wayland_tablet_seat_lookup_pad (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
ClutterInputDevice *device);
|
|
|
|
|
2015-10-27 10:28:10 -04:00
|
|
|
void meta_wayland_tablet_seat_update (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
const ClutterEvent *event);
|
|
|
|
gboolean meta_wayland_tablet_seat_handle_event (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
const ClutterEvent *event);
|
|
|
|
|
|
|
|
void meta_wayland_tablet_seat_notify_tool (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
MetaWaylandTabletTool *tool,
|
|
|
|
struct wl_client *client);
|
|
|
|
|
2016-05-10 11:29:57 -04:00
|
|
|
void meta_wayland_tablet_seat_set_pad_focus (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
MetaWaylandSurface *surface);
|
|
|
|
|
2016-05-11 16:36:26 -04:00
|
|
|
MetaWaylandTablet *meta_wayland_tablet_seat_lookup_paired_tablet (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
MetaWaylandTabletPad *pad);
|
|
|
|
GList *meta_wayland_tablet_seat_lookup_paired_pads (MetaWaylandTabletSeat *tablet_seat,
|
|
|
|
MetaWaylandTablet *tablet);
|
|
|
|
|
2015-10-27 10:28:10 -04:00
|
|
|
#endif /* META_WAYLAND_TABLET_SEAT_H */
|