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

Calculates resizing element position and size.
파일 보기 프로젝트 열기: Zoomicon/ZUI 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CalculateBoundsForResizing void
GetBoundsForLowerLeftCorner System.Windows.Rect
GetBoundsForLowerRightCorner System.Windows.Rect
GetBoundsForUpperLeftCorner System.Windows.Rect
GetBoundsForUpperRightCorner System.Windows.Rect
ResizeBottomLeft void
ResizeBottomRight void
ResizeTopLeft void
ResizeTopRight void

공개 메소드들

메소드 설명
Resize ( double dx, double dy ) : void

Resizes the element.

ResizeController ( IResizableElement resizableElement ) : System

Initializes a new instance of the ResizeController class.

SetCursor ( Point p ) : void

Determines resizing anchor and sets appropriate Cursor.

StartResizing ( ) : void

Starts resizing of the element.

비공개 메소드들

메소드 설명
CalculateBoundsForResizing ( ) : void

Calculates bounds for resizing.

GetBoundsForLowerLeftCorner ( ) : Rect

Calculates bounds for resizing by the lower left corner.

GetBoundsForLowerRightCorner ( ) : Rect

Calculates bounds for resizing by the lower right corner.

GetBoundsForUpperLeftCorner ( ) : Rect

Calculates bounds for resizing by the upper left corner.

GetBoundsForUpperRightCorner ( ) : Rect

Calculates bounds for resizing by the upper right corner.

ResizeBottomLeft ( double dx, double dy ) : void

Resizes the window by the lower left corner of the window.

ResizeBottomRight ( double dx, double dy ) : void

Resizes the window by the bottom right corner of the window.

ResizeTopLeft ( double dx, double dy ) : void

Resizes the window by the top left corner of the window.

ResizeTopRight ( double dx, double dy ) : void

Resizes the window by the top right corner of the window.

메소드 상세

Resize() 공개 메소드

Resizes the element.
public Resize ( double dx, double dy ) : void
dx double Displacement by X-coordinate.
dy double Displacement by Y-coordinate.
리턴 void

ResizeController() 공개 메소드

Initializes a new instance of the ResizeController class.
public ResizeController ( IResizableElement resizableElement ) : System
resizableElement IResizableElement The resizable element.
리턴 System

SetCursor() 공개 메소드

Determines resizing anchor and sets appropriate Cursor.
public SetCursor ( Point p ) : void
p Point Coordinates of the mouse pointer.
리턴 void

StartResizing() 공개 메소드

Starts resizing of the element.
public StartResizing ( ) : void
리턴 void