Interface Interactable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean clicked()
      Check if the element has been clicked by the mouse.
      boolean hovered()
      Check if the element is currently being hovered over by the mouse.
      boolean intersects​(java.awt.Point pos)
      Check if the point intersects with the element.
    • Method Detail

      • intersects

        boolean intersects​(java.awt.Point pos)
        Check if the point intersects with the element.
        Returns:
        true if the point intersects with the element, false otherwise.
      • hovered

        boolean hovered()
        Check if the element is currently being hovered over by the mouse.
        Returns:
        true if the element is hovered, false otherwise.
      • clicked

        boolean clicked()
        Check if the element has been clicked by the mouse.
        Returns:
        true if the element is clicked, false otherwise.