diff options
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 0fb3db093..587eb976a 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -20,7 +20,7 @@ public: int mask; bool sensitive; int cursor; - MarginStyle(int style_= SC_MARGIN_SYMBOL, int width_=0, int mask_=0); + MarginStyle(int style_= SC_MARGIN_SYMBOL, int width_=0, int mask_=0) noexcept; }; /** @@ -30,7 +30,7 @@ public: class FontRealised : public FontMeasurements { public: Font font; - FontRealised(); + FontRealised() noexcept; // FontRealised objects can not be copied. FontRealised(const FontRealised &) = delete; FontRealised(FontRealised &&) = delete; @@ -173,31 +173,31 @@ public: void CalculateMarginWidthAndMask(); void Init(size_t stylesSize_=256); void Refresh(Surface &surface, int tabInChars); - void ReleaseAllExtendedStyles(); + void ReleaseAllExtendedStyles() noexcept; int AllocateExtendedStyles(int numberStyles); void EnsureStyle(size_t index); void ResetDefaultStyle(); void ClearStyles(); void SetStyleFontName(int styleIndex, const char *name); - bool ProtectionActive() const; - int ExternalMarginWidth() const; + bool ProtectionActive() const noexcept; + int ExternalMarginWidth() const noexcept; int MarginFromLocation(Point pt) const; - bool ValidStyle(size_t styleIndex) const; + bool ValidStyle(size_t styleIndex) const noexcept; void CalcLargestMarkerHeight(); - int GetFrameWidth() const; - bool IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) const; + int GetFrameWidth() const noexcept; + bool IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) const noexcept; ColourOptional Background(int marksOfLine, bool caretActive, bool lineContainsCaret) const; - bool SelectionBackgroundDrawn() const; - bool WhitespaceBackgroundDrawn() const; + bool SelectionBackgroundDrawn() const noexcept; + bool WhitespaceBackgroundDrawn() const noexcept; ColourDesired WrapColour() const; - bool SetWrapState(int wrapState_); - bool SetWrapVisualFlags(int wrapVisualFlags_); - bool SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation_); - bool SetWrapVisualStartIndent(int wrapVisualStartIndent_); - bool SetWrapIndentMode(int wrapIndentMode_); + bool SetWrapState(int wrapState_) noexcept; + bool SetWrapVisualFlags(int wrapVisualFlags_) noexcept; + bool SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation_) noexcept; + bool SetWrapVisualStartIndent(int wrapVisualStartIndent_) noexcept; + bool SetWrapIndentMode(int wrapIndentMode_) noexcept; - bool WhiteSpaceVisible(bool inIndent) const; + bool WhiteSpaceVisible(bool inIndent) const noexcept; enum class CaretShape { invisible, line, block, bar }; bool IsBlockCaretStyle() const noexcept; |