index, gtk-- homepage
class Gtk_Container
#include <gtk--/container.h>
Base classes: Gtk_Widget
Is derived by: Gtk_Bin Gtk_Box Gtk_CList Gtk_Fixed Gtk_List Gtk_MenuShell Gtk_Notebook Gtk_Paned Gtk_ScrolledWindow Gtk_Table Gtk_Toolbar Gtk_Tree
Public member index
- static void cpp_class_init(GtkObject *);
- Gtk_Container(GtkContainer *castitem);
- static bool isGtkContainer(Gtk_Object *checkcast);
- virtual void add_label(const gchar *text);
- void disable_resize();
- void enable_resize();
- void block_resize();
- void unblock_resize();
- void border_width(gint width);
- void register_toplevel();
- void unregister_toplevel();
- static void add_child_arg_type(const string &arg_name, GtkType arg_type, guint arg_flags, guint arg_id);
- static void query_child_args(GtkType class_type, guint32 **arg_flags, guint *nargs);
- void child_getv(Gtk_Widget *child, guint n_args, GtkArg *args);
- void child_getv(Gtk_Widget &child, guint n_args, GtkArg *args);
- void child_setv(Gtk_Widget *child, guint n_args, GtkArg *args);
- void child_setv(Gtk_Widget &child, guint n_args, GtkArg *args);
- void addv(Gtk_Widget *child, guint n_args, GtkArg *args);
- void addv(Gtk_Widget &child, guint n_args, GtkArg *args);
- void foreach_full(GtkCallback callback, GtkCallbackMarshal marshal, gpointer callback_data, GtkDestroyNotify notify);
- void set_focus_vadjustment(Gtk_Adjustment *adjustment);
- void set_focus_hadjustment(Gtk_Adjustment *adjustment);
- void set_focus_vadjustment(const Gtk_Adjustment &adjustment);
- void set_focus_hadjustment(const Gtk_Adjustment &adjustment);
- G_List<GtkWidget*>* children();
- SIGNAL_SHORT_SPEC(void set_focus_child_c(GtkWidget*));
- Signal1<Gtk_Widget*> add;
- SIGNAL_SHORT_SPEC(void set_focus_child_c(GtkWidget*));
- Signal1<Gtk_Widget*> remove;
- Signal_proxyN<gint,widgettype,GtkDirectionType> focus;
- Signal_proxyN<void,widgettype> check_resize;
- Signal_proxyN<GtkType,widgettype> child_type;
- SIGNAL_SHORT_SPEC(void set_focus_child_c(GtkWidget*));
- Signal1<Gtk_Widget*> set_focus_child;
- SIGNAL_SHORT_SPEC(void get_child_arg_c(GtkWidget*,GtkArg*,guint));
- Signal3<Gtk_Widget*, GtkArg*, guint> set_child_arg;
- SIGNAL_SHORT_SPEC(void get_child_arg_c(GtkWidget*,GtkArg*,guint));
- Signal3<Gtk_Widget*, GtkArg*, guint> get_child_arg;
- Signal_proxyN<void,widgettype,GtkCallback,gpointer> foreach;
- Signal_proxyN<gint,widgettype> need_resize;
Protected member index
Private member index
- typedef G_List_Iterator<GtkWidget> iterator;
Public member descriptions
add_label
virtual void Gtk_Container::add_label(const gchar *text);
static Gtk_c_signals_Container *sigs_bk;
foreach_full
void Gtk_Container::foreach_full(GtkCallback callback, GtkCallbackMarshal marshal, gpointer callback_data, GtkDestroyNotify notify);
What to do with those ?
void gtk_container_add_with_args (GtkContainer *container,
GtkWidget *widget,
...);
void gtk_container_addv (GtkContainer *container,
GtkWidget *widget,
guint n_args,
GtkArg *args);
set_focus_vadjustment
void Gtk_Container::set_focus_vadjustment(Gtk_Adjustment *adjustment);
These methods require gtk1.0.1
void set_focus_child(Gtk_Widget *child); // is a signal
set_focus_vadjustment
void Gtk_Container::set_focus_vadjustment(const Gtk_Adjustment &adjustment);
void set_focus_child(const Gtk_Widget &child);
children
G_List<GtkWidget*>* Gtk_Container::children();
THIS METHOD RETURNS AN ALLOCATED OBJECT
add
Signal1<Gtk_Widget*> Gtk_Container::add;
C_PP_CLASS_INIT_HOOK(sigs_bk = s);
Calling add signal can be used to add a widget to the container.
Derived widgets may restrict what kind of widgets can be added
to that container. Existing containers do that already and for example
Gtk_List only accepts Gtk_ListItems.
Ownership of the inserted object will NOT be moved to the container,
so you'll still need
to handle deletion of widgets inserted to the container. This
allows you to add objects in local or class scope to containers.
(TODO: some method to allow moving ownership to container for
automatic deletion of objects dynamically allocated with new)
Protected member descriptions
Private member descriptions
(pages generated by PERCEPS -script.)