Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4680 | right-hear | 1 | #ifndef __MGTK_TEXT_H |
2 | #define __MGTK_TEXT_H |
||
3 | |||
4 | #include |
||
5 | |||
6 | #define BIG_FONT_XSZ 7 |
||
7 | #define BIG_FONT_YSZ 9 |
||
8 | #define SMALL_FONT_XSZ 5 |
||
9 | #define SMALL_FONT_YSZ 7 |
||
10 | |||
11 | class GStaticText: public GWidget |
||
12 | { |
||
13 | public: |
||
14 | GStaticText(GRect *,char *,unsigned long); |
||
15 | virtual ~GStaticText(); |
||
16 | virtual void DrawWidget(); |
||
17 | private: |
||
18 | unsigned long color; |
||
19 | char * text; |
||
20 | int tlen; |
||
21 | }; |
||
22 | |||
23 | class GInputLine: public GWidget |
||
24 | { |
||
25 | public: |
||
26 | GInputLine(GRect *,char *); |
||
27 | virtual ~GInputLine(); |
||
28 | virtual void DrawWidget(); |
||
29 | virtual void HandleEvent(GEvent * ev); |
||
30 | virtual void Idle(); |
||
31 | char * GetData(); |
||
32 | private: |
||
33 | int cur_pos,max_len; |
||
34 | char * text_buffer; |
||
35 | bool vis; |
||
36 | int blink_cnt; |
||
37 | }; |
||
38 | |||
39 | class GLine: public GWidget |
||
40 | { |
||
41 | public: |
||
42 | GLine(GRect *,int is_vertical); |
||
43 | virtual ~GLine(); |
||
44 | virtual void DrawWidget(); |
||
45 | private: |
||
46 | int vert; |
||
47 | }; |
||
48 | |||
49 | #endif |