Skip to content

@jsvision/ui / DesktopLoopSeam

Interface: DesktopLoopSeam ​

Defined in: ui/src/desktop/desktop.ts:27

The slice of the event loop the desktop needs, injected by createApplication: pointer capture for drag/resize, command emit/enablement, and focus for raise-on-click.

Methods ​

emitCommand() ​

emitCommand(command, arg?): void

Defined in: ui/src/desktop/desktop.ts:33

Emit a command through the loop.

Parameters ​

command ​

string

arg? ​

unknown

Returns ​

void


focusInto() ​

focusInto(view): void

Defined in: ui/src/desktop/desktop.ts:39

Focus into a container, descending to its inner focusable view.

Parameters ​

view ​

View

Returns ​

void


focusView() ​

focusView(view): void

Defined in: ui/src/desktop/desktop.ts:37

Focus a view.

Parameters ​

view ​

View

Returns ​

void


isCommandEnabled() ​

isCommandEnabled(command): boolean

Defined in: ui/src/desktop/desktop.ts:35

Whether a command is currently enabled.

Parameters ​

command ​

string

Returns ​

boolean


releaseCapture() ​

releaseCapture(): void

Defined in: ui/src/desktop/desktop.ts:31

Release the pointer capture.

Returns ​

void


setCapture() ​

setCapture(view): void

Defined in: ui/src/desktop/desktop.ts:29

Capture the pointer to a view for the duration of a drag or resize.

Parameters ​

view ​

View

Returns ​

void