1 | /* |
2 | * gdkdisplay.h |
3 | * |
4 | * Copyright 2001 Sun Microsystems Inc. |
5 | * |
6 | * Erwann Chenede <erwann.chenede@sun.com> |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Library General Public |
10 | * License as published by the Free Software Foundation; either |
11 | * version 2 of the License, or (at your option) any later version. |
12 | * |
13 | * This library is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Library General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Library General Public |
19 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | #ifndef __GDK_DISPLAY_H__ |
23 | #define __GDK_DISPLAY_H__ |
24 | |
25 | #if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION) |
26 | #error "Only <gdk/gdk.h> can be included directly." |
27 | #endif |
28 | |
29 | #include <gdk/gdkversionmacros.h> |
30 | #include <gdk/gdktypes.h> |
31 | #include <gdk/gdkevents.h> |
32 | #include <gdk/gdkseat.h> |
33 | #include <gdk/gdkmonitor.h> |
34 | |
35 | G_BEGIN_DECLS |
36 | |
37 | #define GDK_TYPE_DISPLAY (gdk_display_get_type ()) |
38 | #define GDK_DISPLAY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY, GdkDisplay)) |
39 | #define GDK_IS_DISPLAY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY)) |
40 | |
41 | GDK_AVAILABLE_IN_ALL |
42 | GType gdk_display_get_type (void) G_GNUC_CONST; |
43 | GDK_AVAILABLE_IN_ALL |
44 | GdkDisplay *gdk_display_open (const char *display_name); |
45 | |
46 | GDK_AVAILABLE_IN_ALL |
47 | const char * gdk_display_get_name (GdkDisplay *display); |
48 | |
49 | GDK_AVAILABLE_IN_ALL |
50 | gboolean gdk_display_device_is_grabbed (GdkDisplay *display, |
51 | GdkDevice *device); |
52 | GDK_AVAILABLE_IN_ALL |
53 | void gdk_display_beep (GdkDisplay *display); |
54 | GDK_AVAILABLE_IN_ALL |
55 | void gdk_display_sync (GdkDisplay *display); |
56 | GDK_AVAILABLE_IN_ALL |
57 | void gdk_display_flush (GdkDisplay *display); |
58 | |
59 | GDK_AVAILABLE_IN_ALL |
60 | void gdk_display_close (GdkDisplay *display); |
61 | GDK_AVAILABLE_IN_ALL |
62 | gboolean gdk_display_is_closed (GdkDisplay *display); |
63 | |
64 | GDK_AVAILABLE_IN_ALL |
65 | gboolean gdk_display_is_composited (GdkDisplay *display); |
66 | GDK_AVAILABLE_IN_ALL |
67 | gboolean gdk_display_is_rgba (GdkDisplay *display); |
68 | GDK_AVAILABLE_IN_ALL |
69 | gboolean gdk_display_supports_input_shapes (GdkDisplay *display); |
70 | |
71 | GDK_AVAILABLE_IN_4_4 |
72 | gboolean gdk_display_prepare_gl (GdkDisplay *self, |
73 | GError **error); |
74 | GDK_AVAILABLE_IN_4_6 |
75 | GdkGLContext *gdk_display_create_gl_context(GdkDisplay *self, |
76 | GError **error); |
77 | |
78 | GDK_AVAILABLE_IN_ALL |
79 | GdkDisplay *gdk_display_get_default (void); |
80 | |
81 | GDK_AVAILABLE_IN_ALL |
82 | GdkClipboard * gdk_display_get_clipboard (GdkDisplay *display); |
83 | GDK_AVAILABLE_IN_ALL |
84 | GdkClipboard * gdk_display_get_primary_clipboard (GdkDisplay *display); |
85 | |
86 | GDK_AVAILABLE_IN_ALL |
87 | void gdk_display_notify_startup_complete (GdkDisplay *display, |
88 | const char *startup_id); |
89 | GDK_AVAILABLE_IN_ALL |
90 | const char * gdk_display_get_startup_notification_id (GdkDisplay *display); |
91 | |
92 | GDK_AVAILABLE_IN_ALL |
93 | GdkAppLaunchContext *gdk_display_get_app_launch_context (GdkDisplay *display); |
94 | |
95 | GDK_AVAILABLE_IN_ALL |
96 | GdkSeat * gdk_display_get_default_seat (GdkDisplay *display); |
97 | |
98 | GDK_AVAILABLE_IN_ALL |
99 | GList * gdk_display_list_seats (GdkDisplay *display); |
100 | |
101 | GDK_AVAILABLE_IN_ALL |
102 | GListModel * gdk_display_get_monitors (GdkDisplay *self) G_GNUC_PURE; |
103 | GDK_AVAILABLE_IN_ALL |
104 | GdkMonitor * gdk_display_get_monitor_at_surface (GdkDisplay *display, |
105 | GdkSurface *surface); |
106 | |
107 | GDK_AVAILABLE_IN_ALL |
108 | void gdk_display_put_event (GdkDisplay *display, |
109 | GdkEvent *event); |
110 | |
111 | GDK_AVAILABLE_IN_ALL |
112 | gboolean gdk_display_map_keyval (GdkDisplay *display, |
113 | guint keyval, |
114 | GdkKeymapKey **keys, |
115 | int *n_keys); |
116 | |
117 | GDK_AVAILABLE_IN_ALL |
118 | gboolean gdk_display_map_keycode (GdkDisplay *display, |
119 | guint keycode, |
120 | GdkKeymapKey **keys, |
121 | guint **keyvals, |
122 | int *n_entries); |
123 | |
124 | GDK_AVAILABLE_IN_ALL |
125 | gboolean gdk_display_translate_key (GdkDisplay *display, |
126 | guint keycode, |
127 | GdkModifierType state, |
128 | int group, |
129 | guint *keyval, |
130 | int *effective_group, |
131 | int *level, |
132 | GdkModifierType *consumed); |
133 | |
134 | GDK_AVAILABLE_IN_ALL |
135 | gboolean gdk_display_get_setting (GdkDisplay *display, |
136 | const char *name, |
137 | GValue *value); |
138 | |
139 | |
140 | |
141 | G_END_DECLS |
142 | |
143 | #endif /* __GDK_DISPLAY_H__ */ |
144 | |