2018-02-24 05:55:51 +08:00
|
|
|
namespace EventSystem.Framework.FunctionEvents
|
2018-02-23 03:43:18 +08:00
|
|
|
{
|
2018-12-30 18:00:05 +08:00
|
|
|
/// <summary>Used to handle events that happens when a mouse enters/leaves a specified position.</summary>
|
2018-02-24 05:55:51 +08:00
|
|
|
public class MouseEntryLeaveEvent
|
2018-02-23 03:43:18 +08:00
|
|
|
{
|
2018-12-30 18:00:05 +08:00
|
|
|
/// <summary>A function that is called when a mouse enters a certain position.</summary>
|
2018-02-23 03:43:18 +08:00
|
|
|
public functionEvent onMouseEnter;
|
2018-12-30 18:00:05 +08:00
|
|
|
|
|
|
|
/// <summary>A function that is called when a mouse leaves a certain position.</summary>
|
2018-02-23 03:43:18 +08:00
|
|
|
public functionEvent onMouseLeave;
|
|
|
|
|
2018-12-30 18:00:05 +08:00
|
|
|
/// <summary>Construct an instance.</summary>
|
2018-02-23 03:43:18 +08:00
|
|
|
/// <param name="OnMouseEnter">The function that occurs when the mouse enters a certain position.</param>
|
|
|
|
/// <param name="OnMouseLeave">The function that occurs when the mouse leaves a certain position.</param>
|
|
|
|
public MouseEntryLeaveEvent(functionEvent OnMouseEnter, functionEvent OnMouseLeave)
|
|
|
|
{
|
|
|
|
this.onMouseEnter = OnMouseEnter;
|
|
|
|
this.onMouseLeave = OnMouseLeave;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|