|
| nil | set_widget (child: Widget|nil, resources: string|nil, padding: number|nil) |
| | Replaces the root widget. Call set_widget(nil) first if a layout was previously applied. More...
|
| |
| nil | set_focused_widget (widget: Widget) |
| | Moves keyboard focus to the specified widget within this window. More...
|
| |
| nil | set_pos (x: number, y: number) |
| | Moves the window's bottom-left corner to the given position. More...
|
| |
| nil | close () |
| | Closes and removes the window (effective at the start of the next frame). More...
|
| |
| nil | show () |
| | Makes the window visible (effective at the start of the next frame). More...
|
| |
| nil | hide () |
| | Hides the window without destroying it (effective at the start of the next frame). More...
|
| |
| nil | set_transparency (alpha: number) |
| | Sets the global alpha transparency for the entire window (0.0 = invisible, 1.0 = fully opaque). More...
|
| |
| nil | set_minimum_size (width: number, height: number) |
| | Sets the minimum dimensions the user can resize the window to (default 2×2). More...
|
| |
| nil | set_maximum_size (width: number, height: number) |
| | Sets the maximum dimensions the user can resize the window to. More...
|
| |
| nil | refresh () |
| | Forces a full redraw of all widgets in this window at the start of the next frame. More...
|
| |
| Widget | add_child (child: Widget, alignment: integer, resource: string|nil) |
| | Adds a pre-constructed widget to the root widget with the given alignment and optional resource string. More...
|
| |
| nil | remove_child (child: Widget) |
| | Removes the given widget from the root widget. More...
|
| |
| Text | create_text (alignment: Alignment, text: string) |
| | Creates and adds a Text widget. More...
|
| |
| Text | create_text (resource: string, alignment: Alignment, text: string) |
| | Creates and adds a Text widget, loading its style from a resource string. More...
|
| |
| Panel | create_panel (alignment: Alignment) |
| | Creates and adds a Panel widget. More...
|
| |
| Panel | create_panel (resource: string, alignment: Alignment) |
| | Creates and adds a Panel widget, loading its style from a resource string. More...
|
| |
| Tooltip | create_tooltip (text: string, x: number, y: number) |
| | Creates and adds a Tooltip widget hanging from the given position. More...
|
| |
| Tooltip | create_tooltip (resource: string, text: string, x: number, y: number) |
| | Creates and adds a Tooltip widget hanging from the given position, loading its style from a resource string. More...
|
| |
| Box | create_box (alignment: Alignment) |
| | Creates and adds a Box widget (bordered panel). More...
|
| |
| Box | create_box (resource: string, alignment: Alignment) |
| | Creates and adds a Box widget (bordered panel), loading its style from a resource string. More...
|
| |
| Button | create_button (alignment: Alignment) |
| | Creates and adds a Button widget. More...
|
| |
| Button | create_button (resource: string, alignment: Alignment) |
| | Creates and adds a Button widget, loading its style from a resource string. More...
|
| |
| ToggleButton | create_toggle_button (alignment: Alignment) |
| | Creates and adds a ToggleButton widget. More...
|
| |
| ToggleButton | create_toggle_button (resource: string, alignment: Alignment) |
| | Creates and adds a ToggleButton widget, loading its style from a resource string. More...
|
| |
| RadioButton | create_radio_button (alignment: Alignment) |
| | Creates and adds a RadioButton widget. More...
|
| |
| RadioButton | create_radio_button (resource: string, alignment: Alignment) |
| | Creates and adds a RadioButton widget, loading its style from a resource string. More...
|
| |
| HLine | create_hline (alignment: Alignment) |
| | Creates and adds a horizontal Line widget. More...
|
| |
| HLine | create_hline (resource: string, alignment: Alignment) |
| | Creates and adds a horizontal Line widget, loading its style from a resource string. More...
|
| |
| VLine | create_vline (alignment: Alignment) |
| | Creates and adds a vertical Line widget. More...
|
| |
| VLine | create_vline (resource: string, alignment: Alignment) |
| | Creates and adds a vertical Line widget, loading its style from a resource string. More...
|
| |
| Frame | create_frame (alignment: Alignment, title: string) |
| | Creates and adds a Frame widget with the given title. More...
|
| |
| Frame | create_frame (resource: string, alignment: Alignment, title: string) |
| | Creates and adds a Frame widget with the given title, loading its style from a resource string. More...
|
| |
| TextEdit | create_text_edit (alignment: Alignment, text: string|nil) |
| | Creates and adds a TextEdit widget with optional initial text. More...
|
| |
| TextEdit | create_text_edit (resource: string, alignment: Alignment, text: string|nil) |
| | Creates and adds a TextEdit widget, loading its style from a resource string. More...
|
| |
| RichTextArea | create_rich_text_area (alignment: Alignment, bbcode: string|nil) |
| | Creates and adds a RichTextArea widget with the given alignment and optional BBCode markup. More...
|
| |
| RichTextArea | create_rich_text_area (resource: string, alignment: Alignment, bbcode: string|nil) |
| | Creates and adds a RichTextArea widget, loading its style from a resource string. More...
|
| |
| Image | create_image (alignment: Alignment) |
| | Creates and adds an Image widget. More...
|
| |
| Image | create_image (resource: string, alignment: Alignment) |
| | Creates and adds an Image widget, loading its style from a resource string. More...
|
| |
| Image | create_image (resource: string, alignment: Alignment, autoresize: boolean, fixedsize: boolean) |
| | Creates and adds an Image widget with auto-resize and fixed-size options. More...
|
| |
| VScrollBar | create_vscrollbar (alignment: Alignment) |
| | Creates and adds a vertical ScrollBar widget. More...
|
| |
| VScrollBar | create_vscrollbar (resource: string, alignment: Alignment) |
| | Creates and adds a vertical ScrollBar widget, loading its style from a resource string. More...
|
| |
| HScrollBar | create_hscrollbar (alignment: Alignment) |
| | Creates and adds a horizontal ScrollBar widget. More...
|
| |
| HScrollBar | create_hscrollbar (resource: string, alignment: Alignment) |
| | Creates and adds a horizontal ScrollBar widget, loading its style from a resource string. More...
|
| |
| TreeView | create_tree_view (alignment: Alignment) |
| | Creates and adds a TreeView widget. More...
|
| |
| TreeView | create_tree_view (resource: string, alignment: Alignment) |
| | Creates and adds a TreeView widget, loading its style from a resource string. More...
|
| |
| Widget | create_widget (alignment: Alignment) |
| | Creates and adds a transparent container Widget. More...
|
| |
| Widget | create_widget (resource: string, alignment: Alignment) |
| | Creates and adds a transparent container Widget, loading its style from a resource string. More...
|
| |
| ListBox | create_list_box (alignment: Alignment) |
| | Creates and adds a ListBox widget. More...
|
| |
| ListBox | create_list_box (resource: string, alignment: Alignment) |
| | Creates and adds a ListBox widget, loading its style from a resource string. More...
|
| |
| ProgressBar | create_progress_bar (alignment: Alignment) |
| | Creates and adds a ProgressBar widget. More...
|
| |
| ProgressBar | create_progress_bar (resource: string, alignment: Alignment) |
| | Creates and adds a ProgressBar widget, loading its style from a resource string. More...
|
| |
| VProgressBar | create_vprogress_bar (alignment: Alignment) |
| | Creates and adds a vertical ProgressBar widget. More...
|
| |
| VProgressBar | create_vprogress_bar (resource: string, alignment: Alignment) |
| | Creates and adds a vertical ProgressBar widget, loading its style from a resource string. More...
|
| |
| HProgressBar | create_hprogress_bar (alignment: Alignment) |
| | Creates and adds a horizontal ProgressBar widget. More...
|
| |
| HProgressBar | create_hprogress_bar (resource: string, alignment: Alignment) |
| | Creates and adds a horizontal ProgressBar widget, loading its style from a resource string. More...
|
| |
| ScrollBox | create_scroll_box (alignment: Alignment) |
| | Creates and adds a ScrollBox widget. More...
|
| |
| ScrollBox | create_scroll_box (resource: string, alignment: Alignment) |
| | Creates and adds a ScrollBox widget, loading its style from a resource string. More...
|
| |
| CheckBox | create_check_box (alignment: Alignment) |
| | Creates and adds a CheckBox widget. More...
|
| |
| CheckBox | create_check_box (resource: string, alignment: Alignment) |
| | Creates and adds a CheckBox widget, loading its style from a resource string. More...
|
| |
| CheckMark | create_check_mark (alignment: Alignment) |
| | Creates and adds a CheckMark widget with the given alignment. More...
|
| |
| CheckMark | create_check_mark (resource: string, alignment: Alignment) |
| | Creates and adds a CheckMark widget, loading its style from a resource string. More...
|
| |
| CrossMark | create_cross_mark (alignment: Alignment) |
| | Creates and adds a CrossMark widget with the given alignment. More...
|
| |
| CrossMark | create_cross_mark (resource: string, alignment: Alignment) |
| | Creates and adds a CrossMark widget, loading its style from a resource string. More...
|
| |
| Arrow | create_arrow (alignment: Alignment, orientation: ArrowOrientation) |
| | Creates and adds an Arrow widget pointing to the given direction. More...
|
| |
| Arrow | create_arrow (resource: string, alignment: Alignment, orientation: ArrowOrientation) |
| | Creates and adds an Arrow widget, loading its style from a resource string. More...
|
| |
| TabBar | create_tab_bar (alignment: Alignment) |
| | Creates and adds a TabBar widget with the given alignment. More...
|
| |
| TabBar | create_tab_bar (resource: string, alignment: Alignment) |
| | Creates and adds a TabBar widget, loading its style from a resource string. More...
|
| |
| TabContainer | create_tab_container (alignment: Alignment) |
| | Creates and adds a TabContainer widget with the given alignment. More...
|
| |
| TabContainer | create_tab_container (resource: string, alignment: Alignment) |
| | Creates and adds a TabContainer widget, loading its style from a resource string. More...
|
| |
| Grid | create_grid (alignment: Alignment) |
| | Creates and adds an empty Grid widget with the given alignment. More...
|
| |
| Grid | create_grid (alignment: Alignment, rows: integer, columns: integer) |
| | Creates and adds a Grid widget with the given number of rows and columns. More...
|
| |
| Grid | create_grid (resource: string, alignment: Alignment, rows: integer, columns: integer) |
| | Creates and adds a Grid widget, loading its style from a resource string. More...
|
| |
| Table | create_table (alignment: Alignment) |
| | Creates and adds a Table widget with the given alignment. More...
|
| |
| Table | create_table (resource: string, alignment: Alignment) |
| | Creates and adds a Table widget, loading its style from a resource string. More...
|
| |
| FoldableContainer | create_foldable_container (alignment: Alignment) |
| | Creates and adds a FoldableContainer widget with the given alignment. More...
|
| |
| FoldableContainer | create_foldable_container (resource: string, alignment: Alignment) |
| | Creates and adds a FoldableContainer widget, loading its style from a resource string. More...
|
| |
| HSlider | create_hslider (alignment: Alignment) |
| | Creates and adds a horizontal Slider widget with the given alignment. More...
|
| |
| HSlider | create_hslider (resource: string, alignment: Alignment) |
| | Creates and adds a horizontal Slider widget, loading its style from a resource string. More...
|
| |
| VSlider | create_vslider (alignment: Alignment) |
| | Creates and adds a vertical Slider widget with the given alignment. More...
|
| |
| VSlider | create_vslider (resource: string, alignment: Alignment) |
| | Creates and adds a vertical Slider widget, loading its style from a resource string. More...
|
| |
| HColorSlider | create_hcolor_slider (alignment: Alignment) |
| | Creates and adds a horizontal ColorSlider widget with the given alignment. More...
|
| |
| HColorSlider | create_hcolor_slider (resource: string, alignment: Alignment) |
| | Creates and adds a horizontal ColorSlider widget, loading its style from a resource string. More...
|
| |
| VColorSlider | create_vcolor_slider (alignment: Alignment) |
| | Creates and adds a vertical ColorSlider widget with the given alignment. More...
|
| |
| VColorSlider | create_vcolor_slider (resource: string, alignment: Alignment) |
| | Creates and adds a vertical ColorSlider widget, loading its style from a resource string. More...
|
| |
| Knob | create_knob (alignment: Alignment) |
| | Creates and adds a Knob widget with the given alignment. More...
|
| |
| Knob | create_knob (resource: string, alignment: Alignment) |
| | Creates and adds a Knob widget, loading its style from a resource string. More...
|
| |
| ColorWheel | create_color_wheel (alignment: Alignment) |
| | Creates and adds a ColorWheel widget with the given alignment. More...
|
| |
| ColorWheel | create_color_wheel (resource: string, alignment: Alignment) |
| | Creates and adds a ColorWheel widget, loading its style from a resource string. More...
|
| |
| ColorPicker | create_color_picker (alignment: Alignment) |
| | Creates and adds a ColorPicker widget with the given alignment. More...
|
| |
| ColorPicker | create_color_picker (resource: string, alignment: Alignment) |
| | Creates and adds a ColorPicker widget, loading its style from a resource string. More...
|
| |
| ColorPickerButton | create_color_picker_button (alignment: Alignment) |
| | Creates and adds a ColorPickerButton widget with the given alignment. More...
|
| |
| ColorPickerButton | create_color_picker_button (resource: string, alignment: Alignment) |
| | Creates and adds a ColorPickerButton widget, loading its style from a resource string. More...
|
| |
| SpinBox | create_spin_box (alignment: Alignment) |
| | Creates and adds a SpinBox widget with the given alignment. More...
|
| |
| SpinBox | create_spin_box (resource: string, alignment: Alignment) |
| | Creates and adds a SpinBox widget, loading its style from a resource string. More...
|
| |
| SpinButtons | create_spin_buttons (alignment: Alignment) |
| | Creates and adds a SpinButtons widget with the given alignment. More...
|
| |
| SpinButtons | create_spin_buttons (resource: string, alignment: Alignment) |
| | Creates and adds a SpinButtons widget, loading its style from a resource string. More...
|
| |
| DropDownList | create_drop_down_list (alignment: Alignment) |
| | Creates and adds a DropDownList widget with the given alignment. More...
|
| |
| DropDownList | create_drop_down_list (resource: string, alignment: Alignment) |
| | Creates and adds a DropDownList widget, loading its style from a resource string. More...
|
| |
| IconImage | create_icon_image (alignment: Alignment) |
| | Creates and adds an IconImage widget with the given alignment. More...
|
| |
| IconImage | create_icon_image (resource: string, alignment: Alignment) |
| | Creates and adds an IconImage widget, loading its style from a resource string. More...
|
| |
| IconSVG | create_icon_svg (alignment: Alignment) |
| | Creates and adds an IconSVG widget with the given alignment. More...
|
| |
| IconSVG | create_icon_svg (resource: string, alignment: Alignment) |
| | Creates and adds an IconSVG widget, loading its style from a resource string. More...
|
| |
|
| integer | resizeable_borders |
| | Bitmask of which window borders are user-resizable (see lysa.ui.ResizeableBorder).
|
| |
| Widget | widget |
| | The root widget that covers the entire client area of the window. (read-only)
|
| |
| Style | style |
| | The style drawing the widgets of this window; falls back to the WindowManager default style when none is set.
|
| |
| number | width |
| | Client area width in virtual screen units.
|
| |
| number | height |
| | Client area height in virtual screen units.
|
| |
| lysa.Rect | rect |
| | Client area position and size as a Rect.
|
| |
| number | x |
| | Current X position of the window's bottom-left corner.
|
| |
| number | y |
| | Current Y position of the window's bottom-left corner.
|
| |
| boolean | visible |
| | Whether the window is visible; changes take effect at the start of the next frame.
|
| |
| number | minimum_width |
| | The minimum width the window can be resized to. (read-only)
|
| |
| number | minimum_height |
| | The minimum height the window can be resized to. (read-only)
|
| |
| number | maximum_width |
| | The maximum width the window can be resized to. (read-only)
|
| |
| number | maximum_height |
| | The maximum height the window can be resized to. (read-only)
|
| |
| number | aspect_ratio |
| | Aspect ratio (width / height) of the Window client area. (read-only)
|
| |
| lysa.Font | font |
| | The default font applied to widgets that do not specify their own.
|
| |
| number | font_scale |
| | The default font scale applied to widgets that do not specify their own.
|
| |