C# 클래스 FullInspector.Internal.fiRectUtility

Contains common functions to help manipulate rects.
파일 보기 프로젝트 열기: jacobdufault/fullinspector

공개 메소드들

메소드 설명
CenterRect ( Rect toCenter, float height, Rect &centered ) : void
IndentedRect ( Rect source ) : Rect

Indents the given rect.

Margin ( Rect container, float horizontalMargin, float verticalMargin, Rect &smaller ) : void
MoveDown ( Rect rect, float amount ) : Rect

Moves the rect down (vertically) by the given amount. Returns an updated rect.

SplitHorizontalFlexibleMiddle ( Rect rect, float leftWidth, float rightWidth, Rect &left, Rect &middle, Rect &right ) : void
SplitHorizontalMiddleExact ( Rect rect, float middleWidth, float margin, Rect &left, Rect &middle, Rect &right ) : void
SplitHorizontalPercentage ( Rect rect, float percentage, float margin, Rect &left, Rect &right ) : void

Splits a rect into two, with the split occurring at a certain percentage of the rect's width.

SplitLeftHorizontalExact ( Rect rect, float leftWidth, float margin, Rect &left, Rect &right ) : void

Splits the rect into two horizontal ones, with the left rect set to an exact width.

SplitRightHorizontalExact ( Rect rect, float rightWidth, float margin, Rect &left, Rect &right ) : void
SplitVerticalPercentage ( Rect rect, float percentage, float margin, Rect &top, Rect &bottom ) : void

Splits a rect into two, with the split occurring at a certain percentage of the rect's height.

메소드 상세

CenterRect() 공개 정적인 메소드

public static CenterRect ( Rect toCenter, float height, Rect &centered ) : void
toCenter UnityEngine.Rect
height float
centered UnityEngine.Rect
리턴 void

IndentedRect() 공개 정적인 메소드

Indents the given rect.
public static IndentedRect ( Rect source ) : Rect
source UnityEngine.Rect
리턴 UnityEngine.Rect

Margin() 공개 정적인 메소드

public static Margin ( Rect container, float horizontalMargin, float verticalMargin, Rect &smaller ) : void
container UnityEngine.Rect
horizontalMargin float
verticalMargin float
smaller UnityEngine.Rect
리턴 void

MoveDown() 공개 정적인 메소드

Moves the rect down (vertically) by the given amount. Returns an updated rect.
public static MoveDown ( Rect rect, float amount ) : Rect
rect UnityEngine.Rect
amount float
리턴 UnityEngine.Rect

SplitHorizontalFlexibleMiddle() 공개 정적인 메소드

public static SplitHorizontalFlexibleMiddle ( Rect rect, float leftWidth, float rightWidth, Rect &left, Rect &middle, Rect &right ) : void
rect UnityEngine.Rect
leftWidth float
rightWidth float
left UnityEngine.Rect
middle UnityEngine.Rect
right UnityEngine.Rect
리턴 void

SplitHorizontalMiddleExact() 공개 정적인 메소드

public static SplitHorizontalMiddleExact ( Rect rect, float middleWidth, float margin, Rect &left, Rect &middle, Rect &right ) : void
rect UnityEngine.Rect
middleWidth float
margin float
left UnityEngine.Rect
middle UnityEngine.Rect
right UnityEngine.Rect
리턴 void

SplitHorizontalPercentage() 공개 정적인 메소드

Splits a rect into two, with the split occurring at a certain percentage of the rect's width.
public static SplitHorizontalPercentage ( Rect rect, float percentage, float margin, Rect &left, Rect &right ) : void
rect UnityEngine.Rect The rect to split.
percentage float The percentage to split the rect at.
margin float The margin between the two split rects.
left UnityEngine.Rect The new left rect.
right UnityEngine.Rect The new right rect.
리턴 void

SplitLeftHorizontalExact() 공개 정적인 메소드

Splits the rect into two horizontal ones, with the left rect set to an exact width.
public static SplitLeftHorizontalExact ( Rect rect, float leftWidth, float margin, Rect &left, Rect &right ) : void
rect UnityEngine.Rect The rect to split.
leftWidth float
margin float /// The amount of space between the two rects. ///
left UnityEngine.Rect The new left rect.
right UnityEngine.Rect The new right rect.
리턴 void

SplitRightHorizontalExact() 공개 정적인 메소드

public static SplitRightHorizontalExact ( Rect rect, float rightWidth, float margin, Rect &left, Rect &right ) : void
rect UnityEngine.Rect
rightWidth float
margin float
left UnityEngine.Rect
right UnityEngine.Rect
리턴 void

SplitVerticalPercentage() 공개 정적인 메소드

Splits a rect into two, with the split occurring at a certain percentage of the rect's height.
public static SplitVerticalPercentage ( Rect rect, float percentage, float margin, Rect &top, Rect &bottom ) : void
rect UnityEngine.Rect The rect to split.
percentage float The percentage to split the rect at.
margin float The margin between the two split rects.
top UnityEngine.Rect The new top rect.
bottom UnityEngine.Rect The new bottom rect.
리턴 void