WindowCommands

View source

Fluent builder for queuing window requests for an entity.

Call WindowCommands#window to select the target entity, then call one or more request methods to queue WindowCommand values. Each request method returns this builder, so related requests can be chained.

Examples

new WindowCommands(world)
  .window(entity)
  .resize(1280, 720)
  .requestFullscreen()

Constructor


constructor(world: World)

View source

Creates a builder for queuing requests in the supplied world.

Parameters

NameDescriptionDefault
world

World containing a CommandQueue resource.

—

Methods


window(entity: EntityHandle): WindowCommands

View source

Selects the EntityHandle that receives subsequent window requests.

Selection is retained until another entity is passed to this method. This method does not queue a command; request methods queue commands for the selected entity instead.

Parameters

NameDescriptionDefault
entity——