Class MouseEvent

java.lang.Object
heronarts.glx.event.Event
heronarts.glx.event.MouseEvent

public class MouseEvent extends Event
  • Field Details

  • Constructor Details

    • MouseEvent

      public MouseEvent(int glfwAction, int button, float x, float y, int modifiers)
    • MouseEvent

      public MouseEvent(MouseEvent.Action action, float x, float y, float dx, float dy, int modifiers)
    • MouseEvent

      public MouseEvent(MouseEvent source, MouseEvent.Action action, float x, float y, float dx, float dy, int modifiers)
  • Method Details

    • getButton

      public int getButton()
    • getAction

      public MouseEvent.Action getAction()
    • getX

      public double getX()
    • getY

      public double getY()
    • consumeDropMenu

      public void consumeDropMenu()
      Mark this mouse press event as having been responsible for opening a drop menu. This is used to flag that this click shouldn't close that drop menu immediately, even though it did not fall within its bounds.
    • consumeScrollX

      public MouseEvent consumeScrollX()
    • consumeScrollY

      public MouseEvent consumeScrollY()
    • consume

      public MouseEvent consume()
      Description copied from class: Event
      Consume the event. Lower-priority event handlers should not perform the action associated with this event.
      Overrides:
      consume in class Event
      Returns:
      this
    • isDropMenuConsumed

      public boolean isDropMenuConsumed()
      Check whether mouse press was responsible for a context menu opening
      Returns:
      Whether this mouse event opened the currently active drop menu
    • isScrollXConsumed

      public boolean isScrollXConsumed()
    • isScrollYConsumed

      public boolean isScrollYConsumed()
    • setCount

      public MouseEvent setCount(int count)
    • isRepeat

      public boolean isRepeat(MouseEvent that)
    • getCount

      public int getCount()
    • isButton

      public boolean isButton(int button)
    • isDoubleClick

      public boolean isDoubleClick()
    • toString

      public String toString()
      Overrides:
      toString in class Object