gltk 0.3
a C++ widget library built on GLUT
Classes | Enumerations | Functions
gltk Namespace Reference

The namespace of the GL Toolkit widget library. More...

Classes

class  Adjustment
 value with a defined range and two sizes of increments More...
class  Bin
 Bin is a Container with a single child. More...
class  Box
 A Container that lines up its children. More...
class  VBox
 vertical Box More...
class  HBox
 horizontal Box More...
class  Button
 Button is a PushBox that holds a child widget. More...
class  CheckBox
 a checkbox that can be toggled on and off More...
class  CheckButton
 a CheckBox with a Label More...
class  ComboBoxText
 A Widget used to choose from a list of text items. More...
class  Container
 A Container holds child widget(s). More...
class  Entry
 Single line text input. More...
class  FileBrowser
 Show files in current directory allowing navigation and selection. More...
class  Focusable
 a Widget that can be focused on. More...
class  Frame
 Frame is a Bin with an outline and a text label. More...
class  glArea
 A Widget with its own GL context. More...
class  glutWindow
 Abstraction of underlying system window. More...
class  SignalIdle
 calling a slot when system is free SignalIdle provides a system signal that is emitted when the system is idle. More...
class  Label
 a one-line text Widget More...
class  LabelBin
 LabelBin is a Bin with default Label child. More...
struct  ViewableList
 A list of viewable items. More...
struct  RenderItemStr
 render an item as a string More...
class  ListView
 Widget showing and allowing selection from a list of items. More...
class  Main
 the one and only Main object of the library. More...
class  Popup
 A Widget that popups a menu on click. More...
class  PushBox
 a rectangular box that can be clicked More...
class  Scale
 a slider to select and a label to display a numeric value. More...
class  VScale
 vertical Scale More...
class  HScale
 horizontal Scale More...
class  Scrollbar
 widget for manipulating an Adjustment More...
class  Shape
 Widget of simple Shape. More...
class  Slider
 Selecting a value by moving a slider. More...
class  SpinButton
 a combo of an Entry and two Buttons. More...
class  TextDraw
 a single line text drawing object More...
class  SignalTimeout
 A timer signal. More...
class  Widget
 A visual component. More...
class  Window
 a toplevel window. More...

Enumerations

enum  Align { ALIGN_FILL, ALIGN_START, ALIGN_END, ALIGN_CENTER }
 alignment of elements More...
enum  Orientation { ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL }
 orientation of visual element More...
enum  PositionType { POS_LEFT, POS_RIGHT, POS_TOP, POS_BOTTOM }
 positioning of element More...

Functions

template<typename T >
T * manage (T *obj)
 Mark that a Widget is to be managed by its parent Container widget.

Detailed Description

The namespace of the GL Toolkit widget library.

All API names are encapsulated in the gltk namespace.


Enumeration Type Documentation

alignment of elements

Enumerator:
ALIGN_FILL 

some other way of alignment

ALIGN_START 

aligned at the start

ALIGN_END 

aligned at the end

ALIGN_CENTER 

aligned at the center

orientation of visual element

Enumerator:
ORIENTATION_HORIZONTAL 

a horizontal formation

ORIENTATION_VERTICAL 

a vertical formation

positioning of element

Enumerator:
POS_LEFT 

left

POS_RIGHT 

right

POS_TOP 

top

POS_BOTTOM 

bottom


Function Documentation

template<typename T >
T* gltk::manage ( T *  obj)

Mark that a Widget is to be managed by its parent Container widget.

As GLUT does not do clean up on exit, this is mostly for compatibility with gtkmm.

Examples:
scalers.cc.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator