|
MotionEvent Struct Reference
[System Services]
Inherits Event.
Inherited by MotionEventImpl.
List of all members.
Public Methods |
| virtual bool | initialize (int x, int y, int buttons)=0 |
| virtual int | getX () const=0 |
| virtual int | getY () const=0 |
| virtual int | getRelX () const=0 |
| virtual int | getRelY () const=0 |
| virtual bool | getButtonState (int button) const=0 |
Detailed Description
Description of a mouse motion event. All coordinates are in screen space.
Member Function Documentation
| virtual bool MotionEvent::getButtonState |
( |
int |
button |
) |
const [pure virtual] |
|
|
|
Get the status of a particular button.
-
Returns:
-
True if the button is currently pressed.
-
Scripted as:
-
bool getButtonState(int)
|
| virtual int MotionEvent::getRelX |
( |
|
) |
const [pure virtual] |
|
|
|
Get the relative change in X position since the last event. -
Scripted as:
-
[r/o int] relX
|
| virtual int MotionEvent::getRelY |
( |
|
) |
const [pure virtual] |
|
|
|
Get the relative change in Y position since the last event. -
Scripted as:
-
[r/o int] relY
|
| virtual int MotionEvent::getX |
( |
|
) |
const [pure virtual] |
|
|
|
Get the current X position. -
Scripted as:
-
[r/o int] x
|
| virtual int MotionEvent::getY |
( |
|
) |
const [pure virtual] |
|
|
|
Get the current Y position. -
Scripted as:
-
[r/o int] y
|
| virtual bool MotionEvent::initialize |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
buttons |
|
) |
[pure virtual] |
|
The documentation for this struct was generated from the following file:
Flat Four Engine
Copyright (C) 2001 by 379, Inc.
|
This page generated by Doxygen
|
|