]> git.saurik.com Git - wxWidgets.git/blame - src/stc/scintilla/src/CallTip.h
docopydocs is not needed for this script.
[wxWidgets.git] / src / stc / scintilla / src / CallTip.h
CommitLineData
9ce192d4 1// Scintilla source code edit control
65ec6247
RD
2/** @file CallTip.h
3 ** Interface to the call tip control.
4 **/
5// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
9ce192d4
RD
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
65ec6247
RD
11/**
12 */
9ce192d4
RD
13class CallTip {
14 int startHighlight;
15 int endHighlight;
16 char *val;
17 Font font;
1e9bafca
RD
18 PRectangle rectUp;
19 PRectangle rectDown;
9e730a78
RD
20 int lineHeight;
21 int offsetMain;
f6bcfd97
BP
22 // Private so CallTip objects can not be copied
23 CallTip(const CallTip &) {}
24 CallTip &operator=(const CallTip &) { return *this; }
9e730a78
RD
25 void DrawChunk(Surface *surface, int &x, const char *s,
26 int posStart, int posEnd, int ytext, PRectangle rcClient,
27 bool highlight, bool draw);
28 int PaintContents(Surface *surfaceWindow, bool draw);
65ec6247 29
9ce192d4
RD
30public:
31 Window wCallTip;
32 Window wDraw;
33 bool inCallTipMode;
34 int posStartCallTip;
35 ColourPair colourBG;
36 ColourPair colourUnSel;
37 ColourPair colourSel;
38 ColourPair colourShade;
39 ColourPair colourLight;
9e730a78
RD
40 int codePage;
41 int clickPlace;
42
9ce192d4
RD
43 CallTip();
44 ~CallTip();
9e730a78 45
65ec6247 46 /// Claim or accept palette entries for the colours required to paint a calltip.
9ce192d4 47 void RefreshColourPalette(Palette &pal, bool want);
9e730a78 48
9ce192d4 49 void PaintCT(Surface *surfaceWindow);
9e730a78
RD
50
51 void MouseClick(Point pt);
52
65ec6247 53 /// Setup the calltip and return a rectangle of the area required.
9e730a78 54 PRectangle CallTipStart(int pos, Point pt, const char *defn,
a33203cb
RD
55 const char *faceName, int size, int codePage_,
56 int characterSet, Window &wParent);
9e730a78 57
9ce192d4 58 void CallTipCancel();
9e730a78 59
65ec6247
RD
60 /// Set a range of characters to be displayed in a highlight style.
61 /// Commonly used to highlight the current parameter.
9ce192d4
RD
62 void SetHighlight(int start, int end);
63};
64
65#endif