SDK: (Rich)TextAreaWidget now have alterable text styles
This commit is contained in:
@@ -41,6 +41,11 @@ namespace Ndk
|
||||
return m_drawer.GetOutlineThickness();
|
||||
}
|
||||
|
||||
inline Nz::TextStyleFlags TextAreaWidget::GetTextStyle() const
|
||||
{
|
||||
return m_drawer.GetStyle();
|
||||
}
|
||||
|
||||
inline void TextAreaWidget::SetText(const Nz::String& text)
|
||||
{
|
||||
m_text = text;
|
||||
@@ -76,4 +81,11 @@ namespace Ndk
|
||||
|
||||
UpdateDisplayText();
|
||||
}
|
||||
|
||||
inline void TextAreaWidget::SetTextStyle(Nz::TextStyleFlags style)
|
||||
{
|
||||
m_drawer.SetStyle(style);
|
||||
|
||||
UpdateDisplayText();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user