summaryrefslogtreecommitdiff
path: root/plugingui/led.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:08:12 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:08:12 +0100
commitaf9c9091ed69394171485aa4c4814504f86f2004 (patch)
tree070b911dc8faed486c8e8829f0f41aec7d5b4350 /plugingui/led.h
parent5e4cb10f72ef69d73fbd2c1bc42465c9111a4c41 (diff)
Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending...
Diffstat (limited to 'plugingui/led.h')
-rw-r--r--plugingui/led.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/plugingui/led.h b/plugingui/led.h
index 54c4974..7bbd59a 100644
--- a/plugingui/led.h
+++ b/plugingui/led.h
@@ -29,18 +29,28 @@
#include "widget.h"
+namespace GUI {
+
class LED : public Widget {
public:
- LED(GlobalContext *gctx, Widget *parent);
+ typedef enum {
+ red,
+ green,
+ blue,
+ off
+ } state_t;
+
+ LED(Widget *parent);
- void setState(bool state);
+ void setState(state_t state);
-protected:
- void repaint(RepaintEvent *e);
+ //protected:
+ void repaintEvent(RepaintEvent *e);
private:
- bool state;
+ state_t state;
};
+};
#endif/*__DRUMGIZMO_LED_H__*/