Extra callback for just mouse hover
This commit is contained in:
parent
2b2531a62a
commit
26eeb40541
@ -136,7 +136,10 @@ void Button::OnMouseClick(int x, int y, unsigned int button)
|
||||
|
||||
void Button::OnMouseEnter(int x, int y)
|
||||
{
|
||||
isMouseInside = true;
|
||||
if(!Enabled)
|
||||
return;
|
||||
if(actionCallback)
|
||||
actionCallback->MouseEnterCallback(this);
|
||||
}
|
||||
|
||||
void Button::OnMouseLeave(int x, int y)
|
||||
|
@ -20,6 +20,7 @@ class ButtonAction
|
||||
{
|
||||
public:
|
||||
virtual void ActionCallback(ui::Button * sender) {}
|
||||
virtual void MouseEnterCallback(ui::Button * sender) {}
|
||||
virtual ~ButtonAction() {}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user