C# Класс 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.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

DispatchTo() публичный Метод

Raises the appropriate event on the given node.
public DispatchTo ( object sender ) : void
sender object The node for which the event will be raised.
Результат void

GetDeltaRelativeTo() публичный Метод

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. ///
Результат System.Drawing.SizeF

GetPositionRelativeTo() публичный Метод

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. ///
Результат System.Drawing.PointF

PInputEventArgs() публичный Метод

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.
Результат System

PopCursor() публичный Метод

Pop the cursor on top of the cursorStack and set it as the canvas cursor.
public PopCursor ( ) : void
Результат void

PushCursor() публичный Метод

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.
Результат void

ToString() публичный Метод

Overridden. Returns a string representation of this object for debugging purposes.
public ToString ( ) : string
Результат string