Skip to content

Windows

Windows are the top-level containers for GUI applications.

Creating a Window

gui_init("com.example.app");
let window = gui_window("My Application", 800, 600);

Parameters

  • title (string): Window title
  • width (number): Window width in pixels
  • height (number): Window height in pixels
  • id (string, optional): Custom widget ID

Example

gui_init("com.example.demo");
let window = gui_window("Demo App", 400, 300, "main_window");
let label = gui_label("Welcome!");
gui_add(window, label);
gui_run();