mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
buttons-related semantics update + refactor
This commit is contained in:
parent
537a0ca358
commit
6cdb45485b
12 changed files with 130 additions and 110 deletions
|
|
@ -88,6 +88,14 @@ void UINode::setInteractive(bool flag) {
|
|||
interactive = flag;
|
||||
}
|
||||
|
||||
void UINode::setResizing(bool flag) {
|
||||
resizing = flag;
|
||||
}
|
||||
|
||||
bool UINode::isResizing() const {
|
||||
return resizing;
|
||||
}
|
||||
|
||||
vec2 UINode::calcCoord() const {
|
||||
if (parent) {
|
||||
return coord + parent->calcCoord() + parent->contentOffset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue