Interface MouseInteractionController

All Known Implementing Classes:
GuiComponent, TextEditComponent

public interface MouseInteractionController
Interface that allows to handle mouse events.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mouseClicked(int button)
    Called when mouse is clicked on component.
    boolean
    Called when mouse gets over given component.
    boolean
    Called when mouse leaves screen area occupied by component.
  • Method Details

    • mouseClicked

      boolean mouseClicked(int button)
      Called when mouse is clicked on component.
      Returns:
      true if view update is needed as a consequence of this mouse click.
    • mouseEntered

      boolean mouseEntered()
      Called when mouse gets over given component.
      Returns:
      true if view update is needed as a consequence of this mouse enter.
    • mouseExited

      boolean mouseExited()
      Called when mouse leaves screen area occupied by component.
      Returns:
      true if view update is needed as a consequence of this mouse exit.