Ardour  9.0-pre0-582-g084a23a80d
gtkbuildable.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2006-2007 Async Open Source,
3  * Johan Dahlin <jdahlin@async.com.br>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library 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  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library 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 #ifndef __GTK_BUILDABLE_H__
22 #define __GTK_BUILDABLE_H__
23 
24 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
25 #error "Only <gtk/gtk.h> can be included directly."
26 #endif
27 
28 #include <gtk/gtkbuilder.h>
29 #include <gtk/gtktypeutils.h>
30 
31 G_BEGIN_DECLS
32 
33 #define GTK_TYPE_BUILDABLE (gtk_buildable_get_type ())
34 #define GTK_BUILDABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUILDABLE, GtkBuildable))
35 #define GTK_BUILDABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_BUILDABLE, GtkBuildableIface))
36 #define GTK_IS_BUILDABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUILDABLE))
37 #define GTK_BUILDABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_BUILDABLE, GtkBuildableIface))
38 
39 
40 typedef struct _GtkBuildable GtkBuildable; /* Dummy typedef */
42 
93 {
94  GTypeInterface g_iface;
95 
96  /* virtual table */
97  void (* set_name) (GtkBuildable *buildable,
98  const gchar *name);
99  const gchar * (* get_name) (GtkBuildable *buildable);
100  void (* add_child) (GtkBuildable *buildable,
101  GtkBuilder *builder,
102  GObject *child,
103  const gchar *type);
104  void (* set_buildable_property) (GtkBuildable *buildable,
105  GtkBuilder *builder,
106  const gchar *name,
107  const GValue *value);
108  GObject * (* construct_child) (GtkBuildable *buildable,
109  GtkBuilder *builder,
110  const gchar *name);
111  gboolean (* custom_tag_start) (GtkBuildable *buildable,
112  GtkBuilder *builder,
113  GObject *child,
114  const gchar *tagname,
115  GMarkupParser *parser,
116  gpointer *data);
117  void (* custom_tag_end) (GtkBuildable *buildable,
118  GtkBuilder *builder,
119  GObject *child,
120  const gchar *tagname,
121  gpointer *data);
122  void (* custom_finished) (GtkBuildable *buildable,
123  GtkBuilder *builder,
124  GObject *child,
125  const gchar *tagname,
126  gpointer data);
127  void (* parser_finished) (GtkBuildable *buildable,
128  GtkBuilder *builder);
129 
130  GObject * (* get_internal_child) (GtkBuildable *buildable,
131  GtkBuilder *builder,
132  const gchar *childname);
133 };
134 
135 
136 GType gtk_buildable_get_type (void) G_GNUC_CONST;
137 
139  const gchar *name);
140 const gchar * gtk_buildable_get_name (GtkBuildable *buildable);
142  GtkBuilder *builder,
143  GObject *child,
144  const gchar *type);
146  GtkBuilder *builder,
147  const gchar *name,
148  const GValue *value);
150  GtkBuilder *builder,
151  const gchar *name);
153  GtkBuilder *builder,
154  GObject *child,
155  const gchar *tagname,
156  GMarkupParser *parser,
157  gpointer *data);
159  GtkBuilder *builder,
160  GObject *child,
161  const gchar *tagname,
162  gpointer *data);
164  GtkBuilder *builder,
165  GObject *child,
166  const gchar *tagname,
167  gpointer data);
169  GtkBuilder *builder);
171  GtkBuilder *builder,
172  const gchar *childname);
173 
174 G_END_DECLS
175 
176 #endif /* __GTK_BUILDABLE_H__ */
struct _GtkBuildable GtkBuildable
Definition: gtkbuildable.h:40
void gtk_buildable_set_name(GtkBuildable *buildable, const gchar *name)
void gtk_buildable_custom_tag_end(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, gpointer *data)
GObject * gtk_buildable_get_internal_child(GtkBuildable *buildable, GtkBuilder *builder, const gchar *childname)
void gtk_buildable_set_buildable_property(GtkBuildable *buildable, GtkBuilder *builder, const gchar *name, const GValue *value)
void gtk_buildable_add_child(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *type)
GObject * gtk_buildable_construct_child(GtkBuildable *buildable, GtkBuilder *builder, const gchar *name)
void gtk_buildable_custom_finished(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, gpointer data)
void gtk_buildable_parser_finished(GtkBuildable *buildable, GtkBuilder *builder)
gboolean gtk_buildable_custom_tag_start(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, GMarkupParser *parser, gpointer *data)
const gchar * gtk_buildable_get_name(GtkBuildable *buildable)
GType gtk_buildable_get_type(void) G_GNUC_CONST
GtkImageIconNameData name
Definition: gtkimage.h:6
GTypeInterface g_iface
Definition: gtkbuildable.h:94
void(* custom_finished)(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, gpointer data)
Definition: gtkbuildable.h:122
gboolean(* custom_tag_start)(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, GMarkupParser *parser, gpointer *data)
Definition: gtkbuildable.h:111
void(* parser_finished)(GtkBuildable *buildable, GtkBuilder *builder)
Definition: gtkbuildable.h:127
void(* custom_tag_end)(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, gpointer *data)
Definition: gtkbuildable.h:117
void(* add_child)(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *type)
Definition: gtkbuildable.h:100
void(* set_name)(GtkBuildable *buildable, const gchar *name)
Definition: gtkbuildable.h:97
void(* set_buildable_property)(GtkBuildable *buildable, GtkBuilder *builder, const gchar *name, const GValue *value)
Definition: gtkbuildable.h:104