index
gtk-- homepage



Description:
Gtk_Container

#include <gtk--/container.h>
Base classes: Gtk_Widget
Derived by: Gtk_Bin Gtk_Box Gtk_CList Gtk_Fixed Gtk_Layout Gtk_List Gtk_MenuShell Gtk_Notebook Gtk_Packer Gtk_Paned Gtk_Socket Gtk_Table Gtk_Toolbar Gtk_Tree

Abstract container class
This is the abstract container from which all gtk+ widgets which hold other items derive from. It mainly houses virtual functions used for inserting and removing children. Containers in gtk+ may hold one item or many items depending on the implementation.

This interface is used for all single item holding containers. Multi-item containers provide their own unique interface as their items are generally more complex. The methods of the derived classes should be prefered over these.



Properties:


Public member index:


static GtkType get_type();
GtkContainer *gtkobj();
const GtkContainer *gtkobj()const;
static bool isA(Gtk_Object *checkcast);
virtual ~Gtk_Container();
void set_border_width(guint width);
GTKMM_CHECK(g_return_if_fail (p1 !=0););
Add a single item to container at unspecified location.Remove an item from container

GTKMM_CHECK(g_return_if_fail (p1 !=0););
Add a single item to container at unspecified location.Remove an item from container

void set_resize_mode(GtkResizeMode resize_mode);
Set the resizing policy of the container

emitable signal void check_resize();
Request contained widgets check their size

emitable signal gint focus(GtkDirectionType);
void set_focus_child(Gtk_Widget *p0);
Sets the focus on a child

void set_focus_child(Gtk_Widget &p0);
Sets the focus on a child

void set_focus_vadjustment(Gtk_Adjustment &adjustment);
void set_focus_hadjustment(Gtk_Adjustment &adjustment);
void register_toplevel();
void unregister_toplevel();
void resize_children();
GtkType child_type();
Protected member index:


void initialize_class();
void *get_parent_class();
static void init_parent_class();
explicit Gtk_Container(GtkContainer *castitem);
void foreach_(GtkCallback callback,gpointer data);
Operate on contained items

void foreach_full_(GtkCallback callback,GtkCallbackMarshal marshal,gpointer data,GtkDestroyNotify notify);
Operate on contained items (see foreach_())

Gtk_Container();
Add a child with arguments

virtual void add_impl(Gtk_Widget &p0);
virtual void remove_impl(Gtk_Widget &p0);
virtual void check_resize_impl();
virtual gint focus_impl(GtkDirectionType p0);
virtual void set_focus_child_impl(Gtk_Widget *p0);
virtual GtkType child_type_impl();
Private member index:


Gtk_Container(const Gtk_Container &);
Gtk_Container &operator =(const Gtk_Container &);
void add(Gtk_Widget *);

Public member details:


GTKMM_CHECK
Gtk_Container::GTKMM_CHECK(g_return_if_fail (p1 !=0););

Add a single item to container at unspecified location.Remove an item from container
Adds an item to the list or item slot for the container. The meaning of this operation varies from one container to the next.

For single item containers, this means replace the current contents with the specified widget.

For multi item containers, this inserts without a location (should be avoided)

Ownership follows gtk+ rules (reference counting). Reference insertions and insertion of unmanaged pointers will not confer ownership. A managed pointer will be referenced and thus unless referenced externally will be deleted with the container. Removes an item if found in the container.


GTKMM_CHECK
Gtk_Container::GTKMM_CHECK(g_return_if_fail (p1 !=0););

Add a single item to container at unspecified location.Remove an item from container
Adds an item to the list or item slot for the container. The meaning of this operation varies from one container to the next.

For single item containers, this means replace the current contents with the specified widget.

For multi item containers, this inserts without a location (should be avoided)

Ownership follows gtk+ rules (reference counting). Reference insertions and insertion of unmanaged pointers will not confer ownership. A managed pointer will be referenced and thus unless referenced externally will be deleted with the container. Removes an item if found in the container.


Protected member details:



foreach_
void Gtk_Container::foreach_(GtkCallback callback,gpointer data);

Operate on contained items
This is largely an internal used mainly for things like creating duplicates of internal lists and other such operations. The result is lossy as it only gets the the main child and not its external pieces.

For example notebook pages contain a page, a label, and a menu item. But this only operates on the pages.


Gtk_Container
Gtk_Container::Gtk_Container();

Add a child with arguments
An inherited interface from gtk+. (needs work)


Private member details:




Examples:





(pages generated by PERCEPS -script.)