1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
28 * Private uninstalled header defining things local to X windowing code
31 #ifndef __GDK_PRIVATE_WAYLAND_H__
32 #define __GDK_PRIVATE_WAYLAND_H__
34 #include <gdk/gdkcursor.h>
35 #include <gdk/gdkprivate.h>
36 #include <gdk/wayland/gdkdisplay-wayland.h>
38 #include "gdkinternals.h"
42 #define GDK_SCREEN_DISPLAY(screen) (GDK_SCREEN_WAYLAND (screen)->display)
43 #define GDK_WINDOW_SCREEN(win) (gdk_window_get_screen (win))
44 #define GDK_WINDOW_DISPLAY(win) (GDK_SCREEN_WAYLAND (GDK_WINDOW_SCREEN (win))->display)
45 #define GDK_WINDOW_IS_WAYLAND(win) (GDK_IS_WINDOW_IMPL_WAYLAND (((GdkWindow *)win)->impl))
47 GType _gdk_wayland_window_get_type (void);
48 void _gdk_wayland_window_update_size (GdkWindow *window,
52 void _gdk_wayland_window_add_focus (GdkWindow *window);
53 void _gdk_wayland_window_remove_focus (GdkWindow *window);
55 GdkKeymap *_gdk_wayland_keymap_new (GdkDisplay *display);
56 struct xkb_desc *_gdk_wayland_keymap_get_xkb_desc (GdkKeymap *keymap);
58 GdkCursor *_gdk_wayland_display_get_cursor_for_type (GdkDisplay *display,
59 GdkCursorType cursor_type);
60 GdkCursor *_gdk_wayland_display_get_cursor_for_name (GdkDisplay *display,
62 GdkCursor *_gdk_wayland_display_get_cursor_for_pixbuf (GdkDisplay *display,
66 void _gdk_wayland_display_get_default_cursor_size (GdkDisplay *display,
69 void _gdk_wayland_display_get_maximal_cursor_size (GdkDisplay *display,
72 gboolean _gdk_wayland_display_supports_cursor_alpha (GdkDisplay *display);
73 gboolean _gdk_wayland_display_supports_cursor_color (GdkDisplay *display);
75 struct wl_buffer *_gdk_wayland_cursor_get_buffer (GdkCursor *cursor,
79 GdkDragProtocol _gdk_wayland_window_get_drag_protocol (GdkWindow *window,
82 void _gdk_wayland_window_register_dnd (GdkWindow *window);
83 GdkDragContext *_gdk_wayland_window_drag_begin (GdkWindow *window,
87 void _gdk_wayland_display_create_window_impl (GdkDisplay *display,
89 GdkWindow *real_parent,
91 GdkEventMask event_mask,
92 GdkWindowAttr *attributes,
93 gint attributes_mask);
95 GdkKeymap *_gdk_wayland_display_get_keymap (GdkDisplay *display);
97 GdkWindow *_gdk_wayland_display_get_selection_owner (GdkDisplay *display,
99 gboolean _gdk_wayland_display_set_selection_owner (GdkDisplay *display,
103 gboolean send_event);
104 void _gdk_wayland_display_send_selection_notify (GdkDisplay *dispay,
105 GdkWindow *requestor,
110 gint _gdk_wayland_display_get_selection_property (GdkDisplay *display,
111 GdkWindow *requestor,
115 void _gdk_wayland_display_convert_selection (GdkDisplay *display,
116 GdkWindow *requestor,
120 gint _gdk_wayland_display_text_property_to_utf8_list (GdkDisplay *display,
126 gchar * _gdk_wayland_display_utf8_to_string_target (GdkDisplay *display,
129 GdkDeviceManager *_gdk_wayland_device_manager_new (GdkDisplay *display);
130 void _gdk_wayland_device_manager_add_device (GdkDeviceManager *device_manager,
131 struct wl_input_device *device);
132 struct wl_input_device *_gdk_wayland_device_get_device (GdkDevice *device);
134 void _gdk_wayland_display_deliver_event (GdkDisplay *display, GdkEvent *event);
135 GSource *_gdk_wayland_display_event_source_new (GdkDisplay *display);
136 void _gdk_wayland_display_queue_events (GdkDisplay *display);
137 void _gdk_wayland_display_flush (GdkDisplay *display, GSource *source);
139 GdkAppLaunchContext *_gdk_wayland_display_get_app_launch_context (GdkDisplay *display);
141 GdkDisplay *_gdk_wayland_display_open (const gchar *display_name);
142 void _gdk_wayland_display_make_default (GdkDisplay *display);
144 GdkWindow *_gdk_wayland_screen_create_root_window (GdkScreen *screen,
148 GdkScreen *_gdk_wayland_screen_new (GdkDisplay *display);
150 void _gdk_wayland_display_manager_add_display (GdkDisplayManager *manager,
151 GdkDisplay *display);
152 void _gdk_wayland_display_manager_remove_display (GdkDisplayManager *manager,
153 GdkDisplay *display);
155 #endif /* __GDK_PRIVATE_WAYLAND_H__ */