Skip to main content

Module protocol

Module protocol 

Source
Expand description

Fixed-layout little-endian boundary protocol.

Structs§

BatchEncoder
Reusable encoder. Once capacities are warmed, clear and finish allocate no memory.
HostEvent

Enums§

Mutation
PropertyValue
ProtocolError

Constants§

THEME_PAYLOAD_LEN
SetTheme after its header: four u16 fields, one font slot per type role, and the palette’s (offset, len) reference. 52 bytes, so the record is 56.
WINDOW_DRAG_CANCEL
WINDOW_DRAG_END
WINDOW_DRAG_MOVE
The phases of a WindowDrag.
WINDOW_DRAG_OVER_DROP
WINDOW_DRAG_OVER_ENTER
The kinds of a WindowDragOver.
WINDOW_DRAG_OVER_LEAVE
WINDOW_DRAG_OVER_MOVE

Functions§

decode_batch
decode_event
Decode one Renderer-to-Host event record.
encode_event
Test/mock helper for constructing a Renderer-to-Host event.