domain/windows/window-bounds
Interfaces
Section titled “Interfaces”WindowBounds
Section titled “WindowBounds”Defined in: app/src/domain/windows/window-bounds.ts:2
Where a window is on the screens, in screen pixels.
Properties
Section titled “Properties”height
Section titled “height”
readonlyheight:number
Defined in: app/src/domain/windows/window-bounds.ts:6
readonlywidth:number
Defined in: app/src/domain/windows/window-bounds.ts:5
readonlyx:number
Defined in: app/src/domain/windows/window-bounds.ts:3
readonlyy:number
Defined in: app/src/domain/windows/window-bounds.ts:4
Variables
Section titled “Variables”minimumSize
Section titled “minimumSize”
constminimumSize:object
Defined in: app/src/domain/windows/window-bounds.ts:10
The smallest window that the browser opens.
Type Declaration
Section titled “Type Declaration”height
Section titled “height”
readonlyheight:320=320
readonlywidth:480=480
Functions
Section titled “Functions”popupBounds()
Section titled “popupBounds()”popupBounds(
features,opener,workAreas?):WindowBounds
Defined in: app/src/domain/windows/window-bounds.ts:70
Where a popup that a page opens goes: the size and position that the page asked for in
the features of window.open, or else beside the window of the page. As in other
browsers, the popup lies on a screen and is at most as large as it: on the screen of the
position that the page asked for, or else on the screen of the page’s window.
Parameters
Section titled “Parameters”features
Section titled “features”string
The features, such as width=500,height=600,left=20,top=40.
opener
Section titled “opener”The bounds of the window of the page.
workAreas?
Section titled “workAreas?”readonly WindowBounds[] = []
The work areas of the screens.
Returns
Section titled “Returns”visibleBounds()
Section titled “visibleBounds()”visibleBounds(
bounds,workAreas):WindowBounds|undefined
Defined in: app/src/domain/windows/window-bounds.ts:23
The bounds of a window if enough of its top edge lies on one of the screens to grab it, at least at the smallest size; otherwise nothing, and the window opens where the system puts it. A window larger than that screen, such as one from a larger screen before, fits the screen, so that its title bar and the buttons on it are on the screen.
Parameters
Section titled “Parameters”bounds
Section titled “bounds”Where the window was.
workAreas
Section titled “workAreas”readonly WindowBounds[]
The work areas of the screens now.
Returns
Section titled “Returns”WindowBounds | undefined