Astrath:createWindow
Jump to navigation
Jump to search
Description: Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions.
Parameters:
- x (float) – The X position of the window on the screen
- y (float) – The Y position of the window on the screen
- width (float) – Width of the window
- height (float) – Height of the window
- title (string) – Title displayed in the window
Returns:
- Returns an element representing the window.
Example:
local win = Astrath:createWindow(200, 200, 300, 200, "Example Window") Astrath:show(win, true)
See also: