Skip to content

ludus::platform::browser

Ludus Wiki · API overview · Browse API

Namespace

Declared in modules/platform/include/ludus/platform/base/window.h

Enumerations

Key

enum class Key : uint8
Physical KeyboardEvent.code positions, not text input or a locale layout.
Unsupported codes produce Unknown events and never index the held-key table.

Related types: uint8

Unknown

Unknown

KeyA

KeyA

KeyB

KeyB

KeyC

KeyC

KeyD

KeyD

KeyE

KeyE

KeyF

KeyF

KeyG

KeyG

KeyH

KeyH

KeyI

KeyI

KeyJ

KeyJ

KeyK

KeyK

KeyL

KeyL

KeyM

KeyM

KeyN

KeyN

KeyO

KeyO

KeyP

KeyP

KeyQ

KeyQ

KeyR

KeyR

KeyS

KeyS

KeyT

KeyT

KeyU

KeyU

KeyV

KeyV

KeyW

KeyW

KeyX

KeyX

KeyY

KeyY

KeyZ

KeyZ

Digit0

Digit0

Digit1

Digit1

Digit2

Digit2

Digit3

Digit3

Digit4

Digit4

Digit5

Digit5

Digit6

Digit6

Digit7

Digit7

Digit8

Digit8

Digit9

Digit9

ArrowLeft

ArrowLeft

ArrowRight

ArrowRight

ArrowUp

ArrowUp

ArrowDown

ArrowDown

Space

Space

Enter

Enter

Escape

Escape

Tab

Tab

Backspace

Backspace

ShiftLeft

ShiftLeft

ShiftRight

ShiftRight

ControlLeft

ControlLeft

ControlRight

ControlRight

AltLeft

AltLeft

AltRight

AltRight

MetaLeft

MetaLeft

MetaRight

MetaRight

Delete

Delete

Insert

Insert

Home

Home

End

End

PageUp

PageUp

PageDown

PageDown

Count

Count

Declared in modules/platform/include/ludus/platform/browser/window.h

EventKind

enum class EventKind : uint8

Related types: uint8

Resize

Resize

Focus

Focus

Visibility

Visibility

KeyDown

KeyDown

KeyUp

KeyUp

PointerMove

PointerMove

PointerDown

PointerDown

PointerUp

PointerUp

Wheel

Wheel

InputReset

InputReset

PointerCancel

PointerCancel

Declared in modules/platform/include/ludus/platform/browser/window.h

Functions

ReplaceCanvas

bool ludus::platform::browser::ReplaceCanvas(const char *selector) noexcept
Replace the live canvas identified by selector with a fresh node of the same id/attributes/CSS/DOM position, rebinding Platform's listeners, observer and focus.
Platform owns the DOM node; this is the only sanctioned way to recover after a canvas has been committed to a context mode (e.g. a WebGPU attempt) that blocks a different backend (WebGL 2). Returns false off the browser or if no live window owns that canvas. The engine calls this during an Auto fallback.

Declared in modules/platform/include/ludus/platform/browser/window.h

Aliases

float64

using ludus::foundation::core::float64 = double
IEEE binary64 scalar; does not select rounding, trap or denormal policy.

Declared in modules/platform/include/ludus/platform/browser/window.h

uint32

using ludus::foundation::core::uint32 = std::uint32_t
Exact 32-bit unsigned integer for explicit-width values.

Declared in modules/platform/include/ludus/platform/browser/window.h

uint64

using ludus::foundation::core::uint64 = std::uint64_t
Exact 64-bit unsigned integer for explicit-width values.

Declared in modules/platform/include/ludus/platform/browser/window.h

uint8

using ludus::foundation::core::uint8 = std::uint8_t
Exact 8-bit unsigned integer for explicit-width values.

Declared in modules/platform/include/ludus/platform/browser/window.h

usize

using ludus::foundation::core::usize = std::size_t
Native unsigned size/index type; matches sizeof and container sizes, not a wire format.

Declared in modules/platform/include/ludus/platform/browser/window.h