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.

파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer 1 사용 예제들

공개 메소드들

메소드 설명
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