diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-11-26 19:47:38 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-12-15 00:16:15 +0100 |
commit | 8d68f59befb2d7658da5f7871e7b071f14ed75ca (patch) | |
tree | 6aa2d41a1ef8c029b5e3e117a4fd5ae8efb4f2d9 /gdk/gdkseatprivate.h | |
parent | 3733e53c1aee4ab8f64d473fab71d60bd5ff1b05 (diff) | |
download | gtk+-8d68f59befb2d7658da5f7871e7b071f14ed75ca.tar.gz |
gdk: Add GdkSeat
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Diffstat (limited to 'gdk/gdkseatprivate.h')
-rw-r--r-- | gdk/gdkseatprivate.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/gdk/gdkseatprivate.h b/gdk/gdkseatprivate.h new file mode 100644 index 0000000000..f8d84c8c2d --- /dev/null +++ b/gdk/gdkseatprivate.h @@ -0,0 +1,65 @@ +/* GDK - The GIMP Drawing Kit + * 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 __GDK_SEAT_PRIVATE_H__ +#define __GDK_SEAT_PRIVATE_H__ + +typedef struct _GdkSeatClass GdkSeatClass; + +#include "gdkseat.h" + +#define GDK_SEAT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GDK_TYPE_SEAT, GdkSeatClass)) +#define GDK_IS_SEAT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GDK_TYPE_SEAT)) +#define GDK_SEAT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_SEAT, GdkSeatClass)) + +struct _GdkSeatClass +{ + GObjectClass parent_class; + + void (* device_added) (GdkSeat *seat, + GdkDevice *device); + void (* device_removed) (GdkSeat *seat, + GdkDevice *device); + void (* device_changed) (GdkSeat *seat, + GdkDevice *device); + + GdkSeatCapabilities (*get_capabilities) (GdkSeat *seat); + + GdkGrabStatus (* grab) (GdkSeat *seat, + GdkWindow *window, + GdkSeatCapabilities capabilities, + gboolean owner_events, + GdkCursor *cursor, + const GdkEvent *event, + GdkSeatGrabPrepareFunc prepare_func, + gpointer prepare_func_data); + void (* ungrab) (GdkSeat *seat); + + GdkDevice * (* get_master) (GdkSeat *seat, + GdkSeatCapabilities capability); + GList * (* get_slaves) (GdkSeat *seat, + GdkSeatCapabilities capabilities); +}; + +void gdk_seat_device_added (GdkSeat *seat, + GdkDevice *device); +void gdk_seat_device_removed (GdkSeat *seat, + GdkDevice *device); + +#endif /* __GDK_SEAT_PRIVATE_H__ */ |