[go: up one dir, main page]

Menu

[d69ae3]: / src / ytooltip.h  Maximize  Restore  History

Download this file

31 lines (23 with data), 626 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
29
30
#ifndef __YTOOLTIP_H
#define __YTOOLTIP_H
#ifdef CONFIG_TOOLTIP
#include "ywindow.h"
#include "ytimer.h"
class YToolTip: public YWindow, public YTimerListener {
public:
YToolTip(YWindow *aParent = 0);
virtual ~YToolTip();
virtual void paint(Graphics &g, const YRect &r);
void setText(const char *tip);
virtual bool handleTimer(YTimer *t);
void locate(YWindow *w, const XCrossingEvent &crossing);
private:
void display();
char *fText;
static YColor *toolTipBg;
static YColor *toolTipFg;
static ref<YFont> toolTipFont;
static YTimer *fToolTipVisibleTimer;
};
#endif
#endif