Skip to content

luxe API (2025.1.2)


luxe: ui/window module


UIWindow

import "luxe: ui/window" for UIWindow

UIWindow is a Control with a title bar, close button, and can be moved around and resized like a windowed application on a desktop operating system. As you'd expect, you can attach other Controls to it that stay attached as you move it around.

  var window = UIWindow.create(ui)
  UIWindow.set_text(window, "I'm a window!")
  UIWindow.set_title_size(window, 24)
  UIWindow.set_text_size(window, 14)
  UIWindow.set_resizable(window, true)
  Control.set_bounds(window, 64, 64, 680, 360)

UIWindow.create(ui_entity: Entity) returns UIWindow

Create a new UIWindow control for the given UI.

UIWindow.close(control: UIWindow) returns None

Make the given window disappear.

UIWindow.set_collapsed(control: UIWindow, state: Bool) returns None

Set whether the given window's body is drawn (false, uncollapsed) or only the titlebar (true, collapsed).

UIWindow.get_collapsed(control: UIWindow) returns Bool

Get if the given window is collapsed.

UIWindow.set_text(control: UIWindow, text: String) returns None

Set the titlebar text of the given window.

UIWindow.set_text_size(control: UIWindow, size: Num) returns None

Set the size of the titlebar text of the given window.

UIWindow.set_text_color(control: UIWindow, color: Color) returns None

Set the color of the titlebar text of the given window.

UIWindow.set_text_font(control: UIWindow, font: Font) returns None

Set the font of the titlebar text of the given window.

UIWindow.set_title_size(control: UIWindow, size: Num) returns None

Set the height of the titlebar of the given window.

UIWindow.set_resizable(control: UIWindow, state: Bool) returns None

Set if a window can be resized by dragging its bottom right corner.

UIWindow.set_bring_to_front(control: UIWindow, state: Bool) returns None

Set if a window will bring itself to the front of the UI when interacted with.

UIWindow.set_closable(control: UIWindow, state: Bool) returns None

Set if a window has a Close button the user can press.

UIWindow.set_collapsible(control: UIWindow, state: Bool) returns None

Set if a window has a Collapse button the user can press.

UIWindow.set_draggable(control: UIWindow, state: Bool) returns None

Set if a window can be dragged around with the mouse.

UIWindow.get_resizable(control: UIWindow) returns Bool

Get if a window can be resized by the user.

UIWindow.get_bring_to_front(control: UIWindow) returns unknown

Get if a window will bring itself to the front of the UI when interacted with.

UIWindow.get_closable(control: UIWindow) returns unknown

Get if a window has its Close button visible.

UIWindow.get_collapsible(control: UIWindow) returns unknown

Get if a window has its Collapse button visible.

UIWindow.get_draggable(control: UIWindow) returns unknown

Get if a window can be dragged around with the mouse.

UIWindow.set_outline(control: UIWindow, radius: Num, softness: Num, color: Color, offset: Float2) returns None

Set the text outline parameters.

UIWindow.set_shadow(control: UIWindow, radius: Num, softness: Num, color: Color, offset: Float2) returns None

Set the text shadow parameters.

UIWindowChange

import "luxe: ui/window" for UIWindowChange

no docs found


UIWindowChange.close returns unknown

no docs found

UIWindowChange.open returns unknown

no docs found

UIWindowChange.collapse returns unknown

no docs found

UIWindowChange.uncollapse returns unknown

no docs found

UIWindowChange.move returns unknown

no docs found

UIWindowChange.name(value: Any) returns unknown

no docs found