add textbox:indexByPos and :lineY methods

This commit is contained in:
MihailRis
2025-11-14 23:48:02 +03:00
parent 1e16ab5464
commit 65b4ac8262
5 changed files with 38 additions and 3 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ namespace gui {
virtual glm::vec4 calcColor() const;
/// @brief Get inner content offset. Used for scroll
virtual glm::vec2 getContentOffset() {return glm::vec2(0.0f);};
virtual glm::vec2 getContentOffset() const {return glm::vec2(0.0f);};
/// @brief Calculate screen position of the element
virtual glm::vec2 calcPos() const;
virtual void setPos(const glm::vec2& pos);