Home
/
Packages
/
@hatch:window
@hatch:window
v0.2.15
Window + input for any WrenLift app. winit on native, page-attached canvas on web — same Window.create({...}) API, same pollEvents / closeRequested / size surface across targets. Bring-your-own canvas via Window.attach(elementId) on web.
stable
system
updated Jun 4, 2026
source ↗
$
hatch add @hatch:window
copy
MOD
window
MOD
window_web
CL
WindowCore
FN
WindowCore.static create(descriptor)
FN
WindowCore.static destroy(handle)
FN
WindowCore.static pump(handle)
FN
WindowCore.static closeRequested(handle)
FN
WindowCore.static size(handle)
FN
WindowCore.static drainEvents(handle)
CL
Window
NEW
Window.new_(id)
GET
Window.id → Num
GET
Window.handle → Object
GET
Window.size → Map
GET
Window.closeRequested → Bool
GET
Window.pollEvents → List
GET
Window.destroy
GET
Window.toString
FN
Window.static create(descriptor: Map) → Window
FN
Window.static create() → Window
FN
Window.static attach(elementId: String) → Window
FN
Window.pump()
MOD
window_native
CL
WindowCore
FN
WindowCore.static create(descriptor)
FN
WindowCore.static destroy(id)
FN
WindowCore.static pump()
FN
WindowCore.static closeRequested(id)
FN
WindowCore.static size(id)
FN
WindowCore.static drainEvents(id)
FN
WindowCore.static handle(id)
FN
WindowCore.static setCursorLock(id, lock)
FN
WindowCore.static setCursorVisible(id, hide)
FN
WindowCore.static setVisible(id, visible)
CL
Window
NEW
Window.new_(id)
GET
Window.id → Num
GET
Window.size → Map
GET
Window.closeRequested → Bool
GET
Window.pollEvents → List
GET
Window.handle → Map
GET
Window.show
GET
Window.hide
GET
Window.destroy
GET
Window.toString
FN
Window.static create(descriptor: Map) → Window
FN
Window.static create() → Window
FN
Window.pump()
FN
Window.lockCursor(lock: Bool)
FN
Window.hideCursor(hide: Bool)
FN
Window.setVisible(visible: Bool)