]> Shamusworld >> Repos - apple2/blob - src/gui/text.h
More GUI refinements, added "text" control
[apple2] / src / gui / text.h
1 //
2 // Static text class
3 //
4 // by James L. Hammons
5 //
6
7 #ifndef __TEXT_H__
8 #define __TEXT_H__
9
10 #include <string>
11 #include "element.h"
12
13 class Text: public Element
14 {
15         public:
16                 Text(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0, Element * parent = NULL);
17                 Text(uint32 x, uint32 y, std::string s, uint32 fg = 0xFF8484FF, uint32 bg = 0xFF84FF4D, Element * parent = NULL);
18                 virtual void HandleKey(SDLKey key) {}
19                 virtual void HandleMouseMove(uint32 x, uint32 y) {}
20                 virtual void HandleMouseButton(uint32 x, uint32 y, bool mouseDown) {}
21                 virtual void Draw(void);
22                 virtual void Notify(Element *) {}
23
24         protected:
25 //              uint32 fgColor, bgColor;
26                 std::string text;
27 };
28
29 #endif  // __TEXT_H__