Class Index Cross Index Namespace Index

Class Gtk::Container


Contained in: Gtk
Derived from: 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

#include <gtk--/container.h>


public function member index:

void add(Widget& p0);
emitable signal void check_resize();
GtkType child_type();
emitable signal gint focus(GtkDirectionType);
void foreach(const ForeachCallback&);
void foreach_(GtkCallback callback, gpointer data);
void foreach_full_(GtkCallback callback, GtkCallbackMarshal marshal, gpointer data, GtkDestroyNotify notify);
GtkContainer* gtkobj();
const GtkContainer* gtkobj() const;
static bool isA(Object* object);
void register_toplevel();
void remove(Widget& p0);
void resize_children();
void set_border_width(guint width);
void set_focus_child(Widget* p0);
void set_focus_child(Widget& p0);
void set_focus_hadjustment(Adjustment& adjustment);
void set_focus_vadjustment(Adjustment& adjustment);
void set_resize_mode(GtkResizeMode resize_mode);
void unregister_toplevel();
virtual ~Container();
 

protected function member index:

Container();
virtual void add_impl(Widget& p0);
virtual void check_resize_impl();
virtual GtkType child_type_impl();
virtual gint focus_impl(GtkDirectionType p0);
virtual void remove_impl(Widget& p0);
virtual void set_focus_child_impl(Widget* p0);
 

private function member index:

void add(Widget*);
 

Description:



Function Member Descriptions:

Gtk::Container::add - Add a single item to container at unspecified location.

void add(Widget& p0);
virtual void add_impl(Widget& p0);
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.



Gtk::Container::check_resize - Request contained widgets check their size.

emitable signal void check_resize();
virtual void check_resize_impl();

Gtk::Container::foreach_ - (internal) Operate on contained items (see foreach).

void foreach_(GtkCallback callback, gpointer data);

Gtk::Container::foreach_full_ - (internal) Operate on contained items (see foreach).

void foreach_full_(GtkCallback callback, GtkCallbackMarshal marshal, gpointer data, GtkDestroyNotify notify);

Gtk::Container::gtkobj - Returns the underlaying gtk+ object.

GtkContainer* gtkobj();

Gtk::Container::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::Container::remove - Remove an item from container.

void remove(Widget& p0);
virtual void remove_impl(Widget& p0);
Removes an item if found in the container.


Gtk::Container::set_focus_child - Sets the focus on a child.

void set_focus_child(Widget* p0);
virtual void set_focus_child_impl(Widget* p0);

Gtk::Container::set_focus_child - Sets the focus on a child.

void set_focus_child(Widget& p0);
virtual void set_focus_child_impl(Widget* p0);

Gtk::Container::set_resize_mode - Set the resizing policy of the container.

void set_resize_mode(GtkResizeMode resize_mode);