diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-03-29 08:44:35 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-03-29 08:44:35 +1100 | 
| commit | 852fb493c9557b0f20ce74b5079506152f1955e4 (patch) | |
| tree | 81a3b3e38401afa8af5c49f9466a1ab495559112 /src/CallTip.h | |
| parent | 14fae0aceeb3a0240c24e6d34fa6117467b00390 (diff) | |
| download | scintilla-mirror-852fb493c9557b0f20ce74b5079506152f1955e4.tar.gz | |
Backport: Extract arrow drawing to function. Use noexcept, const and other minor changes
to fix warnings before making widening types in the next change set.
Backport of changeset 8097:06cbbf702640.
Diffstat (limited to 'src/CallTip.h')
| -rw-r--r-- | src/CallTip.h | 16 | 
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;  };  } | 
