aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-03-08 01:38:23 +0000
committernyamatongwe <unknown>2000-03-08 01:38:23 +0000
commit7fbd8e2a34d2f5084ce26ad95d7c70ae4de6a233 (patch)
tree83eec8af8ccee95c3f5a3f4185c1ae2cda3cd4db /src/CallTip.h
parent8eba2a95b6aa25489c28eabfcd54e0389de78899 (diff)
downloadscintilla-mirror-7fbd8e2a34d2f5084ce26ad95d7c70ae4de6a233.tar.gz
Initial revision
Diffstat (limited to 'src/CallTip.h')
-rw-r--r--src/CallTip.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/CallTip.h b/src/CallTip.h
new file mode 100644
index 000000000..cd5b093c8
--- /dev/null
+++ b/src/CallTip.h
@@ -0,0 +1,46 @@
+// Scintilla source code edit control
+// CallTip.h - interface to the call tip control
+// Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
+// The License.txt file describes the conditions under which this software may be distributed.
+
+#ifndef CALLTIP_H
+#define CALLTIP_H
+
+const char callClassName[] = "CallTip";
+
+class CallTip {
+ int startHighlight;
+ int endHighlight;
+ char *val;
+ Font font;
+public:
+ Window wCallTip;
+ Window wDraw;
+ bool inCallTipMode;
+ int posStartCallTip;
+ ColourPair colourBG;
+ ColourPair colourUnSel;
+ ColourPair colourSel;
+ ColourPair colourShade;
+ ColourPair colourLight;
+
+ CallTip();
+ ~CallTip();
+
+ // Claim or accept palette entries for the colours required to paint a calltip
+ void RefreshColourPalette(Palette &pal, bool want);
+
+ void PaintCT(Surface *surfaceWindow);
+
+ // Setup the calltip and return a rectangle of the area required
+ PRectangle CallTipStart(int pos, Point pt, const char *defn,
+ const char *faceName, int size);
+
+ void CallTipCancel();
+
+ // Set a range of characters to be displayed in a highlight style.
+ // Commonly used to highlight the current parameter.
+ void SetHighlight(int start, int end);
+};
+
+#endif