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