Skip to content

Class WindowsConfig

Constructor

new WindowsConfig(options)

Parameters


options

  • Optional
  • Type: WindowsConfigOptions
ts
interface WindowsConfigOptions {
	screenMargin?: number;
	titleSeparator?: string;
	minScreenSize?: Vector2;
}

References

Properties

screenMargin

The margin in CSS pixels that windows will keep between them and the edges of the screen on smaller devices

  • Type: number
  • Default: 32

titleSeparator

A string that is placed between different parts of a window title

  • Type: string
  • Default: "-"

minScreenSize

If the user's screen is smaller than these values, windows will always be maximized

  • Type: Vector2
  • Default: new Vector2(350, 350)

WARNING

Keep these values as low as possible, as this limits some functionality of the OS on devices with certain screen sizes.

Built by Prozilla