package electrosphere.renderer.ui.events;

/**
 * Triggered when an element is hovered over
 */
public class HoverEvent implements Event {
    
    //if true, this element is hovered over, false otherwise
    boolean isHovered;

    /**
     * Creates the hover event
     * @param isHovered true if hovered over, false otherwise
     */
    public HoverEvent(boolean isHovered){
        this.isHovered = isHovered;
    }

    /**
     * Returns if the element is hovered over
     * @return true if hovered over, false otherwise
     */
    public boolean isHovered(){
        return isHovered;
    }

}
