public final class EventButton extends Event
getButton()
, and whether any modifier keys were
being held down by the user with getState()
.Modifier and Type | Method and Description |
---|---|
MouseButton |
getButton()
Which button on the pointing device was pressed?
|
ModifierType |
getState()
Get the state of the modifier keys.
|
double |
getX()
Get the horizontal location that this Event occured at, relative to the
[org.gnome.gdk] Window. |
double |
getY()
Get the vertical location that this Event occured at, relative to the
[org.gnome.gdk] Window. |
public MouseButton getButton()
public ModifierType getState()
NONE
if no modifiers are being held down. See
EventKey's getState()
and
ModifierType
for usage details.public double getX()
[org.gnome.gdk]
Window. In most cases you will get an
integral return; in any case, most usages of this return value will
want a whole number of pixels, so cast to int
as
necessary.public double getY()
[org.gnome.gdk]
Window.