gltk 0.3
a C++ widget library built on GLUT
Public Member Functions | Static Public Member Functions
gltk::Main Class Reference

the one and only Main object of the library. More...

#include <main.hh>

List of all members.

Public Member Functions

 Main (int &argc, char **(&argv))
 initialize the program with command line parameters

Static Public Member Functions

static void run (Window &window)
 start the GLUT event loop. As per GLUT, this function never returns.

Detailed Description

the one and only Main object of the library.

Its creation initializes the GLUT library. The event loop of GLUT is enterred when the Main object runs. There can only be one instance of the Main class.

Examples:

cbox.cc, entry.cc, fbtest.cc, hello.cc, scalers.cc, slider.cc, and spinb.cc.

 All Classes Namespaces Files Functions Variables Enumerations Enumerator