logo top
Main Page   Widgets   Namespaces   Book  

Gtk::Container Class Reference
[Widgets]

Abstract container class. More...

Inheritance diagram for Gtk::Container:

Inheritance graph
[legend]
List of all members.

Public Types

typedef SigC::Slot1< void,
Widget& > 
ForeachSlot

Public Member Functions

virtual ~Container ()
GtkContainer* gobj ()
 Provides access to the underlying C GtkObject.

const GtkContainer* gobj () const
 Provides access to the underlying C GtkObject.

void set_border_width (guint border_width)
guint get_border_width () const
virtual void add (Widget& widget)
void remove (Widget& widget)
void set_resize_mode (ResizeMode resize_mode)
ResizeMode get_resize_mode () const
void check_resize ()
 Request that contained widgets check their size.

void foreach (const ForeachSlot& slot)
 Operate on contained items This is largely an internal used mainly for things like creating duplicates of internal lists and other such operations.

Glib::ListHandle<Widget*> get_children ()
 (internal) Operate on contained items (see foreach())

Glib::ListHandle<const Widget*> get_children () const
void propagate_expose (Widget& child, GdkEventExpose* event)
void set_focus_chain (const Glib::ListHandle<Widget*>& focusable_widgets)
bool has_focus_chain () const
Glib::ListHandle<Widget*> get_focus_chain ()
Glib::ListHandle<const Widget*> get_focus_chain () const
void unset_focus_chain ()
void set_reallocate_redraws (bool needs_redraws=true)
void set_focus_child (Widget& widget)
 Sets the focus on a child.

void set_focus_vadjustment (Adjustment& adjustment)
Adjustmentget_focus_vadjustment ()
const Adjustmentget_focus_vadjustment () const
void set_focus_hadjustment (Adjustment& adjustment)
Adjustmentget_focus_hadjustment ()
const Adjustmentget_focus_hadjustment () const
void resize_children ()
GType child_type () const
Glib::SignalProxy1< void,
Widget* > 
signal_add ()
Glib::SignalProxy1< void,
Widget* > 
signal_remove ()
Glib::SignalProxy0<void> signal_check_resize ()
Glib::SignalProxy1< void,
Widget* > 
signal_set_focus_child ()
Glib::PropertyProxy<guint> property_border_width ()
Glib::PropertyProxy<ResizeModeproperty_resize_mode ()
Glib::PropertyProxy_WriteOnly<
Widget* > 
property_child ()
void show_all_children (bool recursive=true)

Protected Member Functions

virtual GtkType child_type_vfunc ()
virtual void forall_vfunc (gboolean include_internals, GtkCallback callback, gpointer callback_data)
virtual char* composite_name_vfunc (GtkWidget* child)
virtual void set_child_property_vfunc (GtkWidget* child, guint property_id, const GValue* value, GParamSpec* pspec)
virtual void get_child_property_vfunc (GtkWidget* child, guint property_id, GValue* value, GParamSpec* pspec)
virtual void on_add (Widget* widget)
virtual void on_remove (Widget* widget)
virtual void on_check_resize ()
virtual void on_set_focus_child (Widget* widget)
 Container ()

Related Functions

(Note that these are not member functions.)

Gtk::Containerwrap (GtkContainer* object, bool take_copy=false)

Detailed Description

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.


Member Typedef Documentation

typedef SigC::Slot1<void, Widget&> Gtk::Container::ForeachSlot
 


Constructor & Destructor Documentation

virtual Gtk::Container::~Container (  )  [virtual]
 

Gtk::Container::Container (  )  [protected]
 


Member Function Documentation

virtual void Gtk::Container::add ( Widget widget  )  [virtual]
 

Reimplemented in Gtk::ScrolledWindow.

void Gtk::Container::check_resize (  ) 
 

Request that contained widgets check their size.

GType Gtk::Container::child_type (  )  const
 

virtual GtkType Gtk::Container::child_type_vfunc (  )  [protected, virtual]
 

virtual char* Gtk::Container::composite_name_vfunc ( GtkWidget*  child  )  [protected, virtual]
 

virtual void Gtk::Container::forall_vfunc ( gboolean  include_internals,
GtkCallback  callback,
gpointer  callback_data
[protected, virtual]
 

void Gtk::Container::foreach ( const ForeachSlot slot  ) 
 

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.

guint Gtk::Container::get_border_width (  )  const
 

virtual void Gtk::Container::get_child_property_vfunc ( GtkWidget*  child,
guint  property_id,
GValue*  value,
GParamSpec*  pspec
[protected, virtual]
 

Glib::ListHandle<const Widget*> Gtk::Container::get_children (  )  const
 

Glib::ListHandle<Widget*> Gtk::Container::get_children (  ) 
 

(internal) Operate on contained items (see foreach())

Glib::ListHandle<const Widget*> Gtk::Container::get_focus_chain (  )  const
 

Glib::ListHandle<Widget*> Gtk::Container::get_focus_chain (  ) 
 

const Adjustment* Gtk::Container::get_focus_hadjustment (  )  const
 

Adjustment* Gtk::Container::get_focus_hadjustment (  ) 
 

const Adjustment* Gtk::Container::get_focus_vadjustment (  )  const
 

Adjustment* Gtk::Container::get_focus_vadjustment (  ) 
 

ResizeMode Gtk::Container::get_resize_mode (  )  const
 

const GtkContainer* Gtk::Container::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Widget.

Reimplemented in Gtk::Alignment, Gtk::AspectFrame, Gtk::Bin, Gtk::Box, Gtk::VBox, Gtk::HBox, Gtk::Button, Gtk::ButtonBox, Gtk::VButtonBox, Gtk::HButtonBox, Gtk::CheckButton, Gtk::CheckMenuItem, Gtk::ColorSelection, Gtk::ColorSelectionDialog, Gtk::ComboDropDownItem, Gtk::ComboDropDown, Gtk::Combo, Gtk::GammaCurve, Gtk::Dialog, Gtk::EventBox, Gtk::FileSelection, Gtk::Fixed, Gtk::FontSelection, Gtk::FontSelectionDialog, Gtk::Frame, Gtk::HandleBox, Gtk::ImageMenuItem, Gtk::InputDialog, Gtk::Item, Gtk::Layout, Gtk::Menu, Gtk::MenuBar, Gtk::MenuItem, Gtk::MenuShell, Gtk::MessageDialog, Gtk::Notebook, Gtk::OptionMenu, Gtk::Paned, Gtk::HPaned, Gtk::VPaned, Gtk::Plug, Gtk::RadioButton, Gtk::RadioMenuItem, Gtk::ScrolledWindow, Gtk::SeparatorMenuItem, Gtk::Socket, Gtk::Statusbar, Gtk::Table, Gtk::TearoffMenuItem, Gtk::TextView, Gtk::ToggleButton, Gtk::Toolbar, Gtk::TreeView, Gtk::Viewport, and Gtk::Window.

GtkContainer* Gtk::Container::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Widget.

Reimplemented in Gtk::Alignment, Gtk::AspectFrame, Gtk::Bin, Gtk::Box, Gtk::VBox, Gtk::HBox, Gtk::Button, Gtk::ButtonBox, Gtk::VButtonBox, Gtk::HButtonBox, Gtk::CheckButton, Gtk::CheckMenuItem, Gtk::ColorSelection, Gtk::ColorSelectionDialog, Gtk::ComboDropDownItem, Gtk::ComboDropDown, Gtk::Combo, Gtk::GammaCurve, Gtk::Dialog, Gtk::EventBox, Gtk::FileSelection, Gtk::Fixed, Gtk::FontSelection, Gtk::FontSelectionDialog, Gtk::Frame, Gtk::HandleBox, Gtk::ImageMenuItem, Gtk::InputDialog, Gtk::Item, Gtk::Layout, Gtk::Menu, Gtk::MenuBar, Gtk::MenuItem, Gtk::MenuShell, Gtk::MessageDialog, Gtk::Notebook, Gtk::OptionMenu, Gtk::Paned, Gtk::HPaned, Gtk::VPaned, Gtk::Plug, Gtk::RadioButton, Gtk::RadioMenuItem, Gtk::ScrolledWindow, Gtk::SeparatorMenuItem, Gtk::Socket, Gtk::Statusbar, Gtk::Table, Gtk::TearoffMenuItem, Gtk::TextView, Gtk::ToggleButton, Gtk::Toolbar, Gtk::TreeView, Gtk::Viewport, and Gtk::Window.

bool Gtk::Container::has_focus_chain (  )  const
 

virtual void Gtk::Container::on_add ( Widget widget  )  [protected, virtual]
 

virtual void Gtk::Container::on_check_resize (  )  [protected, virtual]
 

virtual void Gtk::Container::on_remove ( Widget widget  )  [protected, virtual]
 

virtual void Gtk::Container::on_set_focus_child ( Widget widget  )  [protected, virtual]
 

void Gtk::Container::propagate_expose ( Widget child,
GdkEventExpose*  event
 

Glib::PropertyProxy<guint> Gtk::Container::property_border_width (  ) 
 

Glib::PropertyProxy_WriteOnly<Widget*> Gtk::Container::property_child (  ) 
 

Glib::PropertyProxy<ResizeMode> Gtk::Container::property_resize_mode (  ) 
 

void Gtk::Container::remove ( Widget widget  ) 
 

void Gtk::Container::resize_children (  ) 
 

void Gtk::Container::set_border_width ( guint  border_width  ) 
 

virtual void Gtk::Container::set_child_property_vfunc ( GtkWidget*  child,
guint  property_id,
const GValue*  value,
GParamSpec*  pspec
[protected, virtual]
 

void Gtk::Container::set_focus_chain ( const Glib::ListHandle<Widget*>&  focusable_widgets  ) 
 

void Gtk::Container::set_focus_child ( Widget widget  ) 
 

Sets the focus on a child.

void Gtk::Container::set_focus_hadjustment ( Adjustment adjustment  ) 
 

void Gtk::Container::set_focus_vadjustment ( Adjustment adjustment  ) 
 

void Gtk::Container::set_reallocate_redraws ( bool  needs_redraws = true  ) 
 

void Gtk::Container::set_resize_mode ( ResizeMode  resize_mode  ) 
 

void Gtk::Container::show_all_children ( bool  recursive = true  ) 
 

Glib::SignalProxy1<void,Widget*> Gtk::Container::signal_add (  ) 
 

Prototype:
void add(Widget* widget)

Glib::SignalProxy0<void> Gtk::Container::signal_check_resize (  ) 
 

Prototype:
void check_resize()

Glib::SignalProxy1<void,Widget*> Gtk::Container::signal_remove (  ) 
 

Prototype:
void remove(Widget* widget)

Glib::SignalProxy1<void,Widget*> Gtk::Container::signal_set_focus_child (  ) 
 

Prototype:
void set_focus_child(Widget* widget)

void Gtk::Container::unset_focus_chain (  ) 
 


Friends And Related Function Documentation

Gtk::Container* wrap ( GtkContainer*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm2.2 by Doxygen 1.3.3 © 1997-2001