WindowFunction Class
Provides details about the device and view needed for layout.
The window()
function returns an object with reactive properties. "Window" is a common term that refers to the entire area the application is using on the device, which is not always the entire screen.
- width
(float): the width of the window
- height
(float): the height of the window
- size
(float2): the combined width and height of the window
- safeMargins
(float4): Margins needed on the content of the window to exclude it from all device UI and reserved areas.
- staticMargins
(float4): Like safeMargins
but does not adjust for popup controls like the soft keyboard.
- deviceMargins
(float4): (Experimental) The margins the device reports as not being complete safe for drawing as something may obstruct the view (such as the rounded corners of an iPhone X)
Drawing anythng but a background (image or brush fill) in the gradient areas is not recommended as it may be obscured by the system UI or the hardware.
Refer to SafeEdgePanel and Safe Layout for more information about safe layouts and device margins.
Location
- Namespace
- Fuse.Reactive
- Package
- Fuse.Controls.Panels 2.9.1
Interface of WindowFunction
Inherited from Expression
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
Subscribe(IContext, IListener) : IDisposable uno
See IExpression.Subscribe
for docs.
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Attached UX Attributes
GlobalKey (attached by Resource) : string ux
Implemented Interfaces
IExpression uno
ISourceLocation uno
hide