Package totalcross.ui.event
Class MouseEvent
- java.lang.Object
-
- totalcross.ui.event.Event
-
- totalcross.ui.event.PenEvent
-
- totalcross.ui.event.MouseEvent
-
- All Implemented Interfaces:
java.lang.Cloneable
public class MouseEvent extends PenEvent
MouseEvent is a mouse move, in a control or out a control events. Only occurs on devices with a mouse, like Windows 32 and Linux desktop.- Since:
- TotalCross 1.27
-
-
Field Summary
Fields Modifier and Type Field Description static intMOUSE_INThe event type for a mouse moving into a control.static intMOUSE_MOVEThe event type for a mouse moving over a control.static intMOUSE_OUTThe event type for a mouse moving outside a control.static intMOUSE_WHEELThe event type for a mouse wheel.intwheelDirection-
Fields inherited from class totalcross.ui.event.PenEvent
absoluteX, absoluteY, EVENT_NAME, modifiers, PEN_DOWN, PEN_DRAG, PEN_DRAG_END, PEN_DRAG_START, PEN_UP, x, y
-
-
Constructor Summary
Constructors Constructor Description MouseEvent()
-
Method Summary
-
Methods inherited from class totalcross.ui.event.PenEvent
clone, getEventName, toString, update
-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, touch
-
-
-
-
Field Detail
-
wheelDirection
public int wheelDirection
- See Also:
DragEvent
-
MOUSE_MOVE
public static final int MOUSE_MOVE
The event type for a mouse moving over a control. This is a hardware event.- See Also:
- Constant Field Values
-
MOUSE_IN
public static final int MOUSE_IN
The event type for a mouse moving into a control. This is a software event (computed internally).- See Also:
- Constant Field Values
-
MOUSE_OUT
public static final int MOUSE_OUT
The event type for a mouse moving outside a control. This is a software event (computed internally).- See Also:
- Constant Field Values
-
MOUSE_WHEEL
public static final int MOUSE_WHEEL
The event type for a mouse wheel. This is a hardware event.- See Also:
- Constant Field Values
-
-