|
|
@@ -46,16 +46,16 @@ public:
|
|
|
ElementTextDefault(const String& tag);
|
|
|
virtual ~ElementTextDefault();
|
|
|
|
|
|
- virtual void SetText(const WString& text);
|
|
|
- virtual const WString& GetText() const;
|
|
|
+ void SetText(const WString& text) override;
|
|
|
+ const WString& GetText() const override;
|
|
|
|
|
|
- virtual void OnRender();
|
|
|
+ void OnRender() override;
|
|
|
|
|
|
/// Generates a token of text from this element, returning only the width.
|
|
|
/// @param[out] token_width The window (in pixels) of the token.
|
|
|
/// @param[in] token_begin The first character to be included in the token.
|
|
|
/// @return True if the token is the end of the element's text, false if not.
|
|
|
- virtual bool GenerateToken(float& token_width, int token_begin);
|
|
|
+ bool GenerateToken(float& token_width, int token_begin) override;
|
|
|
/// Generates a line of text rendered from this element
|
|
|
/// @param[out] line The characters making up the line, with white-space characters collapsed and endlines processed appropriately.
|
|
|
/// @param[out] line_length The number of characters from the source string consumed making up this string; this may very well be different from line.size()!
|
|
|
@@ -65,27 +65,27 @@ public:
|
|
|
/// @param[in] right_spacing_width The width (in pixels) of the spacing (consisting of margins, padding, etc) that must be remaining on the right of the line if the last of the text is rendered onto this line.
|
|
|
/// @param[in] trim_whitespace_prefix If we're collapsing whitespace, whether or remove all prefixing whitespace or collapse it down to a single space.
|
|
|
/// @return True if the line reached the end of the element's text, false if not.
|
|
|
- virtual bool GenerateLine(WString& line, int& line_length, float& line_width, int line_begin, float maximum_line_width, float right_spacing_width, bool trim_whitespace_prefix);
|
|
|
+ bool GenerateLine(WString& line, int& line_length, float& line_width, int line_begin, float maximum_line_width, float right_spacing_width, bool trim_whitespace_prefix) override;
|
|
|
|
|
|
/// Clears all lines of generated text and prepares the element for generating new lines.
|
|
|
- virtual void ClearLines();
|
|
|
+ void ClearLines() override;
|
|
|
/// Adds a new line into the text element.
|
|
|
/// @param[in] line_position The position of this line, as an offset from the first line.
|
|
|
/// @param[in] line The contents of the line..
|
|
|
- virtual void AddLine(const Vector2f& line_position, const WString& line);
|
|
|
+ void AddLine(const Vector2f& line_position, const WString& line) override;
|
|
|
|
|
|
/// Prevents the element from dirtying its document's layout when its text is changed.
|
|
|
- virtual void SuppressAutoLayout();
|
|
|
+ void SuppressAutoLayout() override;
|
|
|
|
|
|
protected:
|
|
|
- virtual void OnPropertyChange(const PropertyNameList& properties);
|
|
|
+ void OnPropertyChange(const PropertyNameList& properties) override;
|
|
|
|
|
|
/// Returns the RML of this element
|
|
|
/// @param content[out] The raw text.
|
|
|
- virtual void GetRML(String& content);
|
|
|
+ void GetRML(String& content) override;
|
|
|
|
|
|
/// Forces a reevaluation of applicable font effects.
|
|
|
- virtual void DirtyFont();
|
|
|
+ void DirtyFont() override;
|
|
|
|
|
|
private:
|
|
|
// Updates the configuration this element uses for its font, depending on which font effects
|