Widgets/TextAreaWidget: Add a way to limit text length

This commit is contained in:
SirLynix
2024-01-26 16:15:53 +01:00
parent f10671ac2a
commit c931e9a509
7 changed files with 92 additions and 9 deletions

View File

@@ -87,6 +87,11 @@ namespace Nz
return glyphIndex;
}
inline std::size_t AbstractTextAreaWidget::GetMaximumTextLength() const
{
return m_maximumTextLength;
}
inline bool AbstractTextAreaWidget::HasSelection() const
{
return m_cursorPositionBegin != m_cursorPositionEnd;
@@ -257,3 +262,4 @@ namespace Nz
}
#include <Nazara/Widgets/DebugOff.hpp>
#include "AbstractTextAreaWidget.hpp"