C# Class UMD.HCIL.Piccolo.Event.PInputEventArgs

PInputEventArgs is used to pass keyboard and mouse event data to PInputEventListeners.
This class has methods for normal event properties such as event modifier keys and event canvas location.

In addition it has methods to get the mouse position and delta in a variety of coordinate systems.

Last of all, it provides access to the dispatch manager that can be queried to find the current mouse over, mouse focus, and keyboard focus.

Datei anzeigen Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Methods

Method Description
DispatchTo ( object sender ) : void

Raises the appropriate event on the given node.

GetDeltaRelativeTo ( PNode nodeOnPath ) : SizeF

Return the delta between the last and current mouse positions relative to a given node on the pick path.

GetPositionRelativeTo ( PNode nodeOnPath ) : PointF

Return the mouse position relative to a given node on the pick path.

PInputEventArgs ( PInputManager inputManager, EventArgs e, PInputType type ) : System

Constructs a new PInputEventArgs

PopCursor ( ) : void

Pop the cursor on top of the cursorStack and set it as the canvas cursor.

PushCursor ( Cursor cursor ) : void

Set the canvas cursor, and remember the previous cursor on the cursor stack.

ToString ( ) : string

Overridden. Returns a string representation of this object for debugging purposes.

Method Details

DispatchTo() public method

Raises the appropriate event on the given node.
public DispatchTo ( object sender ) : void
sender object The node for which the event will be raised.
return void

GetDeltaRelativeTo() public method

Return the delta between the last and current mouse positions relative to a given node on the pick path.
public GetDeltaRelativeTo ( PNode nodeOnPath ) : SizeF
nodeOnPath PNode /// The returned delta will be in the local coordinate system of this node. ///
return System.Drawing.SizeF

GetPositionRelativeTo() public method

Return the mouse position relative to a given node on the pick path.
public GetPositionRelativeTo ( PNode nodeOnPath ) : PointF
nodeOnPath PNode /// The returned position will be in the local coordinate system of this node. ///
return System.Drawing.PointF

PInputEventArgs() public method

Constructs a new PInputEventArgs
public PInputEventArgs ( PInputManager inputManager, EventArgs e, PInputType type ) : System
inputManager PInputManager The input manager that dispatched this event.
e System.EventArgs An EventArgs that contains the event data.
type PInputType The type of input event.
return System

PopCursor() public method

Pop the cursor on top of the cursorStack and set it as the canvas cursor.
public PopCursor ( ) : void
return void

PushCursor() public method

Set the canvas cursor, and remember the previous cursor on the cursor stack.
public PushCursor ( Cursor cursor ) : void
cursor System.Windows.Forms.Cursor The new canvas cursor.
return void

ToString() public method

Overridden. Returns a string representation of this object for debugging purposes.
public ToString ( ) : string
return string