Package libavg :: Module avg :: Class MouseEvent

Class MouseEvent




Raised when a mouse-related event occurs.

Instance Methods

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from Event
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
Properties
  button
The button that caused the event (ro).
  cursorid
Always -1 for mouse events, but can be used to handle mouse and tracking events at once (ro).
  lastdownpos
The position of the last mouse down event with the same button.
  leftbuttonstate
  middlebuttonstate
  node
The node that the event handler was declared in (ro).
  pos
Position in the global coordinate system (ro).
  rightbuttonstate
  source
Always MOUSE
  speed
Current speed of the mouse in pixels per millisecond as a 2-component vector (ro).
  x
x position in the global coordinate system (ro).
  y
y position in the global coordinate system (ro).

Inherited from object: __class__

    Inherited from Event
  type
One of KEYUP, KEYDOWN, CURSORMOTION, CURSORUP, CURSORDOWN, CURSOROVER, CURSOROUT, RESIZE or QUIT.
  when
The timestamp of the event in milliseconds.
Property Details

button

The button that caused the event (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

cursorid

Always -1 for mouse events, but can be used to handle mouse and tracking events at once (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

lastdownpos

The position of the last mouse down event with the same button. Useful for implementing dragging (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

leftbuttonstate

Get Method:
unreachable.<unnamed Boost.Python function>(...)

middlebuttonstate

Get Method:
unreachable.<unnamed Boost.Python function>(...)

node

The node that the event handler was declared in (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

pos

Position in the global coordinate system (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

rightbuttonstate

Get Method:
unreachable.<unnamed Boost.Python function>(...)

source

Always MOUSE
Get Method:
unreachable.<unnamed Boost.Python function>(...)

speed

Current speed of the mouse in pixels per millisecond as a 2-component vector (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

x

x position in the global coordinate system (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)

y

y position in the global coordinate system (ro).
Get Method:
unreachable.<unnamed Boost.Python function>(...)