gltk 0.3
a C++ widget library built on GLUT
slider.cc
slider.png

A simple use of the Slider widget.

#include <gltk.hh>
class MyWindow :
        public gltk::Window
{
        gltk::Adjustment a;
        gltk::Slider s;
public:
        MyWindow() :
                a(0.5, 0.0, 1.0, 0.01, 0.05, 0.0),
                s(& a)
        {
                add(& s);
                s.show();
        }
};

int main(int argc, char *argv[])
{
        gltk::Main kit(argc, argv);
        MyWindow win;
        gltk::Main::run(win);
        return 0;
}
 All Classes Namespaces Files Functions Variables Enumerations Enumerator