using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EventSystem.Framework.FunctionEvents { /// /// Used to handle events that happens when a mouse enters/leaves a specified position. /// public class MouseEntryLeaveEvent { /// /// A function that is called when a mouse enters a certain position. /// public functionEvent onMouseEnter; /// /// A function that is called when a mouse leaves a certain position. /// public functionEvent onMouseLeave; /// /// Constructor. /// /// The function that occurs when the mouse enters a certain position. /// The function that occurs when the mouse leaves a certain position. public MouseEntryLeaveEvent(functionEvent OnMouseEnter, functionEvent OnMouseLeave) { this.onMouseEnter = OnMouseEnter; this.onMouseLeave = OnMouseLeave; } } }