2010-09-25 03:46:32 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
|
|
*
|
|
|
|
* 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2010-09-25 03:46:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
* files for a list of changes. These files are distributed with
|
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
|
|
*/
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GDK_MAIN_H__
|
|
|
|
#define __GDK_MAIN_H__
|
|
|
|
|
2010-09-25 03:46:32 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2012-02-27 12:07:48 +00:00
|
|
|
#include <gdk/gdkversionmacros.h>
|
2010-09-25 03:46:32 +00:00
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
/* Initialization, exit and events
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT)
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_parse_args (gint *argc,
|
|
|
|
gchar ***argv);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_init (gint *argc,
|
|
|
|
gchar ***argv);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-09-25 03:46:32 +00:00
|
|
|
gboolean gdk_init_check (gint *argc,
|
|
|
|
gchar ***argv);
|
2014-11-07 13:40:22 +00:00
|
|
|
GDK_DEPRECATED_IN_3_16
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_add_option_entries_libgtk_only (GOptionGroup *group);
|
2014-11-07 13:40:22 +00:00
|
|
|
GDK_DEPRECATED_IN_3_16
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_pre_parse_libgtk_only (void);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:05:18 +00:00
|
|
|
const gchar * gdk_get_program_class (void);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_set_program_class (const gchar *program_class);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_notify_startup_complete (void);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_notify_startup_complete_with_id (const gchar* startup_id);
|
|
|
|
|
|
|
|
/* Push and pop error handlers for X errors
|
|
|
|
*/
|
2017-12-26 03:42:01 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_x11_display_error_trap_push)
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_error_trap_push (void);
|
|
|
|
/* warn unused because you could use pop_ignored otherwise */
|
2017-12-26 03:42:01 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_x11_display_error_trap_pop)
|
2010-09-25 03:46:32 +00:00
|
|
|
G_GNUC_WARN_UNUSED_RESULT gint gdk_error_trap_pop (void);
|
2017-12-26 03:42:01 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_x11_display_error_trap_pop_ignored)
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_error_trap_pop_ignored (void);
|
|
|
|
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:05:18 +00:00
|
|
|
const gchar * gdk_get_display_arg_name (void);
|
2010-11-15 03:58:21 +00:00
|
|
|
|
2012-11-25 20:11:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_8_FOR(gdk_display_get_name (gdk_display_get_default ()))
|
2010-12-25 01:01:24 +00:00
|
|
|
gchar* gdk_get_display (void);
|
2010-09-25 03:46:32 +00:00
|
|
|
|
|
|
|
#ifndef GDK_MULTIDEVICE_SAFE
|
2012-02-27 12:07:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gdk_device_grab)
|
2010-09-25 03:46:32 +00:00
|
|
|
GdkGrabStatus gdk_pointer_grab (GdkWindow *window,
|
2011-10-09 13:55:08 +00:00
|
|
|
gboolean owner_events,
|
|
|
|
GdkEventMask event_mask,
|
|
|
|
GdkWindow *confine_to,
|
|
|
|
GdkCursor *cursor,
|
2011-10-11 19:03:46 +00:00
|
|
|
guint32 time_);
|
2012-02-27 12:07:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gdk_device_grab)
|
2010-09-25 03:46:32 +00:00
|
|
|
GdkGrabStatus gdk_keyboard_grab (GdkWindow *window,
|
2011-10-09 13:55:08 +00:00
|
|
|
gboolean owner_events,
|
2011-10-11 19:03:46 +00:00
|
|
|
guint32 time_);
|
2010-09-25 03:46:32 +00:00
|
|
|
#endif /* GDK_MULTIDEVICE_SAFE */
|
|
|
|
|
|
|
|
#ifndef GDK_MULTIDEVICE_SAFE
|
2012-02-27 12:07:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gdk_device_ungrab)
|
2011-10-11 19:03:46 +00:00
|
|
|
void gdk_pointer_ungrab (guint32 time_);
|
2012-02-27 12:07:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gdk_device_ungrab)
|
2011-10-11 19:03:46 +00:00
|
|
|
void gdk_keyboard_ungrab (guint32 time_);
|
2012-02-27 12:07:48 +00:00
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gdk_display_device_is_grabbed)
|
2011-10-11 19:03:46 +00:00
|
|
|
gboolean gdk_pointer_is_grabbed (void);
|
2010-09-25 03:46:32 +00:00
|
|
|
#endif /* GDK_MULTIDEVICE_SAFE */
|
|
|
|
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2010-09-25 03:46:32 +00:00
|
|
|
gint gdk_screen_width (void) G_GNUC_CONST;
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2010-09-25 03:46:32 +00:00
|
|
|
gint gdk_screen_height (void) G_GNUC_CONST;
|
|
|
|
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2010-09-25 03:46:32 +00:00
|
|
|
gint gdk_screen_width_mm (void) G_GNUC_CONST;
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2010-09-25 03:46:32 +00:00
|
|
|
gint gdk_screen_height_mm (void) G_GNUC_CONST;
|
|
|
|
|
2017-12-26 03:42:01 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_set_double_click_time)
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_set_double_click_time (guint msec);
|
|
|
|
|
2017-12-26 03:42:01 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_beep)
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_beep (void);
|
|
|
|
|
2017-12-26 03:42:01 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_flush)
|
2010-09-25 03:46:32 +00:00
|
|
|
void gdk_flush (void);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-21 19:32:59 +00:00
|
|
|
void gdk_disable_multidevice (void);
|
|
|
|
|
2013-03-23 04:16:24 +00:00
|
|
|
GDK_AVAILABLE_IN_3_10
|
|
|
|
void gdk_set_allowed_backends (const gchar *backends);
|
|
|
|
|
2010-09-25 03:46:32 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GDK_MAIN_H__ */
|