1 | /* GTK - The GIMP Toolkit |
2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Lesser General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | * Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public |
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | |
18 | /* |
19 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
20 | * file for a list of people on the GTK+ Team. See the ChangeLog |
21 | * files for a list of changes. These files are distributed with |
22 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
23 | */ |
24 | |
25 | #ifndef __GTK_MAIN_H__ |
26 | #define __GTK_MAIN_H__ |
27 | |
28 | |
29 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
30 | #error "Only <gtk/gtk.h> can be included directly." |
31 | #endif |
32 | |
33 | #include <gdk/gdk.h> |
34 | #include <gtk/gtkwidget.h> |
35 | #ifdef G_PLATFORM_WIN32 |
36 | #include <gtk/gtkbox.h> |
37 | #include <gtk/gtkwindow.h> |
38 | #endif |
39 | |
40 | G_BEGIN_DECLS |
41 | |
42 | /** |
43 | * GTK_PRIORITY_RESIZE: (value 110) |
44 | * |
45 | * Use this priority for functionality related to size allocation. |
46 | * |
47 | * It is used internally by GTK+ to compute the sizes of widgets. |
48 | * This priority is higher than %GDK_PRIORITY_REDRAW to avoid |
49 | * resizing a widget which was just redrawn. |
50 | */ |
51 | #define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10) |
52 | |
53 | /* Initialization, exit, mainloop and miscellaneous routines |
54 | */ |
55 | |
56 | GDK_AVAILABLE_IN_ALL |
57 | void gtk_init (void); |
58 | |
59 | GDK_AVAILABLE_IN_ALL |
60 | gboolean gtk_init_check (void); |
61 | |
62 | GDK_AVAILABLE_IN_ALL |
63 | gboolean gtk_is_initialized (void); |
64 | |
65 | #ifdef G_OS_WIN32 |
66 | |
67 | /* Variants that are used to check for correct struct packing |
68 | * when building GTK+-using code. |
69 | */ |
70 | GDK_AVAILABLE_IN_ALL |
71 | void gtk_init_abi_check (int num_checks, |
72 | size_t sizeof_GtkWindow, |
73 | size_t sizeof_GtkBox); |
74 | GDK_AVAILABLE_IN_ALL |
75 | gboolean gtk_init_check_abi_check (int num_checks, |
76 | size_t sizeof_GtkWindow, |
77 | size_t sizeof_GtkBox); |
78 | |
79 | #define gtk_init() gtk_init_abi_check (2, sizeof (GtkWindow), sizeof (GtkBox)) |
80 | #define gtk_init_check() gtk_init_check_abi_check (2, sizeof (GtkWindow), sizeof (GtkBox)) |
81 | |
82 | #endif |
83 | |
84 | GDK_AVAILABLE_IN_ALL |
85 | void gtk_disable_setlocale (void); |
86 | GDK_AVAILABLE_IN_ALL |
87 | PangoLanguage * gtk_get_default_language (void) G_GNUC_CONST; |
88 | GDK_AVAILABLE_IN_ALL |
89 | GtkTextDirection gtk_get_locale_direction (void); |
90 | |
91 | |
92 | G_END_DECLS |
93 | |
94 | #endif /* __GTK_MAIN_H__ */ |
95 | |