UIVerticalLister

This class gets a rect and aligns given elements in a list style inside the rect. Considers properties like margin and padding between the elements.

This object is only available on the client.

function  UIVerticalLister(Rect rect, int padding, int margin)

Parameters

```
           rect The rect in which the lister aligns its elenents

           padding

           margin

```

Returns

 A new instance of UIVerticalLister

## 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

```

### placeCenter

(vec2 vec)

 Uses the given vector to create a Rect of size Rect(0, 0, vec.x, vec.y), places it in the list and centers it

Parameters

```
           vec The given size of the rect to align

```

Returns

 The aligned rect

```
           function var

```

### placeLeft

(vec2 vec)

 Uses the given vector to create a Rect of size Rect(0, 0, vec.x, vec.y), places it in the list and aligns it to the left

Parameters

```
           vec The given size of the rect to align

```

Returns

 The aligned rect

```
           function var

```

### placeRight

(vec2 vec)

 Uses the given vector to create a Rect of size Rect(0, 0, vec.x, vec.y), places it in the list and aligns it to the right

Parameters

```
           vec The given size of the rect to align

```

Returns

 The aligned rect

```
           function var

```

### hasEnoughSpace

(float vec)

 Checks if there is enough space to fit a rect with the given height into the lister's remaining rect

Parameters

```
           vec The size of the rect to test for

```

Returns

 true if there's enough space, false if not

```
           function var

```

### nextRect

(float height)

 Returns the next rect of a certain height that would be created. The rect will have the full width of the rect given to the lister.

Parameters

```
           height The height of the rect

```

Returns

 The Rect