Sdk/TextAreaWidget: Add SetTextColor
This commit is contained in:
@@ -35,6 +35,11 @@ namespace Ndk
|
||||
return m_drawer.GetText();
|
||||
}
|
||||
|
||||
inline const Nz::Color& TextAreaWidget::GetTextColor() const
|
||||
{
|
||||
return m_drawer.GetColor();
|
||||
}
|
||||
|
||||
inline bool Ndk::TextAreaWidget::IsMultilineEnabled() const
|
||||
{
|
||||
return m_multiLineEnabled;
|
||||
@@ -72,4 +77,18 @@ namespace Ndk
|
||||
|
||||
m_cursorEntity->Enable(!m_readOnly);
|
||||
}
|
||||
|
||||
inline void TextAreaWidget::SetText(const Nz::String& text)
|
||||
{
|
||||
m_drawer.SetText(text);
|
||||
|
||||
m_textSprite->Update(m_drawer);
|
||||
}
|
||||
|
||||
inline void TextAreaWidget::SetTextColor(const Nz::Color& text)
|
||||
{
|
||||
m_drawer.SetColor(text);
|
||||
|
||||
m_textSprite->Update(m_drawer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user