SDK/TextAreaWidget: Add [Get|Set]TextFont

This commit is contained in:
Lynix
2019-07-07 00:23:49 +02:00
parent 55e3e05f0c
commit 8457cb4df7
4 changed files with 17 additions and 2 deletions

View File

@@ -108,6 +108,11 @@ namespace Ndk
return m_drawer.GetColor();
}
inline Nz::Font* TextAreaWidget::GetTextFont() const
{
return m_drawer.GetFont();
}
inline const Nz::Color& TextAreaWidget::GetTextOulineColor() const
{
return m_drawer.GetOutlineColor();
@@ -265,6 +270,13 @@ namespace Ndk
UpdateDisplayText();
}
inline void TextAreaWidget::SetTextFont(Nz::FontRef font)
{
m_drawer.SetFont(font);
UpdateDisplayText();
}
inline void TextAreaWidget::SetTextOutlineColor(const Nz::Color& color)
{
m_drawer.SetOutlineColor(color);