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