gltk 0.3
a C++ widget library built on GLUT
Public Member Functions | Protected Attributes
gltk::Box Class Reference

A Container that lines up its children. More...

#include <box.hh>

Inheritance diagram for gltk::Box:
gltk::Container gltk::Widget gltk::FileBrowser gltk::HBox gltk::VBox

List of all members.

Public Member Functions

 Box (Orientation orientabtion=ORIENTATION_HORIZONTAL, int spacing=0)
 initialize the Box for given orientation and spacing
void pack_start (Widget *child)
 add a child Widget to the left or top end of the lineup

Protected Attributes

int spacing
 natural spacing between child Widgets

Detailed Description

A Container that lines up its children.

This is a linear layout of Widgets. The Box model decomposes a Widget layout into a hierachy of horizontal and vertical lineups.

Examples:

entry.cc, and spinb.cc.


Constructor & Destructor Documentation

Box::Box ( Orientation  orientabtion = ORIENTATION_HORIZONTAL,
int  spacing = 0 
)

initialize the Box for given orientation and spacing

Parameters:
orientabtionset orientation
spacingset spacing between widgets
 All Classes Namespaces Files Functions Variables Enumerations Enumerator