]>
Commit | Line | Data |
---|---|---|
9ce192d4 RD |
1 | // Scintilla source code edit control |
2 | // CallTip.h - interface to the call tip control | |
3 | // Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org> | |
4 | // The License.txt file describes the conditions under which this software may be distributed. | |
5 | ||
6 | #ifndef CALLTIP_H | |
7 | #define CALLTIP_H | |
8 | ||
9ce192d4 RD |
9 | class CallTip { |
10 | int startHighlight; | |
11 | int endHighlight; | |
12 | char *val; | |
13 | Font font; | |
f6bcfd97 BP |
14 | // Private so CallTip objects can not be copied |
15 | CallTip(const CallTip &) {} | |
16 | CallTip &operator=(const CallTip &) { return *this; } | |
9ce192d4 RD |
17 | public: |
18 | Window wCallTip; | |
19 | Window wDraw; | |
20 | bool inCallTipMode; | |
21 | int posStartCallTip; | |
22 | ColourPair colourBG; | |
23 | ColourPair colourUnSel; | |
24 | ColourPair colourSel; | |
25 | ColourPair colourShade; | |
26 | ColourPair colourLight; | |
27 | ||
28 | CallTip(); | |
29 | ~CallTip(); | |
30 | ||
31 | // Claim or accept palette entries for the colours required to paint a calltip | |
32 | void RefreshColourPalette(Palette &pal, bool want); | |
33 | ||
34 | void PaintCT(Surface *surfaceWindow); | |
35 | ||
36 | // Setup the calltip and return a rectangle of the area required | |
37 | PRectangle CallTipStart(int pos, Point pt, const char *defn, | |
38 | const char *faceName, int size); | |
39 | ||
40 | void CallTipCancel(); | |
41 | ||
42 | // Set a range of characters to be displayed in a highlight style. | |
43 | // Commonly used to highlight the current parameter. | |
44 | void SetHighlight(int start, int end); | |
45 | }; | |
46 | ||
47 | #endif |