Метод | Описание | |
---|---|---|
CenterRect ( |
||
IndentedRect ( |
Indents the given rect.
|
|
Margin ( |
||
MoveDown ( |
Moves the rect down (vertically) by the given amount. Returns an updated rect.
|
|
SplitHorizontalFlexibleMiddle ( |
||
SplitHorizontalMiddleExact ( |
||
SplitHorizontalPercentage ( |
Splits a rect into two, with the split occurring at a certain percentage of the rect's width.
|
|
SplitLeftHorizontalExact ( |
Splits the rect into two horizontal ones, with the left rect set to an exact width.
|
|
SplitRightHorizontalExact ( |
||
SplitVerticalPercentage ( |
Splits a rect into two, with the split occurring at a certain percentage of the rect's height.
|
public static CenterRect ( |
||
toCenter | ||
height | float | |
centered | ||
Результат | void |
public static IndentedRect ( |
||
source | ||
Результат |
public static Margin ( |
||
container | ||
horizontalMargin | float | |
verticalMargin | float | |
smaller | ||
Результат | void |
public static MoveDown ( |
||
rect | ||
amount | float | |
Результат |
public static SplitHorizontalFlexibleMiddle ( |
||
rect | ||
leftWidth | float | |
rightWidth | float | |
left | ||
middle | ||
right | ||
Результат | void |
public static SplitHorizontalMiddleExact ( |
||
rect | ||
middleWidth | float | |
margin | float | |
left | ||
middle | ||
right | ||
Результат | void |
public static SplitHorizontalPercentage ( |
||
rect | The rect to split. | |
percentage | float | The percentage to split the rect at. |
margin | float | The margin between the two split rects. |
left | The new left rect. | |
right | The new right rect. | |
Результат | void |
public static SplitLeftHorizontalExact ( |
||
rect | The rect to split. | |
leftWidth | float | |
margin | float | /// The amount of space between the two rects. /// |
left | The new left rect. | |
right | The new right rect. | |
Результат | void |
public static SplitRightHorizontalExact ( |
||
rect | ||
rightWidth | float | |
margin | float | |
left | ||
right | ||
Результат | void |
public static SplitVerticalPercentage ( |
||
rect | The rect to split. | |
percentage | float | The percentage to split the rect at. |
margin | float | The margin between the two split rects. |
top | The new top rect. | |
bottom | The new bottom rect. | |
Результат | void |