diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-06 09:30:52 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-06 09:30:52 +0100 |
commit | a0b7282b31ed31051ee98bf16e8704d5599e5461 (patch) | |
tree | 49798ac70adbac0e065781833f045bab8a65bb0b /plugingui/widget.h | |
parent | dff2ff5b636d9d7007bf8589204e6a7138ee4004 (diff) |
Major GUI workover. Hilights: A new filebrowser and new knob widget.
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r-- | plugingui/widget.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/plugingui/widget.h b/plugingui/widget.h index 6f09533..c0d0a73 100644 --- a/plugingui/widget.h +++ b/plugingui/widget.h @@ -27,10 +27,9 @@ #ifndef __DRUMGIZMO_WIDGET_H__ #define __DRUMGIZMO_WIDGET_H__ -#include <vector> - #include "guievent.h" #include "pixelbuffer.h" + #include <vector> namespace GUI { @@ -50,6 +49,8 @@ public: virtual size_t x(); virtual size_t y(); + virtual size_t windowX(); + virtual size_t windowY(); virtual size_t width(); virtual size_t height(); @@ -57,6 +58,7 @@ public: virtual bool catchMouse() { return false; } void addChild(Widget *widget); + void removeChild(Widget *widget); virtual void repaintEvent(RepaintEvent *e) {} virtual void mouseMoveEvent(MouseMoveEvent *e) {} @@ -74,11 +76,18 @@ public: bool hasKeyboardFocus(); + Widget *parent; + + bool visible(); + void setVisible(bool visible); + protected: std::vector<Widget*> children; - Widget *parent; Window *_window; size_t _x, _y, _width, _height; + +private: + bool _visible; }; }; |