gdkdisplay.h 5.19 KB
Newer Older
1
2
/*
 * gdkdisplay.h
3
4
 *
 * Copyright 2001 Sun Microsystems Inc.
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 *
 * Erwann Chenede <erwann.chenede@sun.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
Javier Jardón's avatar
Javier Jardón committed
19
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20
21
 */

22
23
24
#ifndef __GDK_DISPLAY_H__
#define __GDK_DISPLAY_H__

25
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
26
27
28
#error "Only <gdk/gdk.h> can be included directly."
#endif

29
#include <gdk/gdkversionmacros.h>
30
31
#include <gdk/gdktypes.h>
#include <gdk/gdkevents.h>
32
#include <gdk/gdkseat.h>
33
#include <gdk/gdkmonitor.h>
34
35
36
37

G_BEGIN_DECLS

#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
Matthias Clasen's avatar
Matthias Clasen committed
42
GType       gdk_display_get_type (void) G_GNUC_CONST;
43
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
44
GdkDisplay *gdk_display_open                (const char *display_name);
45

46
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
47
const char * gdk_display_get_name         (GdkDisplay *display);
48

49
GDK_AVAILABLE_IN_ALL
50
51
gboolean    gdk_display_device_is_grabbed  (GdkDisplay  *display,
                                            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
58
void        gdk_display_flush              (GdkDisplay  *display);

59
GDK_AVAILABLE_IN_ALL
60
void        gdk_display_close                  (GdkDisplay  *display);
61
GDK_AVAILABLE_IN_ALL
John Stowers's avatar
John Stowers committed
62
gboolean    gdk_display_is_closed          (GdkDisplay  *display);
63

Matthias Clasen's avatar
Matthias Clasen committed
64
GDK_AVAILABLE_IN_ALL
65
gboolean    gdk_display_is_composited      (GdkDisplay  *display);
Matthias Clasen's avatar
Matthias Clasen committed
66
GDK_AVAILABLE_IN_ALL
67
gboolean    gdk_display_is_rgba            (GdkDisplay  *display);
68
69
GDK_AVAILABLE_IN_ALL
gboolean    gdk_display_supports_input_shapes (GdkDisplay    *display);
70

71
72
73
74
GDK_AVAILABLE_IN_4_4
gboolean    gdk_display_prepare_gl         (GdkDisplay  *self,
                                            GError     **error);

75
GDK_AVAILABLE_IN_ALL
Owen Taylor's avatar
Owen Taylor committed
76
GdkDisplay *gdk_display_get_default (void);
77

Matthias Clasen's avatar
Matthias Clasen committed
78
GDK_AVAILABLE_IN_ALL
79
GdkClipboard *          gdk_display_get_clipboard               (GdkDisplay     *display);
Matthias Clasen's avatar
Matthias Clasen committed
80
GDK_AVAILABLE_IN_ALL
81
GdkClipboard *          gdk_display_get_primary_clipboard       (GdkDisplay     *display);
82

83
GDK_AVAILABLE_IN_ALL
84
void     gdk_display_notify_startup_complete   (GdkDisplay    *display,
Benjamin Otte's avatar
Benjamin Otte committed
85
                                                const char    *startup_id);
86
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
87
const char * gdk_display_get_startup_notification_id (GdkDisplay *display);
88

89
GDK_AVAILABLE_IN_ALL
90
91
GdkAppLaunchContext *gdk_display_get_app_launch_context (GdkDisplay *display);

Matthias Clasen's avatar
Matthias Clasen committed
92
GDK_AVAILABLE_IN_ALL
93
94
GdkSeat * gdk_display_get_default_seat (GdkDisplay *display);

Matthias Clasen's avatar
Matthias Clasen committed
95
GDK_AVAILABLE_IN_ALL
96
97
GList   * gdk_display_list_seats       (GdkDisplay *display);

Matthias Clasen's avatar
Matthias Clasen committed
98
GDK_AVAILABLE_IN_ALL
99
100
GListModel * gdk_display_get_monitors          (GdkDisplay *self) G_GNUC_PURE;
GDK_AVAILABLE_IN_ALL
101
GdkMonitor * gdk_display_get_monitor_at_surface (GdkDisplay *display,
102
                                                GdkSurface  *surface);
103

104
105
106
107
GDK_AVAILABLE_IN_ALL
void      gdk_display_put_event  (GdkDisplay     *display,
                                  GdkEvent       *event);

108
109
110
111
112
113
114
115
116
117
118
119
120
GDK_AVAILABLE_IN_ALL
gboolean       gdk_display_map_keyval  (GdkDisplay    *display,
                                        guint          keyval,
                                        GdkKeymapKey **keys,
                                        int           *n_keys);

GDK_AVAILABLE_IN_ALL
gboolean       gdk_display_map_keycode (GdkDisplay    *display,
                                        guint          keycode,
                                        GdkKeymapKey **keys,
                                        guint        **keyvals,
                                        int           *n_entries);

121
122
123
124
125
126
127
128
129
130
GDK_AVAILABLE_IN_ALL
gboolean       gdk_display_translate_key (GdkDisplay      *display,
                                          guint            keycode,
                                          GdkModifierType  state,
                                          int              group,
                                          guint           *keyval,
                                          int             *effective_group,
                                          int             *level,
                                          GdkModifierType *consumed);

Matthias Clasen's avatar
Matthias Clasen committed
131
GDK_AVAILABLE_IN_ALL
132
133
134
135
136
gboolean     gdk_display_get_setting (GdkDisplay *display,
                                      const char *name,
                                      GValue     *value);


137

138
139
G_END_DECLS

140
#endif  /* __GDK_DISPLAY_H__ */