]> git.vomp.tv Git - vompclient.git/blob - wtextbox.h
Connection failure detection
[vompclient.git] / wtextbox.h
1 /*\r
2     Copyright 2005 Brian Walton\r
3 \r
4     This file is part of VOMP.\r
5 \r
6     VOMP is free software; you can redistribute it and/or modify\r
7     it under the terms of the GNU General Public License as published by\r
8     the Free Software Foundation; either version 2 of the License, or\r
9     (at your option) any later version.\r
10 \r
11     VOMP is distributed in the hope that it will be useful,\r
12     but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14     GNU General Public License for more details.\r
15 \r
16     You should have received a copy of the GNU General Public License\r
17     along with VOMP; if not, write to the Free Software\r
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
19 */\r
20 \r
21 #ifndef WTEXTBOX_H\r
22 #define WTEXTBOX_H\r
23 \r
24 #include <stdio.h>\r
25 #include <string.h>\r
26 \r
27 #include "defines.h"\r
28 #include "widget.h"\r
29 #include "colour.h"\r
30 \r
31 class WTextbox : public Widget\r
32 {\r
33   public:\r
34     WTextbox();\r
35     ~WTextbox();\r
36     void setText(char* text);\r
37     void draw();\r
38     void setBackgroundColour(Colour bcolour);\r
39     void setForegroundColour(Colour fcolour);\r
40     void setTextPos(int x, int y); // optional\r
41 \r
42   private:\r
43 \r
44     char* text;\r
45     Colour foreColour;\r
46     Colour backColour;\r
47     int textX;\r
48     int textY;\r
49 };\r
50 \r
51 #endif\r