mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add textbox:indexByPos and :lineY methods
This commit is contained in:
parent
1e16ab5464
commit
65b4ac8262
5 changed files with 38 additions and 3 deletions
|
|
@ -74,7 +74,6 @@ namespace gui {
|
|||
|
||||
size_t normalizeIndex(int index);
|
||||
|
||||
int calcIndexAt(int x, int y) const;
|
||||
void setTextOffset(uint x);
|
||||
bool eraseSelected();
|
||||
void resetSelection();
|
||||
|
|
@ -186,6 +185,9 @@ namespace gui {
|
|||
/// @return line position in text
|
||||
virtual size_t getLinePos(uint line) const;
|
||||
|
||||
int calcIndexAt(int x, int y) const;
|
||||
int getLineYOffset(int line) const;
|
||||
|
||||
/// @brief Check text with validator set with setTextValidator
|
||||
/// @return true if text is valid
|
||||
virtual bool validate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue