CursorPress

This event is common to both widgets and cursors, so both are explained here.

Widget

The primary cursor press event, signifying a cursor press within the coverage area of a widget as indicated by its isInside() function. The position coordinates in the event are always in Widget level coordinates. This event only occurs if all of the following conditions are met.

Consuming this event ends the propagation of the cursor press event, in which case peers will not receive CursorPress or CursorPressing. Most controls will want to consume this event, and this behavior is the default action within Control::onCursorPress().

Introduced In:
Widget Widget
EventArgs:
Cursor_EventArgs

Cursor

Informs the the current visible cursor of a cursor press event. The position coordinates in the event are always in Screen level coordinates. While the cursor version of this event reuses the same Cursor_EventArgs, cursors cannot consume events. So whether you eat() the event or not makes no difference.

Introduced In:
Cursor
EventArgs:
Cursor_EventArgs
See also:
CursorPressing

Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:20 2007