2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.sixth.e3d.gui.humaninput;
8 * Interface that allows to handle mouse events.
10 public interface MouseInteractionController {
13 * Called when mouse is clicked on component.
15 * @return <code>true</code> if view update is needed as a consequence of this mouse click.
17 boolean mouseClicked(int button);
20 * Called when mouse gets over given component.
22 * @return <code>true</code> if view update is needed as a consequence of this mouse enter.
24 boolean mouseEntered();
27 * Called when mouse leaves screen area occupied by component.
29 * @return <code>true</code> if view update is needed as a consequence of this mouse exit.
31 boolean mouseExited();