Package heronarts.glx.event
Class MouseEvent
java.lang.Object
heronarts.glx.event.Event
heronarts.glx.event.MouseEvent
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal MouseEvent.Action
final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
final float
final float
static final double
static final double
final float
final float
-
Constructor Summary
ConstructorDescriptionMouseEvent
(int glfwAction, int button, float x, float y, int modifiers) MouseEvent
(MouseEvent.Action action, float x, float y, float dx, float dy, int modifiers) MouseEvent
(MouseEvent source, MouseEvent.Action action, float x, float y, float dx, float dy, int modifiers) -
Method Summary
Methods inherited from class heronarts.glx.event.Event
consume, getModifiers, getTime, hasModifier, isAltDown, isCommand, isConsumed, isControlDown, isMetaDown, isMultiSelect, isRangeSelect, isShiftDown
-
Field Details
-
REPEAT_CLICK_TIME
public static final double REPEAT_CLICK_TIME- See Also:
-
REPEAT_CLICK_PX
public static final double REPEAT_CLICK_PX- See Also:
-
BUTTON_NONE
public static final int BUTTON_NONE- See Also:
-
BUTTON_1
public static final int BUTTON_1- See Also:
-
BUTTON_2
public static final int BUTTON_2- See Also:
-
BUTTON_3
public static final int BUTTON_3- See Also:
-
BUTTON_4
public static final int BUTTON_4- See Also:
-
BUTTON_5
public static final int BUTTON_5- See Also:
-
BUTTON_6
public static final int BUTTON_6- See Also:
-
BUTTON_7
public static final int BUTTON_7- See Also:
-
BUTTON_8
public static final int BUTTON_8- See Also:
-
BUTTON_LEFT
public static final int BUTTON_LEFT- See Also:
-
BUTTON_RIGHT
public static final int BUTTON_RIGHT- See Also:
-
BUTTON_MIDDLE
public static final int BUTTON_MIDDLE- See Also:
-
action
-
button
public final int button -
x
public final float x -
y
public final float y -
dx
public final float dx -
dy
public final float dy
-
-
Constructor Details
-
MouseEvent
public MouseEvent(int glfwAction, int button, float x, float y, int modifiers) -
MouseEvent
-
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
-
getX
public double getX() -
getY
public double getY() -
consumeContextMenu
public void consumeContextMenu() -
isContextMenuConsumed
public boolean isContextMenuConsumed() -
setCount
-
isRepeat
-
getCount
public int getCount() -
isButton
public boolean isButton(int button) -
isDoubleClick
public boolean isDoubleClick() -
toString
-