| 1 | interface OSGUIWindow { |
| 2 | /** |
| 3 | * Sets the title, or if `text` isn't passed, returns the current title of the window. |
| 4 | * |
| 5 | * Uses jQuery getter/setter function idiom. |
| 6 | */ |
| 7 | title(text: string): OSGUI$Window; |
| 8 | title(): string; |
| 9 | // title(text?: string): OSGUI$Window | string; // union of overloads isn't helping |
| 10 | |
| 11 | /** |
| 12 | * Returns the current title of the window. Alternative to `title()`. |
| 13 | */ |
| 14 | getTitle(): string; |
| 15 | |
| 16 | /** |
| 17 | * Closes the window. |
| 18 | */ |
| 19 | close(force?: boolean): void; |
| 20 | |
| 21 | /** |
| 22 | * Tries to focus something within the window, in this order of priority: |
| 23 | * - The last focused control within the window |
| 24 | * - A control with `class="default"` |
| 25 | * - If it's a tool window, the parent window |
| 26 | * - and otherwise the window itself (specifically `$window.$content`) |
| 27 | */ |
| 28 | focus(): void; |
| 29 | |
| 30 | /** |
| 31 | * Removes focus from the window. If focus is outside the window, it is left unchanged. |
| 32 | */ |
| 33 | blur(): void; |
| 34 | |
| 35 | /** |
| 36 | * Minimizes the window. If `$window.task.$task` is defined it will use that as a target for minimizing, otherwise the window will minimize to the bottom of the screen. |
| 37 | */ |
| 38 | minimize(): void; |
| 39 | |
| 40 | /** |
| 41 | * Restores the window from minimized state. |
| 42 | */ |
| 43 | private unminimize(): void; |
| 44 | |
| 45 | /** |
| 46 | * Maximizes the window. While maximized, the window will use `position: fixed`, so it will not scroll with the page. |
| 47 | */ |
| 48 | maximize(): void; |
| 49 | |
| 50 | /** |
| 51 | * Restores the window from minimized or maximized state. If the window is not minimized or maximized, this method does nothing. |
| 52 | */ |
| 53 | restore(): void; |
| 54 | |
| 55 | /** |
| 56 | * Centers the window in the page. |
| 57 | * You should call this after the contents of the window is fully rendered, or you've set a fixed size for the window. |
| 58 | * If you have images in the window, wait for them to load before showing and centering the window, or define a fixed size for the images. |
| 59 | */ |
| 60 | center(): void; |
no outgoing calls
no test coverage detected