aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-03-29 08:44:35 +1100
committerNeil <nyamatongwe@gmail.com>2020-03-29 08:44:35 +1100
commit6286a04bff69593831d1637bcd39d9c7f4cbc4e7 (patch)
tree79ccf0bb0652f4ab0fad0253a9cd43032be796d5 /src/CallTip.h
parent9c377f7ef51248855a3c8b6182d092f0ea725874 (diff)
downloadscintilla-mirror-6286a04bff69593831d1637bcd39d9c7f4cbc4e7.tar.gz
Extract arrow drawing to function. Use noexcept, const and other minor changes
to fix warnings before making widening types in the next change set.
Diffstat (limited to 'src/CallTip.h')
-rw-r--r--src/CallTip.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CallTip.h b/src/CallTip.h
index a37138d5f..a720bd3a3 100644
--- a/src/CallTip.h
+++ b/src/CallTip.h
@@ -29,8 +29,8 @@ class CallTip {
int posStart, int posEnd, int ytext, PRectangle rcClient,
bool highlight, bool draw);
int PaintContents(Surface *surfaceWindow, bool draw);
- bool IsTabCharacter(char ch) const;
- int NextTabPos(int x) const;
+ bool IsTabCharacter(char ch) const noexcept;
+ int NextTabPos(int x) const noexcept;
public:
Window wCallTip;
@@ -50,7 +50,7 @@ public:
int borderHeight;
int verticalOffset; // pixel offset up or down of the calltip with respect to the line
- CallTip();
+ CallTip() noexcept;
// Deleted so CallTip objects can not be copied.
CallTip(const CallTip &) = delete;
CallTip(CallTip &&) = delete;
@@ -60,7 +60,7 @@ public:
void PaintCT(Surface *surfaceWindow);
- void MouseClick(Point pt);
+ void MouseClick(Point pt) noexcept;
/// Setup the calltip and return a rectangle of the area required.
PRectangle CallTipStart(Sci::Position pos, Point pt, int textHeight, const char *defn,
@@ -74,16 +74,16 @@ public:
void SetHighlight(int start, int end);
/// Set the tab size in pixels for the call tip. 0 or -ve means no tab expand.
- void SetTabSize(int tabSz);
+ void SetTabSize(int tabSz) noexcept;
/// Set calltip position.
- void SetPosition(bool aboveText);
+ void SetPosition(bool aboveText) noexcept;
/// Used to determine which STYLE_xxxx to use for call tip information
- bool UseStyleCallTip() const { return useStyleCallTip;}
+ bool UseStyleCallTip() const noexcept;
// Modify foreground and background colours
- void SetForeBack(const ColourDesired &fore, const ColourDesired &back);
+ void SetForeBack(const ColourDesired &fore, const ColourDesired &back) noexcept;
};
}