XGP::AutoContainer Class Reference

Class to show child widgets, arranged horizontally (all widgets in a single line have the same height; if the width of all children exceeds the width of the widget itself, the line (and likely the following ones) is/are re-aligned. More...

List of all members.

Public Member Functions

 AutoContainer ()
 AutoContainer (Gtk::Adjustment &hadjustment, Gtk::Adjustment &vadjustment)
virtual ~AutoContainer ()
void insert (Gtk::Widget &widget, unsigned int pos)
virtual void add (Gtk::Widget &widget)
void remove (Gtk::Widget &widget)

Protected Member Functions

void on_size_allocate (Gtk::Allocation &size)
void line_size_allocate (Gtk::Allocation &size, Gtk::HBox *line)

Protected Attributes

Gtk::VBox view


Detailed Description

Class to show child widgets, arranged horizontally (all widgets in a single line have the same height; if the width of all children exceeds the width of the widget itself, the line (and likely the following ones) is/are re-aligned.

The children are also rearranged, when the widget is resized (similar to the folders displayed by nautilus, konqueror or explorer, ...)


Constructor & Destructor Documentation

XGP::AutoContainer::AutoContainer (  ) 

Default constructor.

XGP::AutoContainer::AutoContainer ( Gtk::Adjustment &  hadjustment,
Gtk::Adjustment &  vadjustment 
)

Constructor; with two adjustment bars for the scrolled window.

Parameters:
hadjustment,: Horizontal adjustment bar
vadjustment,: Vertical adjustment bar

XGP::AutoContainer::~AutoContainer (  )  [virtual]

Destructor.


Member Function Documentation

void XGP::AutoContainer::add ( Gtk::Widget &  child  )  [virtual]

Adding a child the the container.

Parameters:
child Child widget to add

void XGP::AutoContainer::insert ( Gtk::Widget &  widget,
unsigned int  pos 
)

Inserts a widget to a given position.

Parameters:
widget Widget to insert
pos Position where to insert the widget

void XGP::AutoContainer::line_size_allocate ( Gtk::Allocation &  size,
Gtk::HBox *  line 
) [protected]

Resize-request: Resize a line.

Parameters:
size New size of the container
line Line to resize

void XGP::AutoContainer::on_size_allocate ( Gtk::Allocation &  size  )  [protected]

Resize-request: Re-arrangethe children.

Parameters:
size New size of the container

void XGP::AutoContainer::remove ( Gtk::Widget &  widget  ) 

Removes the passed widget from the container.

Parameters:
widget Widget to remove


Member Data Documentation

Gtk::VBox XGP::AutoContainer::view [protected]

The vertical box used to display the other widgets.


The documentation for this class was generated from the following files:

XGP Version 0.9.31 - Generated on Wed Nov 18 11:25:29 2009 by doxygen 1.5.8