Function: FitInRect()
ts
function FitInRect(
this: void,
window: CUIWindow,
rect: Frect,
horizontal_align: number,
vertical_align: number): boolean;Move a window so it fits inside a rectangle.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | void | - |
window | CUIWindow | Window to fit. |
rect | Frect | Bounding rectangle. |
horizontal_align | number | Horizontal alignment hint. |
vertical_align | number | Vertical alignment hint. |
Returns
boolean
Whether the window was adjusted.
Remarks
The window may be moved; its size is not changed.