]> Pileus Git - ~andy/gtk/blob - gtk/gtkarg.h
Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak
[~andy/gtk] / gtk / gtkarg.h
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 Library 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  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #ifndef __GTK_ARG_H__
20 #define __GTK_ARG_H__
21
22
23 #include <gtk/gtktypeutils.h>
24
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29
30
31
32
33 typedef struct _GtkArgInfo       GtkArgInfo;
34
35 struct _GtkArgInfo
36 {
37   /* hash key portion */
38   GtkType class_type;
39   gchar *name;
40   
41   GtkType type;
42   guint arg_flags;
43   gchar *full_name;
44   
45   /* private fields */
46   guint arg_id;
47   guint seq_id;
48 };
49
50
51 /* Non-public methods */
52
53 GtkArg*         gtk_arg_new              (GtkType       arg_type);
54 GtkArg*         gtk_arg_copy             (GtkArg       *src_arg,
55                                           GtkArg       *dest_arg);
56 void            gtk_arg_free             (GtkArg       *arg,
57                                           gboolean      free_contents);
58 gchar*          gtk_args_collect         (GtkType       object_type,
59                                           GHashTable    *arg_info_hash_table,
60                                           GSList      **arg_list_p,
61                                           GSList      **info_list_p,
62                                           const gchar   *first_arg_name,
63                                           va_list       var_args);
64 void            gtk_args_collect_cleanup (GSList       *arg_list,
65                                           GSList       *info_list);
66 gchar*          gtk_arg_get_info         (GtkType       object_type,
67                                           GHashTable    *arg_info_hash_table,
68                                           const gchar   *arg_name,
69                                           GtkArgInfo   **info_p);
70 GtkArgInfo*     gtk_arg_type_new_static  (GtkType       base_class_type,
71                                           const gchar   *arg_name,
72                                           guint         class_n_args_offset,
73                                           GHashTable    *arg_info_hash_table,
74                                           GtkType       arg_type,
75                                           guint         arg_flags,
76                                           guint         arg_id);
77 GtkArg*         gtk_args_query           (GtkType       class_type,
78                                           GHashTable    *arg_info_hash_table,
79                                           guint32      **arg_flags,
80                                           guint        *n_args_p);
81 gchar*          gtk_arg_name_strip_type  (const gchar   *arg_name);
82 gint            gtk_arg_info_equal       (gconstpointer arg_info_1,
83                                           gconstpointer arg_info_2);
84 guint           gtk_arg_info_hash        (gconstpointer arg_info);
85
86
87
88
89 #ifdef __cplusplus
90 }
91 #endif /* __cplusplus */
92
93
94 #endif /* __GTK_ARG_H__ */