]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/stc/scintilla/src/CallTip.h
1 // Scintilla source code edit control
3 ** Interface to the call tip control.
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.
22 // Private so CallTip objects can not be copied
23 CallTip(const CallTip
&) {}
24 CallTip
&operator=(const CallTip
&) { return *this; }
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
);
36 ColourPair colourUnSel
;
38 ColourPair colourShade
;
39 ColourPair colourLight
;
46 /// Claim or accept palette entries for the colours required to paint a calltip.
47 void RefreshColourPalette(Palette
&pal
, bool want
);
49 void PaintCT(Surface
*surfaceWindow
);
51 void MouseClick(Point pt
);
53 /// Setup the calltip and return a rectangle of the area required.
54 PRectangle
CallTipStart(int pos
, Point pt
, const char *defn
,
55 const char *faceName
, int size
, int codePage_
,
56 int characterSet
, Window
&wParent
);
60 /// Set a range of characters to be displayed in a highlight style.
61 /// Commonly used to highlight the current parameter.
62 void SetHighlight(int start
, int end
);