¶
luxe API (2025.1.2)¶
luxe: ui/window module¶
UIWindow¶
import "luxe: ui/window" for UIWindow
UIWindowis aControlwith 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 otherControlsto 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)
- create(ui_entity:
Entity) - close(control:
UIWindow) - set_collapsed(control:
UIWindow, state:Bool) - get_collapsed(control:
UIWindow) - set_text(control:
UIWindow, text:String) - set_text_size(control:
UIWindow, size:Num) - set_text_color(control:
UIWindow, color:Color) - set_text_font(control:
UIWindow, font:Font) - set_title_size(control:
UIWindow, size:Num) - set_resizable(control:
UIWindow, state:Bool) - set_bring_to_front(control:
UIWindow, state:Bool) - set_closable(control:
UIWindow, state:Bool) - set_collapsible(control:
UIWindow, state:Bool) - set_draggable(control:
UIWindow, state:Bool) - get_resizable(control:
UIWindow) - get_bring_to_front(control:
UIWindow) - get_closable(control:
UIWindow) - get_collapsible(control:
UIWindow) - get_draggable(control:
UIWindow) - set_outline(control:
UIWindow, radius:Num, softness:Num, color:Color, offset:Float2) - set_shadow(control:
UIWindow, radius:Num, softness:Num, color:Color, offset:Float2)
Entity)
¶UIWindow
Create a new
UIWindowcontrol for the given UI.
UIWindow)
¶None
Make the given window disappear.
UIWindow, state: Bool)
¶None
Set whether the given window's body is drawn (false, uncollapsed) or only the titlebar (true, collapsed).
UIWindow)
¶Bool
Get if the given window is collapsed.
UIWindow, text: String)
¶None
Set the titlebar text of the given window.
UIWindow, size: Num)
¶None
Set the size of the titlebar text of the given window.
UIWindow, color: Color)
¶None
Set the color of the titlebar text of the given window.
UIWindow, font: Font)
¶None
Set the font of the titlebar text of the given window.
UIWindow, size: Num)
¶None
Set the height of the titlebar of the given window.
UIWindow, state: Bool)
¶None
Set if a window can be resized by dragging its bottom right corner.
UIWindow, state: Bool)
¶None
Set if a window will bring itself to the front of the UI when interacted with.
UIWindow, state: Bool)
¶None
Set if a window has a Close button the user can press.
UIWindow, state: Bool)
¶None
Set if a window has a Collapse button the user can press.
UIWindow, state: Bool)
¶None
Set if a window can be dragged around with the mouse.
UIWindow)
¶Bool
Get if a window can be resized by the user.
UIWindow)
¶unknown
Get if a window will bring itself to the front of the UI when interacted with.
UIWindow)
¶unknown
Get if a window has its Close button visible.
UIWindow)
¶unknown
Get if a window has its Collapse button visible.
UIWindow)
¶unknown
Get if a window can be dragged around with the mouse.
UIWindow, radius: Num, softness: Num, color: Color, offset: Float2)
¶None
Set the text outline parameters.
UIWindow, radius: Num, softness: Num, color: Color, offset: Float2)
¶None
Set the text shadow parameters.
UIWindowChange¶
import "luxe: ui/window" for UIWindowChange
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
Any)
¶unknown
no docs found