[go: up one dir, main page]

Menu

[2e2bd2]: / src / ylabel.h  Maximize  Restore  History

Download this file

26 lines (18 with data), 507 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __YLABEL_H
#define __YLABEL_H
#include "ywindow.h"
class YLabel: public YWindow {
public:
YLabel(const char *label = 0, YWindow *parent = 0);
virtual ~YLabel();
virtual void paint(Graphics &g, int x, int y, unsigned int width, unsigned int height);
void setText(const char *label);
const char *getText() const { return fLabel; }
private:
char *fLabel;
void autoSize();
static YColor *labelFg;
static YColor *labelBg;
static YFont *labelFont;
};
#endif