FixGUI Documentation
Back to summary
import "gui/view";
Window class
Top-level window.
Inherits from View.
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 the 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 get_menu(): Menu
-
Returns 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 destruction of the window.
virtual function handle_close()
-
Override to handle closing of the window. The default implementation destroys the window.
virtual function handle_resize()
-
Override to handle resizing.
virtual function handle_activate()
-
Override to handle activation of the window.