]> Pileus Git - ~andy/gtk/blob - gtk/gtkmodules.h
Move docs for gtkmain inline
[~andy/gtk] / gtk / gtkmodules.h
1 /* GTK - The GIMP Toolkit
2  * Copyright 1998-2002 Tim Janik, Red Hat, Inc., and others.
3  * Copyright (C) 2003 Alex Graveley
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22 #error "Only <gtk/gtk.h> can be included directly."
23 #endif
24
25 #ifndef __GTK_MODULES_H__
26 #define __GTK_MODULES_H__
27
28 #include <gtk/gtksettings.h>
29
30
31 G_BEGIN_DECLS
32
33 /**
34  * GtkModuleInitFunc:
35  * @argc: Pointer to the number of arguments remaining after gtk_init()
36  * @argv: Points to the argument vector
37  *
38  * Each GTK+ module must have a function gtk_module_init()
39  * with this prototype. This function is called after loading
40  * the module with the @argc and @argv cleaned from any arguments
41  * that GTK+ handles itself.
42  */
43 typedef void     (*GtkModuleInitFunc)        (gint        *argc,
44                                               gchar      ***argv);
45
46 /**
47  * GtkModuleDisplayInitFunc:
48  * @display: an open #GdkDisplay
49  *
50  * A multihead-aware GTK+ module may have a gtk_module_display_init()
51  * function with this prototype. GTK+ calls this function for each
52  * opened display.
53  *
54  * Since: 2.2
55  */
56 typedef void     (*GtkModuleDisplayInitFunc) (GdkDisplay   *display);
57
58
59 G_END_DECLS
60
61
62 #endif /* __GTK_MODULES_H__ */