Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
tipwin.hh
Go to the documentation of this file.
1#ifndef __TIPWIN_HH__
2#define __TIPWIN_HH__
3
4#include <FL/Fl_Menu_Window.H>
5#include <FL/Fl_Button.H>
6#include <FL/Fl_Input.H>
7
8
12class TipWin : public Fl_Menu_Window {
13 char tip[256];
16public:
17 TipWin();
18 void draw();
19 void value(const char *s);
20 void do_show(void *wid);
21 void do_hide();
22 void recent_tooltip(int val);
23
24 void cancel(void *wid) {
25 if (wid == cur_widget) { cur_widget = NULL; do_hide(); }
26 }
27};
28
29extern TipWin *my_tipwin(void);
30
31
35class TipWinButton : public Fl_Button {
36 char *mytooltip;
38 public:
39 TipWinButton(int x, int y, int w, int h, const char *l = 0);
41 virtual int handle(int e);
42
43 void set_tooltip(const char *s);
44};
45
49class CustButton : public TipWinButton {
51public:
52 CustButton(int x, int y, int w, int h, const char *l=0);
53 virtual int handle(int e);
54 void hl_color(Fl_Color col);
55};
56
57
61class TipWinInput : public Fl_Input {
62 char *mytooltip;
64public:
65 TipWinInput (int x, int y, int w, int h, const char* l=0);
66 ~TipWinInput(void);
67 virtual int handle(int e);
68
69 void set_tooltip(const char *s);
70};
71
72
73#endif // __TIPWIN_HH__
74
A button that highlights on mouse over.
Definition tipwin.hh:49
Fl_Color light_color
Definition tipwin.hh:50
virtual int handle(int e)
Definition tipwin.cc:181
Fl_Color norm_color
Definition tipwin.hh:50
void hl_color(Fl_Color col)
Definition tipwin.cc:198
A Button sharing a custom tooltip window.
Definition tipwin.hh:35
virtual int handle(int e)
Definition tipwin.cc:145
char * mytooltip
Definition tipwin.hh:36
void set_tooltip(const char *s)
Definition tipwin.cc:162
TipWin * tipwin
Definition tipwin.hh:37
An Input with custom tooltip window.
Definition tipwin.hh:61
TipWin * tipwin
Definition tipwin.hh:63
~TipWinInput(void)
Definition tipwin.cc:216
char * mytooltip
Definition tipwin.hh:62
void set_tooltip(const char *s)
Definition tipwin.cc:240
virtual int handle(int e)
Definition tipwin.cc:222
Custom tooltip window.
Definition tipwin.hh:12
void do_show(void *wid)
Definition tipwin.cc:73
void do_hide()
Definition tipwin.cc:80
void value(const char *s)
Definition tipwin.cc:61
void recent_tooltip(int val)
Definition tipwin.cc:89
void draw()
Definition tipwin.cc:51
int recent
Definition tipwin.hh:14
void * cur_widget
Definition tipwin.hh:15
int bgcolor
Definition tipwin.hh:14
void cancel(void *wid)
Definition tipwin.hh:24
char tip[256]
Definition tipwin.hh:13
TipWin()
Custom tooltip window.
Definition tipwin.cc:41
TipWin * my_tipwin(void)
Definition tipwin.cc:95