core :: Sys :: root_window
By default, a Window
is created, which can be refined to customize it.
However, most apps should refine this method to return a different window,
this way the app can have more than one window.
# Hook to create the first window shown to the user
#
# By default, a `Window` is created, which can be refined to customize it.
# However, most apps should refine this method to return a different window,
# this way the app can have more than one window.
fun root_window: Window do return new Window
lib/app/ui.nit:90,1--95,44
redef fun root_window do return new UiExampleWindow
lib/app/examples/ui_example.nit:88,1--51
redef fun root_window do return new HttpRequestClientWindow
lib/app/examples/http_request_example.nit:85,1--59