Description:
Gtk_Box
#include <gtk--/box.h>
Base classes: Gtk_Container
Derived by: Gtk_ButtonBox Gtk_HBox Gtk_VBox
{\class Gtk_Box} is a base class for horizontal or vertical boxes, which layout widgets inserted to them next to each other.
Gtk_Box is an abstract class and it defers choice of which
way the widgets are packed to the screen to the derived classes.
Gtk_Box provides common interface for inserting widgets
to a box indepenently of how it is shown in the screen.
The most common use of Gtk_Box is like this:
class mywindow : public Gtk_Window {
Gtk_Label label1,label2;
Gtk_VBox vbox;
public:
mywindow();
};
mywindow::mywindow()
{
add(vbox);
vbox.pack_end(label1, true, true, 0);
vbox.pack_end(label2, true, true, 0);
}
|