add 'cursor' ui property

This commit is contained in:
MihailRis
2024-12-30 21:41:05 +03:00
parent 10f0bd0290
commit cb9690ebc7
14 changed files with 144 additions and 1 deletions
+8
View File
@@ -150,6 +150,14 @@ float UINode::getTooltipDelay() const {
return tooltipDelay;
}
void UINode::setCursor(CursorShape shape) {
cursor = shape;
}
CursorShape UINode::getCursor() const {
return cursor;
}
glm::vec2 UINode::calcPos() const {
if (parent) {
return pos + parent->calcPos() + parent->getContentOffset();