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 #ifndef NEDIT_CALLTIPS_H_INCLUDED
28 #define NEDIT_CALLTIPS_H_INCLUDED
29
30 #include "nedit.h"
31 #include "textDisp.h"
32
33 #define NEDIT_DEFAULT_CALLTIP_FG "black"
34 #define NEDIT_DEFAULT_CALLTIP_BG "LemonChiffon1"
35
36
37 enum TipHAlignMode {
TIP_LEFT,
TIP_CENTER,
TIP_RIGHT};
38 enum TipVAlignMode {
TIP_ABOVE,
TIP_BELOW};
39 enum TipAlignStrict {
TIP_SLOPPY,
TIP_STRICT};
40
41 int ShowCalltip(WindowInfo *window,
char *text, Boolean anchored,
42 int pos,
int hAlign,
int vAlign,
int alignMode);
43 void KillCalltip(WindowInfo *window,
int calltipID);
44 void TextDKillCalltip(textDisp *textD,
int calltipID);
45 int GetCalltipID(WindowInfo *window,
int calltipID);
46 void TextDRedrawCalltip(textDisp *textD,
int calltipID);
47
48 #endif
49