Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkmain.h
Go to the documentation of this file.
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#pragma once
26
27
28#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29#error "Only <gtk/gtk.h> can be included directly."
30#endif
31
32#include <gdk/gdk.h>
33#include <gtk/gtkwidget.h>
34#ifdef G_PLATFORM_WIN32
35#include <gtk/gtkbox.h>
36#include <gtk/gtkwindow.h>
37#endif
38
40
41/**
42 * GTK_PRIORITY_RESIZE: (value 110)
43 *
44 * Use this priority for functionality related to size allocation.
45 *
46 * It is used internally by GTK+ to compute the sizes of widgets.
47 * This priority is higher than %GDK_PRIORITY_REDRAW to avoid
48 * resizing a widget which was just redrawn.
49 */
50#define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10)
51
52/* Initialization, exit, mainloop and miscellaneous routines
53 */
54
56void gtk_init (void);
57
60
63
64#ifdef G_OS_WIN32
65
66/* Variants that are used to check for correct struct packing
67 * when building GTK+-using code.
68 */
70void gtk_init_abi_check (int num_checks,
71 size_t sizeof_GtkWindow,
72 size_t sizeof_GtkBox);
74gboolean gtk_init_check_abi_check (int num_checks,
75 size_t sizeof_GtkWindow,
76 size_t sizeof_GtkBox);
77
78#define gtk_init() gtk_init_abi_check (2, sizeof (GtkWindow), sizeof (GtkBox))
79#define gtk_init_check() gtk_init_check_abi_check (2, sizeof (GtkWindow), sizeof (GtkBox))
80
81#endif
82
89
90
92
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
GtkTextDirection
Definition gtkenums.h:267
GDK_AVAILABLE_IN_ALL void gtk_init(void)
GDK_AVAILABLE_IN_ALL void gtk_disable_setlocale(void)
GDK_AVAILABLE_IN_ALL gboolean gtk_is_initialized(void)
GDK_AVAILABLE_IN_ALL GtkTextDirection gtk_get_locale_direction(void)
GDK_AVAILABLE_IN_ALL gboolean gtk_init_check(void)
GDK_AVAILABLE_IN_ALL PangoLanguage * gtk_get_default_language(void) G_GNUC_CONST
gint gboolean
Definition gtypes.h:56
struct _PangoLanguage PangoLanguage
Definition pango-types.h:46