mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
gui: added UINode.zindex
This commit is contained in:
parent
e1b2d8f7e4
commit
b6f675a540
6 changed files with 25 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ namespace gui {
|
|||
bool focused = false;
|
||||
bool interactive = true;
|
||||
bool resizing = true;
|
||||
int zindex = 0;
|
||||
Align align = Align::left;
|
||||
UINode* parent = nullptr;
|
||||
UINode(glm::vec2 coord, glm::vec2 size);
|
||||
|
|
@ -68,6 +69,9 @@ namespace gui {
|
|||
virtual void setMargin(glm::vec4 margin);
|
||||
glm::vec4 getMargin() const;
|
||||
|
||||
virtual void setZIndex(int idx);
|
||||
int getZIndex() const;
|
||||
|
||||
virtual void focus(GUI*) {focused = true;}
|
||||
virtual void click(GUI*, int x, int y);
|
||||
virtual void clicked(GUI*, int button) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue