mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add 'onmouseenter', 'onmouseleave' ui events
This commit is contained in:
parent
d457b2ee7f
commit
78e0ac5a95
5 changed files with 36 additions and 1 deletions
|
|
@ -59,7 +59,9 @@ namespace gui {
|
|||
DEFOCUS,
|
||||
RIGHT_CLICK,
|
||||
MOUSE_OVER,
|
||||
MOUSE_OUT
|
||||
MOUSE_OUT,
|
||||
MOUSE_ENTER,
|
||||
MOUSE_LEAVE,
|
||||
};
|
||||
|
||||
using ActionsSet = TaggedCallbacksSet<UIAction, GUI&>;
|
||||
|
|
@ -170,8 +172,11 @@ namespace gui {
|
|||
virtual void setHover(bool flag);
|
||||
bool isHover() const;
|
||||
|
||||
void setMouseOver(bool flag);
|
||||
|
||||
virtual void setParent(UINode* node);
|
||||
UINode* getParent() const;
|
||||
std::shared_ptr<UINode> getParentShared() const;
|
||||
|
||||
/// @brief Set element color (doesn't affect inner elements).
|
||||
/// Also replaces hover color to avoid adding extra properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue