pub fn start<C: 'static + Component>() -> (Application, Scope<C>)
This will instantiate the component, construct the
object and register it as the default
Application. You will need
Application::run() on this to actually start the
GTK event loop and activate the application.
If the component doesn't have an
Application as its top level
object, this function will panic.
let (app, scope) = vgtk::start::<MyComponent>(); let args: Vec<String> = std::env::args().collect(); std::process::exit(app.run(&args));