Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.Events.MouseEvent Class Reference

Mouse event. More...

Inheritance diagram for Dragengine.Gui.Events.MouseEvent:
Dragengine.Gui.Events.ModifiableEvent Dragengine.Gui.Events.Event

Public Member Functions

int getButton ()
 Mouse button. More...
 
int getDevice ()
 Device index. More...
 
Point getPosition ()
 Mouse position. More...
 
InputEventSource getSystem ()
 Source system. More...
 
MouseEvent new (Object source, int id, int button, int modifiers, InputEventSource system, int device)
 Create mouse event. More...
 
MouseEvent new (Object source, int id, int button, int modifiers, int device)
 Create mouse event. More...
 
MouseEvent new (Object source, int id, int button, int modifiers, Point position, InputEventSource system, int device)
 Create mouse event. More...
 
MouseEvent new (Object source, int id, int button, int modifiers, Point position, int device)
 Create mouse event. More...
 
MouseEvent relocate (Point position)
 Create copy of a mouse event with different position. More...
 
- Public Member Functions inherited from Dragengine.Gui.Events.ModifiableEvent
int getModifiers ()
 Modifier keys. More...
 
ModifiableEvent new (Object source, int id, int modifiers)
 Create event. More...
 
- Public Member Functions inherited from Dragengine.Gui.Events.Event
int getIdentifier ()
 Event identifier. More...
 
Object getSource ()
 Event source. More...
 
Event new (Object source, int id)
 Create event. More...
 

Static Public Member Functions

static bool isMouseEvent (int identifier)
 Event identifier is a mouse event identifier. More...
 

Static Public Attributes

static final int idMouseEnter = 24
 Mouse entered event identifier. More...
 
static final int idMouseLeave = 25
 Mouse left event identifier. More...
 
static final int idMouseMoved = 22
 Mouse move event identifier. More...
 
static final int idMousePressed = 20
 Mouse button press event identifier. More...
 
static final int idMouseReleased = 21
 Mouse button released event identifier. More...
 
static final int idMouseWheeled = 23
 Mouse wheel move event identifier. More...
 
- Static Public Attributes inherited from Dragengine.Gui.Events.ModifiableEvent
static final int alt = 4
 Alt key pressed. More...
 
static final int control = 2
 Control key pressed. More...
 
static final int shift = 1
 Shift key pressed. More...
 

Detailed Description

Mouse event.

Member Function Documentation

◆ getButton()

int Dragengine.Gui.Events.MouseEvent.getButton ( )

Mouse button.

◆ getDevice()

int Dragengine.Gui.Events.MouseEvent.getDevice ( )

Device index.

◆ getPosition()

Point Dragengine.Gui.Events.MouseEvent.getPosition ( )

Mouse position.

◆ getSystem()

InputEventSource Dragengine.Gui.Events.MouseEvent.getSystem ( )

Source system.

Version
1.6

◆ isMouseEvent()

static bool Dragengine.Gui.Events.MouseEvent.isMouseEvent ( int  identifier)
static

Event identifier is a mouse event identifier.

◆ new() [1/4]

MouseEvent Dragengine.Gui.Events.MouseEvent.new ( Object  source,
int  id,
int  button,
int  modifiers,
InputEventSource  system,
int  device 
)

Create mouse event.

Version
1.6

◆ new() [2/4]

MouseEvent Dragengine.Gui.Events.MouseEvent.new ( Object  source,
int  id,
int  button,
int  modifiers,
int  device 
)

◆ new() [3/4]

MouseEvent Dragengine.Gui.Events.MouseEvent.new ( Object  source,
int  id,
int  button,
int  modifiers,
Point  position,
InputEventSource  system,
int  device 
)

Create mouse event.

Version
1.6

◆ new() [4/4]

MouseEvent Dragengine.Gui.Events.MouseEvent.new ( Object  source,
int  id,
int  button,
int  modifiers,
Point  position,
int  device 
)

◆ relocate()

MouseEvent Dragengine.Gui.Events.MouseEvent.relocate ( Point  position)

Create copy of a mouse event with different position.

Member Data Documentation

◆ idMouseEnter

final int Dragengine.Gui.Events.MouseEvent.idMouseEnter = 24
static

Mouse entered event identifier.

◆ idMouseLeave

final int Dragengine.Gui.Events.MouseEvent.idMouseLeave = 25
static

Mouse left event identifier.

◆ idMouseMoved

final int Dragengine.Gui.Events.MouseEvent.idMouseMoved = 22
static

Mouse move event identifier.

◆ idMousePressed

final int Dragengine.Gui.Events.MouseEvent.idMousePressed = 20
static

Mouse button press event identifier.

◆ idMouseReleased

final int Dragengine.Gui.Events.MouseEvent.idMouseReleased = 21
static

Mouse button released event identifier.

◆ idMouseWheeled

final int Dragengine.Gui.Events.MouseEvent.idMouseWheeled = 23
static

Mouse wheel move event identifier.


The documentation for this class was generated from the following file: