SDK/TextAreaWidget: Add getters methods
This commit is contained in:
parent
e3e254532d
commit
60fee4bba6
|
|
@ -30,6 +30,9 @@ namespace Ndk
|
||||||
|
|
||||||
//virtual TextAreaWidget* Clone() const = 0;
|
//virtual TextAreaWidget* Clone() const = 0;
|
||||||
|
|
||||||
|
inline std::size_t GetLineCount() const;
|
||||||
|
inline const Nz::String& GetText() const;
|
||||||
|
|
||||||
std::size_t GetHoveredGlyph(float x, float y) const;
|
std::size_t GetHoveredGlyph(float x, float y) const;
|
||||||
|
|
||||||
void ResizeToContent() override;
|
void ResizeToContent() override;
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,14 @@ namespace Ndk
|
||||||
|
|
||||||
RefreshCursor();
|
RefreshCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline std::size_t TextAreaWidget::GetLineCount() const
|
||||||
|
{
|
||||||
|
return m_drawer.GetLineCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline const Nz::String& TextAreaWidget::GetText() const
|
||||||
|
{
|
||||||
|
return m_drawer.GetText();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue