aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-04-03 12:34:05 +0000
committernyamatongwe <devnull@localhost>2003-04-03 12:34:05 +0000
commit3d0117d9b355477ac4054d5a0a91772ab89a9e96 (patch)
tree0cfa2be9e2e8e5d4facfac54c62da3d91a31d7bc /src/CallTip.h
parente22bcdbe06d78ab811ebc5a1623001133c10ea59 (diff)
downloadscintilla-mirror-3d0117d9b355477ac4054d5a0a91772ab89a9e96.tar.gz
CallTip can display up and down arrows and clicks are reported to
container. Calltip can be replaced while visible rather than needing a cancel and recreation to minimize flashing.
Diffstat (limited to 'src/CallTip.h')
-rw-r--r--src/CallTip.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/CallTip.h b/src/CallTip.h
index 877d9f34e..ff61f32a5 100644
--- a/src/CallTip.h
+++ b/src/CallTip.h
@@ -15,9 +15,16 @@ class CallTip {
int endHighlight;
char *val;
Font font;
+ int xUp;
+ int xDown;
+ int lineHeight;
// Private so CallTip objects can not be copied
CallTip(const CallTip &) {}
CallTip &operator=(const CallTip &) { return *this; }
+ void DrawChunk(Surface *surface, int &x, const char *s,
+ int posStart, int posEnd, int ytext, PRectangle rcClient,
+ bool highlight, bool draw);
+ int PaintContents(Surface *surfaceWindow, bool draw);
public:
Window wCallTip;
@@ -30,6 +37,7 @@ public:
ColourPair colourShade;
ColourPair colourLight;
int codePage;
+ int clickPlace;
CallTip();
~CallTip();
@@ -39,9 +47,11 @@ public:
void PaintCT(Surface *surfaceWindow);
+ void MouseClick(Point pt);
+
/// 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, int codePage_);
+ const char *faceName, int size, int codePage_, Window &wParent);
void CallTipCancel();