UIArbitraryVerticalSplitter

This class gets a rect and creates multiple new rects by arbitrarily splitting the given rect vertically n times, creating n + 1 new rects. Considers properties like margin and padding between the new rects.

This object is only available on the client.

function  UIArbitraryVerticalSplitter(Rect rect, int padding, int margin, float... splits)

Parameters

```
           rect The rect to split

           padding

           margin

           splits The x coordinates of the splits in pixels

```

Returns

 A new instance of UIArbitraryVerticalSplitter

## Member Functions

```
           function

```

### setPadding

(int left, int right, int top, int bottom)

Parameters

```
           left padding on the left side

           right padding on the right side

           top padding on the top side

           bottom padding on the bottom side

```

Returns

 nothing

```
           function

```

### setMargin

(int left, int right, int top, int bottom)

Parameters

```
           left margin on the left side

           right margin on the right side

           top margin on the top side

           bottom margin on the bottom side

```

Returns

 nothing

```
           function

```

### getLeftRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getRightRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getTopRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getBottomRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getCenterRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getTopLeftRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getTopRightRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getBottomLeftRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function

```

### getBottomRightRect

(Rect rect)

 Aligns the given rect to a specific side

Parameters

```
           rect The given rect

```

Returns

 nothing

```
           function var

```

### placeElementTop

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementLeft

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementRight

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementBottom

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementCenter

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementTopLeft

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementTopRight

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementBottomLeft

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### placeElementBottomRight

(UIElement element)

 Aligns the given UI element to a specific side

Parameters

```
           element The given UI element

```

Returns

 A reference to the given UI element

```
           function var

```

### partition

(int index)

 Retrieves one of the new created rects

Parameters

```
           index The index of the retrieved rect, from 0 to splits

```

Returns

 A new rect, size was determined by splitting