API Reference / @gtkx/runtime / createApplication
Function: createApplication()
createApplication<
T,P>(base,props):T
Defined in: packages/runtime/src/application-class.ts:110
Constructs an application supported by runApplication and quitApplication. Its derived GType lets GTKX avoid repeating GLib's command-line parse, which would crash.
Type Parameters
T
T extends CommandLineApplication
P
P
Parameters
base
ApplicationClass<T, P>
The application class, such as Gtk.Application.
props
P
Construct properties, passed through unchanged.
Returns
T
An instance derived from base, with one registered GType per base class.
Remarks
Construction does not claim the process-wide default. Any default assigned by GLib during construction is released; runApplication claims it when the application starts.