Drag[en]gine Script Module DragonScript Script API  1.0
MouseEvent Class Reference

Mouse event. More...

Inheritance diagram for MouseEvent:
ModifiableEvent Event

Public Member Functions

int getButton ()
 Mouse button. More...
 
Point getPosition ()
 Mouse position. More...
 
MouseEvent new (Object source, int id, int button, int modifiers)
 Create mouse event. More...
 
MouseEvent new (Object source, int id, int button, int modifiers, Point position)
 Create mouse event. More...
 
MouseEvent relocate (Point position)
 Create copy of a mouse event with different position. More...
 
- Public Member Functions inherited from ModifiableEvent
int getModifiers ()
 Modifier keys. More...
 
ModifiableEvent new (Object source, int id, int modifiers)
 Create event. More...
 
- Public Member Functions inherited from 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...
 

Public Attributes

final int ID_MOUSE_ENTER = 23
 Mouse entered event identifier. More...
 
final int ID_MOUSE_LEAVE = 24
 Mouse left event identifier. More...
 
final int ID_MOUSE_MOVED = 22
 Mouse move event identifier. More...
 
final int ID_MOUSE_PRESSED = 20
 Mouse button press event identifier. More...
 
final int ID_MOUSE_RELEASED = 21
 Mouse button released event identifier. More...
 
- Public Attributes inherited from ModifiableEvent
final int ALT = 0h4
 Alt key pressed. More...
 
final int CONTROL = 0h2
 Control key pressed. More...
 
final int SHIFT = 0h1
 Shift key pressed. More...
 

Detailed Description

Mouse event.

Author
Roland Pl├╝ss
Version
1.0

Member Function Documentation

§ getButton()

int getButton ( )

Mouse button.

§ getPosition()

Point getPosition ( )

Mouse position.

§ isMouseEvent()

static bool isMouseEvent ( int  identifier)
static

Event identifier is a mouse event identifier.

§ new() [1/2]

MouseEvent new ( Object  source,
int  id,
int  button,
int  modifiers 
)

Create mouse event.

§ new() [2/2]

MouseEvent new ( Object  source,
int  id,
int  button,
int  modifiers,
Point  position 
)

Create mouse event.

§ relocate()

MouseEvent relocate ( Point  position)

Create copy of a mouse event with different position.

Member Data Documentation

§ ID_MOUSE_ENTER

final int ID_MOUSE_ENTER = 23

Mouse entered event identifier.

§ ID_MOUSE_LEAVE

final int ID_MOUSE_LEAVE = 24

Mouse left event identifier.

§ ID_MOUSE_MOVED

final int ID_MOUSE_MOVED = 22

Mouse move event identifier.

§ ID_MOUSE_PRESSED

final int ID_MOUSE_PRESSED = 20

Mouse button press event identifier.

§ ID_MOUSE_RELEASED

final int ID_MOUSE_RELEASED = 21

Mouse button released event identifier.


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