|
Packit Service |
fb6fa5 |
/* GTK - The GIMP Toolkit
|
|
Packit Service |
fb6fa5 |
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
fb6fa5 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
fb6fa5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fb6fa5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fb6fa5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fb6fa5 |
* Lesser General Public License for more details.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License along with this library; if not, write to the
|
|
Packit Service |
fb6fa5 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit Service |
fb6fa5 |
* Boston, MA 02111-1307, USA.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/*
|
|
Packit Service |
fb6fa5 |
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
Packit Service |
fb6fa5 |
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
Packit Service |
fb6fa5 |
* files for a list of changes. These files are distributed with
|
|
Packit Service |
fb6fa5 |
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef __GTK_MAIN_H__
|
|
Packit Service |
fb6fa5 |
#define __GTK_MAIN_H__
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
Packit Service |
fb6fa5 |
#error "Only <gtk/gtk.h> can be included directly."
|
|
Packit Service |
fb6fa5 |
#endif
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#include <gdk/gdk.h>
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtkwidget.h>
|
|
Packit Service |
fb6fa5 |
#ifdef G_PLATFORM_WIN32
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtkbox.h>
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtkwindow.h>
|
|
Packit Service |
fb6fa5 |
#endif
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_BEGIN_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Priorities for redrawing and resizing
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
#define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10)
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef GTK_DISABLE_DEPRECATED
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Use GDK_PRIORITY_REDRAW */
|
|
Packit Service |
fb6fa5 |
#define GTK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20)
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Deprecated. Use G_PRIORITY #define's instead
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
#define GTK_PRIORITY_HIGH G_PRIORITY_HIGH
|
|
Packit Service |
fb6fa5 |
#define GTK_PRIORITY_INTERNAL GTK_PRIORITY_REDRAW
|
|
Packit Service |
fb6fa5 |
#define GTK_PRIORITY_DEFAULT G_PRIORITY_DEFAULT_IDLE
|
|
Packit Service |
fb6fa5 |
#define GTK_PRIORITY_LOW G_PRIORITY_LOW
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif /* GTK_DISABLE_DEPRECATED */
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget,
|
|
Packit Service |
fb6fa5 |
GdkEventKey *event,
|
|
Packit Service |
fb6fa5 |
gpointer func_data);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Gtk version.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
#ifdef G_PLATFORM_WIN32
|
|
Packit Service |
fb6fa5 |
#ifdef GTK_COMPILATION
|
|
Packit Service |
fb6fa5 |
#define GTKMAIN_C_VAR __declspec(dllexport)
|
|
Packit Service |
fb6fa5 |
#else
|
|
Packit Service |
fb6fa5 |
#define GTKMAIN_C_VAR extern __declspec(dllimport)
|
|
Packit Service |
fb6fa5 |
#endif
|
|
Packit Service |
fb6fa5 |
#else
|
|
Packit Service |
fb6fa5 |
#define GTKMAIN_C_VAR extern
|
|
Packit Service |
fb6fa5 |
#endif
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GTKMAIN_C_VAR const guint gtk_major_version;
|
|
Packit Service |
fb6fa5 |
GTKMAIN_C_VAR const guint gtk_minor_version;
|
|
Packit Service |
fb6fa5 |
GTKMAIN_C_VAR const guint gtk_micro_version;
|
|
Packit Service |
fb6fa5 |
GTKMAIN_C_VAR const guint gtk_binary_age;
|
|
Packit Service |
fb6fa5 |
GTKMAIN_C_VAR const guint gtk_interface_age;
|
|
Packit Service |
fb6fa5 |
const gchar* gtk_check_version (guint required_major,
|
|
Packit Service |
fb6fa5 |
guint required_minor,
|
|
Packit Service |
fb6fa5 |
guint required_micro);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Initialization, exit, mainloop and miscellaneous routines
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean gtk_parse_args (int *argc,
|
|
Packit Service |
fb6fa5 |
char ***argv);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void gtk_init (int *argc,
|
|
Packit Service |
fb6fa5 |
char ***argv);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean gtk_init_check (int *argc,
|
|
Packit Service |
fb6fa5 |
char ***argv);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean gtk_init_with_args (int *argc,
|
|
Packit Service |
fb6fa5 |
char ***argv,
|
|
Packit Service |
fb6fa5 |
const char *parameter_string,
|
|
Packit Service |
fb6fa5 |
GOptionEntry *entries,
|
|
Packit Service |
fb6fa5 |
const char *translation_domain,
|
|
Packit Service |
fb6fa5 |
GError **error);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GOptionGroup *gtk_get_option_group (gboolean open_default_display);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifdef G_PLATFORM_WIN32
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Variants that are used to check for correct struct packing
|
|
Packit Service |
fb6fa5 |
* when building GTK+-using code.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
void gtk_init_abi_check (int *argc,
|
|
Packit Service |
fb6fa5 |
char ***argv,
|
|
Packit Service |
fb6fa5 |
int num_checks,
|
|
Packit Service |
fb6fa5 |
size_t sizeof_GtkWindow,
|
|
Packit Service |
fb6fa5 |
size_t sizeof_GtkBox);
|
|
Packit Service |
fb6fa5 |
gboolean gtk_init_check_abi_check (int *argc,
|
|
Packit Service |
fb6fa5 |
char ***argv,
|
|
Packit Service |
fb6fa5 |
int num_checks,
|
|
Packit Service |
fb6fa5 |
size_t sizeof_GtkWindow,
|
|
Packit Service |
fb6fa5 |
size_t sizeof_GtkBox);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#define gtk_init(argc, argv) gtk_init_abi_check (argc, argv, 2, sizeof (GtkWindow), sizeof (GtkBox))
|
|
Packit Service |
fb6fa5 |
#define gtk_init_check(argc, argv) gtk_init_check_abi_check (argc, argv, 2, sizeof (GtkWindow), sizeof (GtkBox))
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef GTK_DISABLE_DEPRECATED
|
|
Packit Service |
fb6fa5 |
void gtk_exit (gint error_code);
|
|
Packit Service |
fb6fa5 |
gchar * gtk_set_locale (void);
|
|
Packit Service |
fb6fa5 |
#endif /* GTK_DISABLE_DEPRECATED */
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void gtk_disable_setlocale (void);
|
|
Packit Service |
fb6fa5 |
PangoLanguage *gtk_get_default_language (void);
|
|
Packit Service |
fb6fa5 |
gboolean gtk_events_pending (void);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* The following is the event func GTK+ registers with GDK
|
|
Packit Service |
fb6fa5 |
* we expose it mainly to allow filtering of events between
|
|
Packit Service |
fb6fa5 |
* GDK and GTK+.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
void gtk_main_do_event (GdkEvent *event);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void gtk_main (void);
|
|
Packit Service |
fb6fa5 |
guint gtk_main_level (void);
|
|
Packit Service |
fb6fa5 |
void gtk_main_quit (void);
|
|
Packit Service |
fb6fa5 |
gboolean gtk_main_iteration (void);
|
|
Packit Service |
fb6fa5 |
/* gtk_main_iteration() calls gtk_main_iteration_do(TRUE) */
|
|
Packit Service |
fb6fa5 |
gboolean gtk_main_iteration_do (gboolean blocking);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean gtk_true (void) G_GNUC_CONST;
|
|
Packit Service |
fb6fa5 |
gboolean gtk_false (void) G_GNUC_CONST;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void gtk_grab_add (GtkWidget *widget);
|
|
Packit Service |
fb6fa5 |
GtkWidget* gtk_grab_get_current (void);
|
|
Packit Service |
fb6fa5 |
void gtk_grab_remove (GtkWidget *widget);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
|
|
Packit Service |
fb6fa5 |
void gtk_init_add (GtkFunction function,
|
|
Packit Service |
fb6fa5 |
gpointer data);
|
|
Packit Service |
fb6fa5 |
void gtk_quit_add_destroy (guint main_level,
|
|
Packit Service |
fb6fa5 |
GtkObject *object);
|
|
Packit Service |
fb6fa5 |
guint gtk_quit_add (guint main_level,
|
|
Packit Service |
fb6fa5 |
GtkFunction function,
|
|
Packit Service |
fb6fa5 |
gpointer data);
|
|
Packit Service |
fb6fa5 |
guint gtk_quit_add_full (guint main_level,
|
|
Packit Service |
fb6fa5 |
GtkFunction function,
|
|
Packit Service |
fb6fa5 |
GtkCallbackMarshal marshal,
|
|
Packit Service |
fb6fa5 |
gpointer data,
|
|
Packit Service |
fb6fa5 |
GDestroyNotify destroy);
|
|
Packit Service |
fb6fa5 |
void gtk_quit_remove (guint quit_handler_id);
|
|
Packit Service |
fb6fa5 |
void gtk_quit_remove_by_data (gpointer data);
|
|
Packit Service |
fb6fa5 |
guint gtk_timeout_add (guint32 interval,
|
|
Packit Service |
fb6fa5 |
GtkFunction function,
|
|
Packit Service |
fb6fa5 |
gpointer data);
|
|
Packit Service |
fb6fa5 |
guint gtk_timeout_add_full (guint32 interval,
|
|
Packit Service |
fb6fa5 |
GtkFunction function,
|
|
Packit Service |
fb6fa5 |
GtkCallbackMarshal marshal,
|
|
Packit Service |
fb6fa5 |
gpointer data,
|
|
Packit Service |
fb6fa5 |
GDestroyNotify destroy);
|
|
Packit Service |
fb6fa5 |
void gtk_timeout_remove (guint timeout_handler_id);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
guint gtk_idle_add (GtkFunction function,
|
|
Packit Service |
fb6fa5 |
gpointer data);
|
|
Packit Service |
fb6fa5 |
guint gtk_idle_add_priority (gint priority,
|
|
Packit Service |
fb6fa5 |
GtkFunction function,
|
|
Packit Service |
fb6fa5 |
gpointer data);
|
|
Packit Service |
fb6fa5 |
guint gtk_idle_add_full (gint priority,
|
|
Packit Service |
fb6fa5 |
GtkFunction function,
|
|
Packit Service |
fb6fa5 |
GtkCallbackMarshal marshal,
|
|
Packit Service |
fb6fa5 |
gpointer data,
|
|
Packit Service |
fb6fa5 |
GDestroyNotify destroy);
|
|
Packit Service |
fb6fa5 |
void gtk_idle_remove (guint idle_handler_id);
|
|
Packit Service |
fb6fa5 |
void gtk_idle_remove_by_data (gpointer data);
|
|
Packit Service |
fb6fa5 |
guint gtk_input_add_full (gint source,
|
|
Packit Service |
fb6fa5 |
GdkInputCondition condition,
|
|
Packit Service |
fb6fa5 |
GdkInputFunction function,
|
|
Packit Service |
fb6fa5 |
GtkCallbackMarshal marshal,
|
|
Packit Service |
fb6fa5 |
gpointer data,
|
|
Packit Service |
fb6fa5 |
GDestroyNotify destroy);
|
|
Packit Service |
fb6fa5 |
void gtk_input_remove (guint input_handler_id);
|
|
Packit Service |
fb6fa5 |
#endif /* GTK_DISABLE_DEPRECATED */
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
guint gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
|
Packit Service |
fb6fa5 |
gpointer func_data);
|
|
Packit Service |
fb6fa5 |
void gtk_key_snooper_remove (guint snooper_handler_id);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GdkEvent* gtk_get_current_event (void);
|
|
Packit Service |
fb6fa5 |
guint32 gtk_get_current_event_time (void);
|
|
Packit Service |
fb6fa5 |
gboolean gtk_get_current_event_state (GdkModifierType *state);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GtkWidget* gtk_get_event_widget (GdkEvent *event);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Private routines internal to GTK+
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
void gtk_propagate_event (GtkWidget *widget,
|
|
Packit Service |
fb6fa5 |
GdkEvent *event);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint,
|
|
Packit Service |
fb6fa5 |
GValue *return_accu,
|
|
Packit Service |
fb6fa5 |
const GValue *handler_return,
|
|
Packit Service |
fb6fa5 |
gpointer dummy);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gchar *_gtk_get_lc_ctype (void);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean _gtk_module_has_mixed_deps (GModule *module);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_END_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif /* __GTK_MAIN_H__ */
|