openblt

a hobby OS from the late 90s
git clone http://frotz.net/git/openblt.git
Log | Files | Refs | LICENSE

Button.h (331B)


      1 #ifndef _BUTTON_H
      2 #define _BUTTON_H
      3 
      4 #include "Canvas.h"
      5 
      6 class Button : public Canvas {
      7 public:
      8 	Button(const char *text);
      9 	virtual ~Button();
     10 	virtual void Invoke();
     11 
     12 private:
     13 	virtual void Repaint(long, long, long, long);
     14 	virtual void EventReceived(const Event*);
     15 
     16 	char *fText;
     17 	bool fMouseDown;
     18 	bool fOverButton;
     19 };
     20 
     21 #endif