[go: up one dir, main page]

Menu

[4f9184]: / src / aapm.h  Maximize  Restore  History

Download this file

30 lines (20 with data), 566 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
26
27
28
#include "ywindow.h"
#include "ytimer.h"
#ifdef CONFIG_APPLET_APM
class YApm: public YWindow, public YTimerListener {
public:
YApm(YWindow *aParent = 0);
virtual ~YApm();
void autoSize();
virtual void paint(Graphics &g, int x, int y, unsigned int width, unsigned int height);
void updateToolTip();
virtual bool handleTimer(YTimer *t);
private:
YTimer *apmTimer;
YPixmap *getPixmap(char ch);
int calcWidth(const char *s, int count);
static YColor *apmBg;
static YColor *apmFg;
static YFont *apmFont;
};
#endif