From af9c9091ed69394171485aa4c4814504f86f2004 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 Jan 2012 20:08:12 +0100 Subject: Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending... --- plugingui/led.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'plugingui/led.h') 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__*/ -- cgit v1.2.3