# FixGUI Documentation

Back to summary

`import "gui/view";`

## Window class

Top-level window.

Inherits from View.

- Initialization
- Properties
- Event handlers

### Initialization

`static function create(title: String, width: Integer, height: Integer, flags: Integer): Window`
  Creates a new top-level window with given content size and flags:
  WIN_RESIZABLE - allow resizing of the window by the user
  WIN_CENTER - center the window
  WIN_MAXIMIZE - show the window maximized
  WIN_MINIMIZE - show the window minimized
  WIN_MENUBAR - create a menubar
  WIN_STATUSBAR - create a statusbar

### Properties

`function set_title(title: String)`
  Sets the title of the window.
`function get_title(): String`
  Returns the title of the window.
`function set_minimum_size(width: Integer, height: Integer)`
  Sets minimum content size of the window.
`function is_maximized(): Boolean`
  Returns whether the window is maximized.
`function set_menu(menu: Menu)`
  Sets the main menu of the window.
`function set_status_text(text: String)`
  Sets the status text.

### Event handlers

`virtual function handle_destroy()`
  Override to handle window destruction.
`virtual function handle_close()`
  Override to handle window closing. Default implementation destroys the window.
`virtual function handle_resize()`
  Override to handle resizing.
`virtual function handle_activate()`
  Override to handle activation of the window.