SDK/TextAreaWidget: Add multiline option

This commit is contained in:
Lynix
2016-12-06 16:34:23 +01:00
parent 7dc600fb34
commit e66e0dfdce
3 changed files with 19 additions and 1 deletions

View File

@@ -15,6 +15,11 @@ namespace Ndk
RefreshCursor();
}
inline void TextAreaWidget::EnableMultiline(bool enable)
{
m_multiLineEnabled = enable;
}
inline std::size_t TextAreaWidget::GetCursorPosition() const
{
return m_cursorPosition;
@@ -30,6 +35,11 @@ namespace Ndk
return m_drawer.GetText();
}
inline bool Ndk::TextAreaWidget::IsMultilineEnabled() const
{
return m_multiLineEnabled;
}
inline bool TextAreaWidget::IsReadOnly() const
{
return m_readOnly;