C# 클래스 SilverFlow.Controls.Controllers.InertiaController

Calculates inertial motion of a dragged element.
파일 보기 프로젝트 열기: Zoomicon/ZUI 1 사용 예제들

공개 메소드들

메소드 설명
GetInertialMotionParameters ( Rect hostBounds, Rect windowBounds ) : InertialMotion

Gets inertial motion parameters: distance and duration.

MoveToPoint ( Point point ) : void

Saves the last position of the moved element.

StartMotion ( Point point ) : void

An element starts its motion.

비공개 메소드들

메소드 설명
EnsureEndPointInBounds ( Vector2 vector, Rect bounds ) : Vector2

Ensures the end point is in bounds.

메소드 상세

GetInertialMotionParameters() 공개 메소드

Gets inertial motion parameters: distance and duration.
public GetInertialMotionParameters ( Rect hostBounds, Rect windowBounds ) : InertialMotion
hostBounds System.Windows.Rect The host bounds.
windowBounds System.Windows.Rect The window bounds.
리턴 InertialMotion

MoveToPoint() 공개 메소드

Saves the last position of the moved element.
public MoveToPoint ( Point point ) : void
point Point Current position.
리턴 void

StartMotion() 공개 메소드

An element starts its motion.
public StartMotion ( Point point ) : void
point Point The starting point of the motion.
리턴 void