Interface MouseInteractionController
- All Known Implementing Classes:
GuiComponent,TextEditComponent
public interface MouseInteractionController
Interface that allows to handle mouse events.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanmouseClicked(int button) Called when mouse is clicked on component.booleanCalled when mouse gets over given component.booleanCalled when mouse leaves screen area occupied by component.
-
Method Details
-
mouseClicked
boolean mouseClicked(int button) Called when mouse is clicked on component.- Returns:
trueif view update is needed as a consequence of this mouse click.
-
mouseEntered
boolean mouseEntered()Called when mouse gets over given component.- Returns:
trueif view update is needed as a consequence of this mouse enter.
-
mouseExited
boolean mouseExited()Called when mouse leaves screen area occupied by component.- Returns:
trueif view update is needed as a consequence of this mouse exit.
-