Interface WindowProps
Source: WindowView.tsx
Extends
Extended by
Indexable
[
key:string]:unknown
Properties
fullscreen?
optionalfullscreen?:boolean
Whether to start the window in fullscreen mode.
Default
falseOverrides
setTitle?
optionalsetTitle?:Dispatch<SetStateAction<string>>
Function that sets the title of the window.
setIconUrl?
optionalsetIconUrl?:Dispatch<SetStateAction<string>>
Function that sets the icon URL of the window.
close?
optionalclose?: (event?:Event|UIEvent<HTMLElement,UIEvent>) =>void
Function that closes the window.
Parameters
event?
Event | UIEvent<HTMLElement, UIEvent>
Returns
void
focus?
optionalfocus?: (event?:Event|UIEvent<HTMLElement,UIEvent>,force?:boolean) =>void
Function that brings the window in focus.
Parameters
event?
Event | UIEvent<HTMLElement, UIEvent>
force?
boolean
Returns
void
active?
optionalactive?:boolean
Whether the window is currently focused and should allow interactions.
minimized?
optionalminimized?:boolean
Whether to start the window in minimized mode.
Overrides
toggleMinimized?
optionaltoggleMinimized?: (event?:Event) =>void
Function that toggles the minimized mode of the window.
Parameters
event?
Returns
void
index?
optionalindex?:number
The depth value of the window.
standalone?
optionalstandalone?:boolean
Whether the window is in standalone mode.
id?
optionalid?:string
The ID of the window.
Inherited from
app?
optionalapp?:App<WindowProps>
The app associated with the window.
Inherited from
size?
optionalsize?:Vector2
The size of the window.
Default
new Vector2(700, 400)Inherited from
position?
optionalposition?:Vector2
The position of the window.
Inherited from
options?
optionaloptions?:object
Inherited from
isFocused?
optionalisFocused?:boolean
Inherited from
lastInteraction?
optionallastInteraction?:number