UIOrganizer

This object is only available on the client.

function  UIOrganizer(var a, var b)

 Expects either a Rect specifying the rect of this UI organizer for parameter a and nil for b, or a vec2 for a and a vec2 for b, specifying the lower and upper bounds for the UI organizer rect.
 Examples:
 UIOrganizer(Rect(0, 20, 150, 250))
 UIOrganizer(vec2(0, 20), vec2(150, 250))

Parameters

```
           a Either a Rect and **b** is nil, or a vec2 and **b** is a vec2, too

           b Nil if **a** is a Rect, or a vec2 if **a** is a vec2

```

Returns

 A new instance of UIOrganizer

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

```

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

```

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

```

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

```

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

```

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

```

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

```

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

```

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

```

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