From e8e793075aae262aef781841fc2a8ae235eab604 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 3 Apr 2003 12:34:05 +0000 Subject: 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. --- src/CallTip.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/CallTip.h') 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(); -- cgit v1.2.3