Fixed git clone URL
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / humaninput / MouseInteractionController.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko.
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.sixth.e3d.gui.humaninput;
6
7 /**
8  * Interface that allows to handle mouse events.
9  */
10 public interface MouseInteractionController {
11
12     /**
13      * Called when mouse is clicked on component.
14      *
15      * @return <code>true</code> if view update is needed as a consequence of this mouse click.
16      */
17     boolean mouseClicked(int button);
18
19     /**
20      * Called when mouse gets over given component.
21      *
22      * @return <code>true</code> if view update is needed as a consequence of this mouse enter.
23      */
24     boolean mouseEntered();
25
26     /**
27      * Called when mouse leaves screen area occupied by component.
28      *
29      * @return <code>true</code> if view update is needed as a consequence of this mouse exit.
30      */
31     boolean mouseExited();
32
33 }