]> git.tdb.fi Git - libs/gltk.git/blob - examples/widgetdemo/widgetdemo.h
Add another example application to demonstrate various widgets
[libs/gltk.git] / examples / widgetdemo / widgetdemo.h
1 #ifndef WIDGETDEMO_H_
2 #define WIDGETDEMO_H_
3
4 #include <msp/core/application.h>
5 #include <msp/gltk/resources.h>
6 #include <msp/gltk/root.h>
7 #include <msp/graphics/simplewindow.h>
8 #include "demoselector.h"
9
10 class WidgetDemo: public Msp::RegisteredApplication<WidgetDemo>
11 {
12 private:
13         Msp::Graphics::SimpleGLWindow window;
14         Msp::GLtk::Resources resources;
15         Msp::GLtk::Root root;
16         DemoSelector selector;
17
18 public:
19         WidgetDemo(int, char **);
20
21         virtual int main();
22 private:
23         virtual void tick();
24
25         void add_demo(const std::string &, Msp::GLtk::Panel *);
26 };
27
28 #endif