2018-10-28 13:01:25 +00:00
|
|
|
|
|
|
|
#ifndef _EXAMPLE_H_
|
|
|
|
#define _EXAMPLE_H_
|
|
|
|
|
2018-11-05 09:53:59 +00:00
|
|
|
#include "gfx/canvas.h"
|
2018-11-05 20:09:01 +00:00
|
|
|
#include "node.h"
|
2018-10-28 13:01:25 +00:00
|
|
|
|
2018-11-05 20:09:01 +00:00
|
|
|
class menu : public node {
|
|
|
|
public:
|
|
|
|
template<typename ... Args>
|
|
|
|
menu(Args ... ns) : node(ns...) {
|
|
|
|
}
|
2018-11-05 09:53:59 +00:00
|
|
|
|
2018-11-05 20:09:01 +00:00
|
|
|
void render(canvas &c);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class fooValue : public value {
|
|
|
|
public:
|
|
|
|
fooValue(const char* str, int val) : value(str, val, 64, 96) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void render(canvas &c);
|
|
|
|
};
|
|
|
|
|
|
|
|
class blubValue : public value{
|
|
|
|
public:
|
|
|
|
template<typename ... Args>
|
|
|
|
blubValue(Args ... ns) : value(ns..., 64, 96) {
|
|
|
|
}
|
|
|
|
void render(canvas& c);
|
|
|
|
};
|
2018-10-28 13:01:25 +00:00
|
|
|
|
|
|
|
#endif
|