org.gnu.gtk.event
public class MouseEvent extends GtkEvent
See Also: MouseListener
Nested Class Summary | |
---|---|
static class | MouseEvent.Type |
Field Summary | |
---|---|
static int | BUTTON1 |
static int | BUTTON2 |
static int | BUTTON3 |
static int | DOUBLE_CLICK |
static int | SINGLE_CLICK |
static int | TRIPLE_CLICK |
static int | TRIPPLE_CLICK |
Constructor Summary | |
---|---|
MouseEvent(Object source, MouseEvent.Type type, EventButton gdkEvent)
Construct a LifeCycleEvent object for the BUTTON event. | |
MouseEvent(Object source, MouseEvent.Type type, EventScroll gdkEvent)
Construct a LifeCycleEvent object for the WHEEL_SCROLL event. | |
MouseEvent(Object source, MouseEvent.Type type, EventCrossing gdkEvent)
Construct a LifeCycleEvent object for the ENTER and LEAVE event. |
Method Summary | |
---|---|
int | getButtonPressed()
Returns the buttonPressed.
|
int | getClickType()
Returns the click type (single, double, triple). |
ScrollDirection | getDirection()
Returns the direction.
|
ModifierType | getModifierKey()
Returns the modifier key used.
|
Window | getWindow() |
double | getX()
Returns the x.
|
double | getY()
Returns the y.
|
boolean | isOfType(MouseEvent.Type test)
Test to compare events. |
Deprecated:
Returns: int
Returns: ScrollDirection
Returns: (see ModifierType)
Returns: double
Returns: double