Members
(static) $body :jQuery
jQuery-wrapped document body object.
Type:
- jQuery
(static) $document :jQuery
jQuery-wrapped document object.
Type:
- jQuery
(static) $window :jQuery
jQuery-wrapped window object.
Type:
- jQuery
(static, constant) activeChangeSignal
Emitted whenever the application window becomes active or is no longer active. Handlers are called with the following parameters:
active: Boolean
, telling if the application is active or not
(static, constant) closeSignal
Emitted when the application window is about to be closed. Handlers are called with no parameters. If any of the
handlers returns false
, window closing will be prevented, if possible.
(static, constant) focusChangeSignal
Emitted whenever the application window becomes focused or is no longer focused. Handlers are called with the following parameters:
focused: Boolean
, telling if the application is focused or not
(static, constant) fullScreenChangeSignal
Emitted whenever the application enters or leaves full-screen mode. Handlers are called with the following parameters:
fullScreen
, telling if the application is currently in full-screen mode, nor not:Boolean
(static, constant) resizeSignal
Emitted whenever the window is resized. Handlers are called with the following parameters:
width: Number
, the new window widthheight: Number
, the new window height
(static, constant) screenLayoutChangeSignal
Emitted whenever the screen layout changes. Handlers are called with the following parameters:
smallScreen: Boolean
, telling if the screen is small, as defined byqui.window.isSmallScreen
landscape: Boolean
, telling if the screen orientation is landscape
Methods
(static) enterFullScreen()
Put the window full-screen mode.
(static) getHeight() → {Number}
Tell the current application window height.
Returns:
- Type
- Number
(static) getScalingFactor() → {Number}
Tell the current scaling factor.
Returns:
- Type
- Number
(static) getSmallScreenThreshold() → {Number}
Tell the current small screen threshold.
Returns:
- Type
- Number
(static) getWidth() → {Number}
Tell the current application window width.
Returns:
- Type
- Number
(static) isActive() → {Boolean}
Tell whether the application is active or not.
Returns:
- Type
- Boolean
(static) isClosing() → {Boolean}
Tell if the window is currently closing.
Returns:
- Type
- Boolean
(static) isFocused() → {Boolean}
Tell whether the application is focused or not.
Returns:
- Type
- Boolean
(static) isFullScreen() → {Boolean}
Tell whether the browser window is in full-screen mode or not.
Returns:
- Type
- Boolean
(static) isLandscape() → {Boolean}
Tell if the screen orientation is landscape (true
) or portrait (false
).
Returns:
- Type
- Boolean
(static) isSmallScreen() → {Boolean}
Tell whether the screen is small or not. A screen is considered small if its width is below a small threshold.
Returns:
- Type
- Boolean
(static) reload(pathopt)
Reload the window.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
String |
<optional> |
optional path to navigate |
(static) setScalingFactor(factor)
Set the root scaling factor. Use 1
to disable scaling.
This function may force-close current pages and re-navigate to the current path, if screen layout is changed.
Parameters:
Name | Type | Description |
---|---|---|
factor |
Number |
(static) setSmallScreenThreshold(thresholdnullable)
Set the small screen threshold. Defaults to 700
logical pixels.
You can set the threshold to 0
to disable small screen mode; setting it to a large number (e.g. 1e6
) ensures that
small screen mode is always active.
This function may force-close current pages and re-navigate to the current path, if screen layout is changed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
threshold |
Number |
<nullable> |
small screen threshold, in logical pixels; passing |