Widgets/TextAreaWidget: Add a way to limit text length
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user