27 #ifndef __GTK_CONTAINER_H__
28 #define __GTK_CONTAINER_H__
31 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
32 #error "Only <gtk/gtk.h> can be included directly."
41 #define GTK_TYPE_CONTAINER (gtk_container_get_type ())
42 #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer))
43 #define GTK_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass))
44 #define GTK_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CONTAINER))
45 #define GTK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER))
46 #define GTK_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CONTAINER, GtkContainerClass))
48 #define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT)
60 guint
GSEAL (border_width) : 16;
63 guint
GSEAL (need_resize) : 1;
64 guint
GSEAL (resize_mode) : 2;
65 guint
GSEAL (reallocate_redraws) : 1;
66 guint
GSEAL (has_focus_chain) : 1;
79 gboolean include_internals,
81 gpointer callback_data);
124 gpointer callback_data);
125 #ifndef GTK_DISABLE_DEPRECATED
129 gpointer callback_data,
130 GDestroyNotify notify);
135 #ifndef GTK_DISABLE_DEPRECATED
136 #define gtk_container_children gtk_container_get_children
144 GList *focusable_widgets);
146 GList **focusable_widgets);
152 gboolean needs_redraws);
173 const gchar *property_name);
175 guint *n_properties);
178 const gchar *first_prop_name,
179 ...) G_GNUC_NULL_TERMINATED;
182 const gchar *first_prop_name,
183 ...) G_GNUC_NULL_TERMINATED;
186 const gchar *first_prop_name,
187 ...) G_GNUC_NULL_TERMINATED;
190 const gchar *first_property_name,
194 const gchar *first_property_name,
198 const gchar *property_name,
199 const GValue *value);
202 const gchar *property_name,
205 #define GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID(object, property_id, pspec) \
206 G_OBJECT_WARN_INVALID_PSPEC ((object), "child property id", (property_id), (pspec))
211 gpointer callback_data);
224 #ifndef GTK_DISABLE_DEPRECATED
225 #define gtk_container_border_width gtk_container_set_border_width
void gtk_container_child_get(GtkContainer *container, GtkWidget *child, const gchar *first_prop_name,...) G_GNUC_NULL_TERMINATED
void gtk_container_child_set(GtkContainer *container, GtkWidget *child, const gchar *first_prop_name,...) G_GNUC_NULL_TERMINATED
GParamSpec * gtk_container_class_find_child_property(GObjectClass *cclass, const gchar *property_name)
gboolean gtk_container_get_focus_chain(GtkContainer *container, GList **focusable_widgets)
void gtk_container_add_with_properties(GtkContainer *container, GtkWidget *widget, const gchar *first_prop_name,...) G_GNUC_NULL_TERMINATED
void gtk_container_check_resize(GtkContainer *container)
void gtk_container_forall(GtkContainer *container, GtkCallback callback, gpointer callback_data)
GType gtk_container_get_type(void) G_GNUC_CONST
GtkAdjustment * gtk_container_get_focus_hadjustment(GtkContainer *container)
guint gtk_container_get_border_width(GtkContainer *container)
void gtk_container_set_focus_child(GtkContainer *container, GtkWidget *child)
void gtk_container_set_focus_chain(GtkContainer *container, GList *focusable_widgets)
GList * _gtk_container_focus_sort(GtkContainer *container, GList *children, GtkDirectionType direction, GtkWidget *old_focus)
void gtk_container_class_install_child_property(GtkContainerClass *cclass, guint property_id, GParamSpec *pspec)
void _gtk_container_queue_resize(GtkContainer *container)
void gtk_container_child_get_valist(GtkContainer *container, GtkWidget *child, const gchar *first_property_name, va_list var_args)
void gtk_container_resize_children(GtkContainer *container)
void _gtk_container_clear_resize_widgets(GtkContainer *container)
void gtk_container_foreach(GtkContainer *container, GtkCallback callback, gpointer callback_data)
GtkAdjustment * gtk_container_get_focus_vadjustment(GtkContainer *container)
void gtk_container_set_focus_vadjustment(GtkContainer *container, GtkAdjustment *adjustment)
void gtk_container_unset_focus_chain(GtkContainer *container)
void gtk_container_child_get_property(GtkContainer *container, GtkWidget *child, const gchar *property_name, GValue *value)
GType gtk_container_child_type(GtkContainer *container)
void gtk_container_set_focus_hadjustment(GtkContainer *container, GtkAdjustment *adjustment)
void _gtk_container_dequeue_resize_handler(GtkContainer *container)
void gtk_container_set_border_width(GtkContainer *container, guint border_width)
void gtk_container_propagate_expose(GtkContainer *container, GtkWidget *child, GdkEventExpose *event)
GParamSpec ** gtk_container_class_list_child_properties(GObjectClass *cclass, guint *n_properties)
gchar * _gtk_container_child_composite_name(GtkContainer *container, GtkWidget *child)
GtkWidget * gtk_container_get_focus_child(GtkContainer *container)
GList * gtk_container_get_children(GtkContainer *container)
void gtk_container_child_set_property(GtkContainer *container, GtkWidget *child, const gchar *property_name, const GValue *value)
void gtk_container_remove(GtkContainer *container, GtkWidget *widget)
void gtk_container_foreach_full(GtkContainer *container, GtkCallback callback, GtkCallbackMarshal marshal, gpointer callback_data, GDestroyNotify notify)
void gtk_container_child_set_valist(GtkContainer *container, GtkWidget *child, const gchar *first_property_name, va_list var_args)
void gtk_container_add(GtkContainer *container, GtkWidget *widget)
GtkResizeMode gtk_container_get_resize_mode(GtkContainer *container)
void gtk_container_set_reallocate_redraws(GtkContainer *container, gboolean needs_redraws)
void gtk_container_set_resize_mode(GtkContainer *container, GtkResizeMode resize_mode)
void(* GtkCallbackMarshal)(GtkObject *object, gpointer data, guint n_args, GtkArg *args)
void(* forall)(GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data)
void(* get_child_property)(GtkContainer *container, GtkWidget *child, guint property_id, GValue *value, GParamSpec *pspec)
void(* _gtk_reserved2)(void)
void(* _gtk_reserved4)(void)
void(* _gtk_reserved1)(void)
GtkWidgetClass parent_class
void(* remove)(GtkContainer *container, GtkWidget *widget)
void(* add)(GtkContainer *container, GtkWidget *widget)
void(* _gtk_reserved3)(void)
void(* check_resize)(GtkContainer *container)
void(* set_focus_child)(GtkContainer *container, GtkWidget *widget)
GType(* child_type)(GtkContainer *container)
void(* set_child_property)(GtkContainer *container, GtkWidget *child, guint property_id, const GValue *value, GParamSpec *pspec)
GtkWidget * GSEAL(focus_child)