2002-04-25 22:29:14 +00:00
|
|
|
/*
|
|
|
|
* gdkdisplay.h
|
2010-12-24 20:54:12 +00:00
|
|
|
*
|
|
|
|
* Copyright 2001 Sun Microsystems Inc.
|
2002-04-25 22:29:14 +00:00
|
|
|
*
|
|
|
|
* 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2002-04-25 22:29:14 +00:00
|
|
|
*/
|
|
|
|
|
2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2012-12-28 14:57:34 +00:00
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 14:01:57 +00:00
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2012-02-27 12:07:48 +00:00
|
|
|
#include <gdk/gdkversionmacros.h>
|
2002-04-25 22:29:14 +00:00
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
#include <gdk/gdkevents.h>
|
2015-11-26 18:52:23 +00:00
|
|
|
#include <gdk/gdkseat.h>
|
2016-04-01 03:10:37 +00:00
|
|
|
#include <gdk/gdkmonitor.h>
|
2002-04-25 22:29:14 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GDK_TYPE_DISPLAY (gdk_display_get_type ())
|
2010-12-20 16:11:00 +00:00
|
|
|
#define GDK_DISPLAY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY, GdkDisplay))
|
2010-12-24 20:54:12 +00:00
|
|
|
#define GDK_IS_DISPLAY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY))
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-11-28 06:45:52 +00:00
|
|
|
GType gdk_display_get_type (void) G_GNUC_CONST;
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
GdkDisplay *gdk_display_open (const char *display_name);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gdk_display_get_name (GdkDisplay *display);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-05-25 22:38:44 +00:00
|
|
|
gboolean gdk_display_device_is_grabbed (GdkDisplay *display,
|
|
|
|
GdkDevice *device);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
void gdk_display_beep (GdkDisplay *display);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
void gdk_display_sync (GdkDisplay *display);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2003-07-05 01:54:05 +00:00
|
|
|
void gdk_display_flush (GdkDisplay *display);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-24 20:54:12 +00:00
|
|
|
void gdk_display_close (GdkDisplay *display);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-07-14 08:48:54 +00:00
|
|
|
gboolean gdk_display_is_closed (GdkDisplay *display);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-10-28 21:38:16 +00:00
|
|
|
gboolean gdk_display_is_composited (GdkDisplay *display);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-10-28 21:38:16 +00:00
|
|
|
gboolean gdk_display_is_rgba (GdkDisplay *display);
|
2020-05-18 02:05:24 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gdk_display_supports_input_shapes (GdkDisplay *display);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2021-07-04 23:57:03 +00:00
|
|
|
GDK_AVAILABLE_IN_4_4
|
|
|
|
gboolean gdk_display_prepare_gl (GdkDisplay *self,
|
|
|
|
GError **error);
|
2021-10-20 18:03:00 +00:00
|
|
|
GDK_AVAILABLE_IN_4_6
|
|
|
|
GdkGLContext *gdk_display_create_gl_context(GdkDisplay *self,
|
|
|
|
GError **error);
|
2021-07-04 23:57:03 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-06-20 23:59:27 +00:00
|
|
|
GdkDisplay *gdk_display_get_default (void);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-05-29 03:55:53 +00:00
|
|
|
GdkClipboard * gdk_display_get_clipboard (GdkDisplay *display);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-05-29 03:55:53 +00:00
|
|
|
GdkClipboard * gdk_display_get_primary_clipboard (GdkDisplay *display);
|
New API to handle the clipboard manager.
2004-10-25 Anders Carlsson <andersca@imendio.com>
* gdk/gdk.symbols:
* gdk/gdkdisplay.h:
* gdk/x11/gdkdisplay-x11.c:
(gdk_display_supports_clipboard_persistence),
(gdk_display_store_clipboard):
New API to handle the clipboard manager.
* gtk/gtk.symbols:
* gtk/gtkclipboard.c: (gtk_clipboard_class_init),
(gtk_clipboard_finalize), (selection_clear_event_cb),
(clipboard_unset), (gtk_clipboard_set_text),
(gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets),
(clipboard_peek), (gtk_clipboard_owner_change),
(gtk_clipboard_wait_is_target_available),
(gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store),
(gtk_clipboard_selection_notify), (gtk_clipboard_store),
(_gtk_clipboard_store_all):
* gtk/gtkclipboard.h:
Add API for clipboard persistence and implement it, also add
gtk_clipboard_wait_is_target_available.
* gtk/gtkmain.c: (gtk_main):
Call _gtk_clipboard_store_all before exiting.
2004-10-25 18:53:30 +00:00
|
|
|
|
2023-01-03 13:02:53 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(gdk_toplevel_set_startup_id)
|
2010-12-14 01:46:00 +00:00
|
|
|
void gdk_display_notify_startup_complete (GdkDisplay *display,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *startup_id);
|
2023-02-01 16:58:43 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gdk_display_get_startup_notification_id (GdkDisplay *display);
|
2006-02-20 01:36:50 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-09 06:08:05 +00:00
|
|
|
GdkAppLaunchContext *gdk_display_get_app_launch_context (GdkDisplay *display);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-11-26 18:52:23 +00:00
|
|
|
GdkSeat * gdk_display_get_default_seat (GdkDisplay *display);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-11-26 18:52:23 +00:00
|
|
|
GList * gdk_display_list_seats (GdkDisplay *display);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-05-13 05:00:35 +00:00
|
|
|
GListModel * gdk_display_get_monitors (GdkDisplay *self) G_GNUC_PURE;
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 11:05:26 +00:00
|
|
|
GdkMonitor * gdk_display_get_monitor_at_surface (GdkDisplay *display,
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkSurface *surface);
|
2016-04-01 03:10:37 +00:00
|
|
|
|
2023-01-09 20:29:24 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10
|
2020-05-29 13:25:17 +00:00
|
|
|
void gdk_display_put_event (GdkDisplay *display,
|
|
|
|
GdkEvent *event);
|
|
|
|
|
2020-04-05 15:02:50 +00:00
|
|
|
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);
|
|
|
|
|
2020-05-28 19:15:53 +00:00
|
|
|
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);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-30 13:00:49 +00:00
|
|
|
gboolean gdk_display_get_setting (GdkDisplay *display,
|
|
|
|
const char *name,
|
|
|
|
GValue *value);
|
|
|
|
|
2022-09-23 23:08:25 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkDisplay, g_object_unref)
|
2016-04-01 03:10:37 +00:00
|
|
|
|
2002-04-25 22:29:14 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|