Skip to content

API Reference / @gtkx/runtime / ApplicationLike

Type Alias: ApplicationLike

ApplicationLike = object

Defined in: runtime/dist/lifecycle.d.ts:5

Minimal structural interface of a GTK4/GIO application needed to register, run, and shut it down, plus the signals its lifecycle helpers connect to.

Methods

activate()

activate(): void

Defined in: runtime/dist/lifecycle.d.ts:8

Returns

void


getIsRegistered()

getIsRegistered(): boolean

Defined in: runtime/dist/lifecycle.d.ts:6

Returns

boolean


getWindows()?

optional getWindows(): object[]

Defined in: runtime/dist/lifecycle.d.ts:11

Returns

object[]


on()

on(signal, handler): unknown

Defined in: runtime/dist/lifecycle.d.ts:13

Parameters

signal

"activate" | "shutdown"

handler

() => void

Returns

unknown


quit()

quit(): void

Defined in: runtime/dist/lifecycle.d.ts:9

Returns

void


register()

register(cancellable): boolean

Defined in: runtime/dist/lifecycle.d.ts:7

Parameters

cancellable

null

Returns

boolean


removeWindow()?

optional removeWindow(window): void

Defined in: runtime/dist/lifecycle.d.ts:12

Parameters

window

object

Returns

void


run()

run(argv): number

Defined in: runtime/dist/lifecycle.d.ts:10

Parameters

argv

string[]

Returns

number

Released under the MPL-2.0 License.