diff options
author | Sébastien Granjoux <seb.sfo@free.fr> | 2011-09-23 23:16:12 +0200 |
---|---|---|
committer | Sébastien Granjoux <seb.sfo@free.fr> | 2011-09-23 23:16:12 +0200 |
commit | c89ae1e2153477f2d369b82dacafa10cd417c704 (patch) | |
tree | 212fce702cde5bf0ceafedbd7bd115d267cef200 /src/CallTip.h | |
parent | a407a6330fa1d41aecc2816cf5f079bac5dd3304 (diff) | |
download | scintilla-mirror-c89ae1e2153477f2d369b82dacafa10cd417c704.tar.gz |
Allow to display calltip above or below the text
Diffstat (limited to 'src/CallTip.h')
-rw-r--r-- | src/CallTip.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CallTip.h b/src/CallTip.h index 0cb2ede72..657e0caa1 100644 --- a/src/CallTip.h +++ b/src/CallTip.h @@ -25,6 +25,7 @@ class CallTip { int offsetMain; // The alignment point of the call tip int tabSize; // Tab size in pixels, <=0 no TAB expand bool useStyleCallTip; // if true, STYLE_CALLTIP should be used + bool above; // if true, display calltip above text // Private so CallTip objects can not be copied CallTip(const CallTip &); @@ -57,7 +58,7 @@ public: void MouseClick(Point pt); /// Setup the calltip and return a rectangle of the area required. - PRectangle CallTipStart(int pos, Point pt, const char *defn, + PRectangle CallTipStart(int pos, Point pt, int textHeight, const char *defn, const char *faceName, int size, int codePage_, int characterSet, int technology, Window &wParent); @@ -70,6 +71,9 @@ public: /// Set the tab size in pixels for the call tip. 0 or -ve means no tab expand. void SetTabSize(int tabSz); + /// Set calltip position. + void SetPosition(bool aboveText); + /// Used to determine which STYLE_xxxx to use for call tip information bool UseStyleCallTip() const { return useStyleCallTip;} |