org.gnu.gtk.event
public class MouseMotionEvent extends GtkEvent
window.setEvents(window.getEvents().or(EventMask.POINTER_MOTION_MASK));
See Also: getWindow MouseMotionListener
| Nested Class Summary | |
|---|---|
| static class | MouseMotionEvent.Type |
| Constructor Summary | |
|---|---|
| MouseMotionEvent(Object source, EventMotion gdkEvent) | |
| Method Summary | |
|---|---|
| Device | getDevice()
Returns the device where the event originated.
|
| boolean | getSendEvent()
Check if the event was sent explicitly (eg using XSendEvent).
|
| ModifierType | getState()
Returns a bit-mask representing the state of the modifier keys (e.g.
|
| int | getTimeMillis()
Returns the time of the event in milliseconds.
|
| Window | getWindow()
The window which received the event.
|
| double | getX()
Returns the x coordinate of the pointer relative to the window.
|
| double | getXRoot()
Returns the x coordinate of the pointer relative to the root of the
screen.
|
| double | getY()
Returns the y coordinate of the pointer relative to the window.
|
| double | getYRoot()
Returns the y coordinate of the pointer relative to the root of the
screen.
|
| boolean | isHint()
Check if this event is just a hint.
|
| boolean | isOfType(MouseMotionEvent.Type test)
Test to compare events. |
| void | refireIfHint()
In the case that this event is a hint, this method triggers the next
event to be fired. |
Returns: the device where the event originated.
Returns: true if the event was sent explicitly (e.g. using XSendEvent), false otherwise.
Returns: a bit-mask representing the state of the modifier keys and the pointer buttons.
Returns: the time of the event in milliseconds.
Returns: the window which received the event.
Returns: the x coordinate of the pointer relative to the window.
Returns: the x coordinate of the pointer relative to the root of the screen.
Returns: the y coordinate of the pointer relative to the window.
Returns: the y coordinate of the pointer relative to the root of the screen.
Returns: true if this event is just a hint, false otherwise.
See Also: POINTER_MOTION_HINT_MASK