42 lines
703 B
C
42 lines
703 B
C
#ifndef PUI_H
|
|
#define PUI_H
|
|
|
|
#include "textures.h"
|
|
#include "widget.h"
|
|
#include "container.h"
|
|
#include "knob.h"
|
|
#include "slider.h"
|
|
|
|
struct PUi : PTextures {
|
|
PuglView *view;
|
|
Container *widget;
|
|
|
|
Widget *active;
|
|
int mx, my, mb, mm;
|
|
float scale;
|
|
|
|
virtual ~PUi();
|
|
|
|
inline void Repaint() { puglPostRedisplay(this->view); }
|
|
|
|
void OnReshape(int w, int h);
|
|
|
|
void OnDisplay();
|
|
|
|
virtual void OnKeyboard(bool press, uint32_t key);
|
|
|
|
virtual void OnSpecial(bool press, PuglKey key);
|
|
|
|
void OnMotion(int x, int y);
|
|
|
|
void OnMouse(int button, bool press, int x, int y);
|
|
|
|
void OnScroll(float dx, float dy);
|
|
|
|
virtual void ParameterChanged(const Widget *widget) = 0;
|
|
|
|
void SetFunc();
|
|
};
|
|
|
|
#endif /* PUI_H */
|