mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add read-only UI contentOffset property
This commit is contained in:
parent
fbca439b2d
commit
08ebfa15db
7 changed files with 86 additions and 79 deletions
|
|
@ -209,7 +209,7 @@ namespace gui {
|
|||
virtual glm::vec4 calcColor() const;
|
||||
|
||||
/// @brief Get inner content offset. Used for scroll
|
||||
virtual glm::vec2 contentOffset() {return glm::vec2(0.0f);};
|
||||
virtual glm::vec2 getContentOffset() {return glm::vec2(0.0f);};
|
||||
/// @brief Calculate screen position of the element
|
||||
virtual glm::vec2 calcPos() const;
|
||||
virtual void setPos(glm::vec2 pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue