Sdk/TextAreaWidget: Fix GetGlyphIndex not being const + add overload returning current glyph index

This commit is contained in:
Jérôme Leclercq
2018-04-12 13:40:39 +02:00
parent 583cfb5f71
commit 917c41f90e
2 changed files with 13 additions and 7 deletions

View File

@@ -34,7 +34,8 @@ namespace Ndk
inline const Nz::Vector2ui& GetCursorPosition() const;
inline const Nz::String& GetDisplayText() const;
inline EchoMode GetEchoMode() const;
inline std::size_t GetGlyphIndex(const Nz::Vector2ui& cursorPosition);
inline std::size_t GetGlyphIndex() const;
inline std::size_t GetGlyphIndex(const Nz::Vector2ui& cursorPosition) const;
inline const Nz::String& GetText() const;
inline const Nz::Color& GetTextColor() const;