Home
/
Packages
/
@hatch:window
@hatch:window
v0.2.9
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.
$
hatch add @hatch:window
copy
MOD
window
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)
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.destroy
GET
Window.toString
FN
Window.static create(descriptor: Map) → Window
FN
Window.static create() → Window
FN
Window.pump()
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()