|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.gtk.event.GtkEvent
org.gnu.gtk.event.MouseMotionEvent
public class MouseMotionEvent
This event object is used to identify how mouseMotion has changed. Note: normally motion events are sent just when some mouse button is pressed. If you want events also when no button is pressed, you should retrieve the widget's GdkWindow using Widget.getWindow() and do:
window.setEvents(window.getEvents().or(EventMask.POINTER_MOTION_MASK));
Widget.getWindow()
,
MouseMotionListener
,
Serialized FormNested Class Summary | |
---|---|
static class |
MouseMotionEvent.Type
|
Constructor Summary | |
---|---|
MouseMotionEvent(java.lang.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. |
Methods inherited from class org.gnu.gtk.event.GtkEvent |
---|
getSource, getType, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MouseMotionEvent(java.lang.Object source, EventMotion gdkEvent)
Method Detail |
---|
public Window getWindow()
public boolean getSendEvent()
public int getTimeMillis()
public double getX()
public double getY()
public ModifierType getState()
public boolean isHint()
EventMask.POINTER_MOTION_HINT_MASK
public Device getDevice()
public double getXRoot()
public double getYRoot()
public boolean isOfType(MouseMotionEvent.Type test)
public void refireIfHint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |