add textbox:lineAt and textbox:linePos

This commit is contained in:
MihailRis
2024-11-19 05:57:46 +03:00
parent 6a466cf1ec
commit c5c9ef379e
5 changed files with 59 additions and 7 deletions
+10
View File
@@ -159,6 +159,16 @@ namespace gui {
/// @param end index of the last selected character + 1
virtual void select(int start, int end);
/// @brief Get number of line at specific position in text
/// @param position target position
/// @return line number
virtual uint getLineAt(size_t position) const;
/// @brief Get specific line text position
/// @param line target line
/// @return line position in text
virtual size_t getLinePos(uint line) const;
/// @brief Check text with validator set with setTextValidator
/// @return true if text is valid
virtual bool validate();