SDK/TextAreaWidget: Add getters methods

This commit is contained in:
Lynix 2016-12-05 15:22:01 +01:00
parent e3e254532d
commit 60fee4bba6
2 changed files with 13 additions and 0 deletions

View File

@ -30,6 +30,9 @@ namespace Ndk
//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;
void ResizeToContent() override;

View File

@ -14,4 +14,14 @@ namespace Ndk
RefreshCursor();
}
inline std::size_t TextAreaWidget::GetLineCount() const
{
return m_drawer.GetLineCount();
}
inline const Nz::String& TextAreaWidget::GetText() const
{
return m_drawer.GetText();
}
}