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 |
The children are also rearranged, when the widget is resized (similar to the folders displayed by nautilus, konqueror or explorer, ...)
XGP::AutoContainer::AutoContainer | ( | ) |
Default constructor.
XGP::AutoContainer::AutoContainer | ( | Gtk::Adjustment & | hadjustment, | |
Gtk::Adjustment & | vadjustment | |||
) |
Constructor; with two adjustment bars for the scrolled window.
hadjustment,: | Horizontal adjustment bar | |
vadjustment,: | Vertical adjustment bar |
XGP::AutoContainer::~AutoContainer | ( | ) | [virtual] |
Destructor.
void XGP::AutoContainer::add | ( | Gtk::Widget & | child | ) | [virtual] |
Adding a child the the container.
child | Child widget to add |
void XGP::AutoContainer::insert | ( | Gtk::Widget & | widget, | |
unsigned int | pos | |||
) |
Inserts a widget to a given position.
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.
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.
size | New size of the container |
void XGP::AutoContainer::remove | ( | Gtk::Widget & | widget | ) |
Removes the passed widget from the container.
widget | Widget to remove |
Gtk::VBox XGP::AutoContainer::view [protected] |
The vertical box used to display the other widgets.