pax-message

Submodules

Structs

AccelInterruptArgs

Device acceleration payload, in meters per second squared.

Properties

x

Type: f64

y

Type: f64

z

Type: f64


AddedLayerArgs

Chassis acknowledgement that render layers were added.

Properties

num_layers_added

Type: u32

layer_id

Type: Option<u32>


AnyCreatePatch

Common creation payload shared by native element families.

Properties

id

Type: u32

parent_frame

Type: Option<u32>

render_layer_id

Type: u32


AppleLiquidGlassPatch

Apple-specific native liquid-glass effect payload.

Properties

group_id

Type: u32

spacing

Type: f64

interactive

Type: bool

tint

Type: Option<ColorMessage>

variant

Type: String


BrowserConfigInterruptArgs

Browser capability flags discovered by the web chassis.

Properties

allow_scroller_vector_layers

Type: bool

allow_nested_scroller_vector_layers

Type: bool


ButtonPatch

Create/update patch for a native button.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

hover_color

Type: Option<ColorMessage>

outline_stroke_color

Type: Option<ColorMessage>

outline_stroke_width

Type: Option<f64>

corner_radius

Type: Option<f64>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

content

Type: Option<String>

color

Type: Option<ColorMessage>

style

Type: Option<TextStyleMessage>

liquid_glass

Type: Option<Option<AppleLiquidGlassPatch>>


ChassisResizeRequestArgs

Chassis response containing measured native control bounds.

Properties

id

Type: u32

width

Type: f64

height

Type: f64


CheckboxPatch

Create/update patch for a native checkbox.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

background

Type: Option<ColorMessage>

background_checked

Type: Option<ColorMessage>

outline_color

Type: Option<ColorMessage>

outline_width

Type: Option<f64>

corner_radius

Type: Option<f64>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

checked

Type: Option<bool>

liquid_glass

Type: Option<Option<AppleLiquidGlassPatch>>


CheckboxStyleMessage

Style payload shared by checkbox-like controls.


ClickInterruptArgs

Click interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


ContextMenuInterruptArgs

Context-menu interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


DoubleClickInterruptArgs

Double-click interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


DropFileArgs

File-drop interrupt payload.

Properties

x

Type: f64

y

Type: f64

name

Type: String

mime_type

Type: String

size

Type: u64


Create/update patch for a native dropdown/select element.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

selected_id

Type: Option<u32>

options

Type: Option<Vec<String>>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

background

Type: Option<ColorMessage>

stroke_color

Type: Option<ColorMessage>

stroke_width

Type: Option<f64>

corner_radius

Type: Option<f64>

style

Type: Option<TextStyleMessage>

liquid_glass

Type: Option<Option<AppleLiquidGlassPatch>>


EventBlockerPatch

Create/update patch for a native hit-test blocker with an optional solid background.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

transform

Type: Option<Vec<f64>>

opacity

Type: Option<f64>

background

Type: Option<ColorMessage>


FocusInterruptArgs

Focus interrupt marker payload.


FormButtonClickArgs

Native button click payload.

Properties

id

Type: u32


FormCheckboxToggleArgs

Checkbox state-change interrupt payload.

Properties

state

Type: bool

id

Type: u32


FormDropdownChangeArgs

Dropdown selection-change payload.

Properties

id

Type: u32

selected_id

Type: u32


FormRadioListChangeArgs

Radio-list selection-change payload.

Properties

id

Type: u32

selected_id

Type: u32


FormSliderChangeArgs

Slider value-change payload.

Properties

id

Type: u32

value

Type: f64


FormTextboxChangeArgs

Textbox committed-value change payload.

Properties

text

Type: String

id

Type: u32


FormTextboxInputArgs

Textbox in-progress input payload.

Properties

text

Type: String

id

Type: u32


FramePatch

Create/update patch for a native frame host.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

clip_content

Type: Option<bool>

corner_radius

Type: Option<f64>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

transform

Type: Option<Vec<f64>>

clip_path

Type: Option<String>

opacity

Type: Option<f64>

presented_bounds

Type: Option<[f64; 4]>

presented_clip_bounds

Type: Option<[f64; 4]>


GlassSurfacePatch

Create/update patch for a materialized native liquid-glass surface.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

corner_radius

Type: Option<f64>

liquid_glass

Type: Option<AppleLiquidGlassPatch>


GyroInterruptArgs

Device orientation payload, in degrees.

Properties

x

Type: f64

y

Type: f64

z

Type: f64


ImageDataArgs

Image-load payload carrying image metadata without a byte pointer.

Properties

id

Type: u32

path

Type: String

width

Type: usize

height

Type: usize


ImagePatch

Image-load request sent to the chassis.

Properties

id

Type: u32

path

Type: Option<String>


ImagePointerArgs

Image-load payload carrying a pointer to chassis-owned image bytes.

Properties

id

Type: u32

path

Type: String

image_data

Type: u64

image_data_length

Type: usize

width

Type: usize

height

Type: usize


InterruptBuffer

Raw FFI buffer containing serialized interrupts.

Properties

data_ptr

Type: *const u8

length

Type: u64


KeyDownInterruptArgs

Key-down interrupt payload.

Properties

key

Type: String

modifiers

Type: Vec<ModifierKeyMessage>

is_repeat

Type: bool


KeyPressInterruptArgs

Key-press interrupt payload.

Properties

key

Type: String

modifiers

Type: Vec<ModifierKeyMessage>

is_repeat

Type: bool


KeyUpInterruptArgs

Key-up interrupt payload.

Properties

key

Type: String

modifiers

Type: Vec<ModifierKeyMessage>

is_repeat

Type: bool


LayerSurfaceScreenshotData

Completed screenshot bytes for one physical surface within a logical canvas layer.

Properties

id

Type: u32

key

Type: String

data

Type: Vec<u8>

width

Type: usize

height

Type: usize

origin_x

Type: f32

origin_y

Type: f32

logical_width

Type: f32

logical_height

Type: f32


LinkStyleMessage

Serializable style payload for link text.

Properties

font

Type: Option<FontPatch>

fill

Type: Option<ColorMessage>

underline

Type: Option<bool>

size

Type: Option<f64>


LocalFontMessage

Local bundled font payload.

Properties

family

Type: Option<String>

path

Type: Option<String>

style

Type: Option<FontStyleMessage>

weight

Type: Option<FontWeightMessage>


MaskPathPatch

One vector coverage path entry for a native occlusion mask.

Properties

path

Type: String

clips

Type: Vec<String>

opacity

Type: Option<f64>


MessageQueue

Serializable batch of native messages emitted for one runtime tick.

Properties

messages

Type: Vec<NativeMessage>


MouseDownInterruptArgs

Mouse-down interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


MouseMoveInterruptArgs

Mouse-move interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


MouseOutInterruptArgs

Mouse-out interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


MouseOverInterruptArgs

Mouse-over interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


MouseUpInterruptArgs

Mouse-up interrupt payload.

Properties

x

Type: f64

y

Type: f64

button

Type: MouseButtonMessage

modifiers

Type: Vec<ModifierKeyMessage>


NativeImagePatch

Create/update patch for a native image element.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

url

Type: Option<String>

fit

Type: Option<String>


NativeMaskPatch

Create/update patch for a native occlusion mask surface.

Properties

id

Type: u32

size_x

Type: f64

size_y

Type: f64

entries

Type: Vec<MaskPathPatch>


NativeMessageQueue

Raw FFI buffer containing serialized native messages.

Properties

data_ptr

Type: *mut [u8]

length

Type: u64


Request for the chassis to navigate to a URL.

Properties

url

Type: String

target

Type: String


PhotoPickerAssetArgs

Selected image metadata and optional copied bytes from a native photo picker.

Properties

temp_id

Type: String

file_name

Type: Option<String>

mime_type

Type: String

byte_size

Type: u64

width

Type: Option<u32>

height

Type: Option<u32>

source_kind

Type: String

handle

Type: Option<String>

data

Type: Vec<u8>


PhotoPickerInterruptArgs

Native photo picker completion payload.

Properties

id

Type: u32

request_id

Type: u64

status

Type: String

message

Type: Option<String>

photos

Type: Vec<PhotoPickerAssetArgs>


PhotoPickerPatch

Create/update patch for a transparent native photo picker hit target.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

trigger

Type: Option<u64>

source

Type: Option<String>

allow_multiple

Type: Option<bool>

accept

Type: Option<String>

include_bytes

Type: Option<bool>

max_bytes_per_photo

Type: Option<u64>


RadioListPatch

Create/update patch for a native radio list.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

selected_id

Type: Option<u32>

options

Type: Option<Vec<String>>

style

Type: Option<TextStyleMessage>

background_checked

Type: Option<ColorMessage>

outline_color

Type: Option<ColorMessage>

outline_width

Type: Option<f64>

background

Type: Option<ColorMessage>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

liquid_glass

Type: Option<Option<AppleLiquidGlassPatch>>


RenderSurfaceUpdateArgs

Browser notification that a retained render surface must be reconfigured.

Properties

layer_id

Type: Option<u32>


RouteChangeInterruptArgs

Canonical route-location payload pushed from chassis state into the runtime.

Properties

path_segments

Type: Vec<String>

query

Type: HashMap<String, Vec<String>>

fragment

Type: Option<String>


ScreenshotData

Completed screenshot bytes returned by the chassis.

Properties

id

Type: u32

data

Type: Vec<u8>

width

Type: usize

height

Type: usize


ScreenshotPatch

Request to capture a screenshot from the chassis.

Properties

id

Type: u32

scale

Type: Option<f64>


ScrollInterruptArgs

Location-targeted scroll delta payload.

Properties

x

Type: f64

y

Type: f64

delta_x

Type: f64

delta_y

Type: f64


ScrollerPatch

Create/update patch for a native/browser-owned scroller.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

clip_content

Type: Option<bool>

corner_radius

Type: Option<f64>

size_inner_pane_x

Type: Option<f64>

size_inner_pane_y

Type: Option<f64>

snap_points_x

Type: Option<Vec<f64>>

snap_points_y

Type: Option<Vec<f64>>

scroll_x

Type: Option<f64>

scroll_y

Type: Option<f64>

presentation_scroll_x

Type: Option<f64>

presentation_scroll_y

Type: Option<f64>

scroll_enabled_x

Type: Option<bool>

scroll_enabled_y

Type: Option<bool>

content_layer_id

Type: Option<u32>

presented_bounds

Type: Option<[f64; 4]>

presented_clip_bounds

Type: Option<[f64; 4]>

subtree_depth

Type: u32


ScrollerPositionInterruptArgs

Native scroller position payload, including optional presentation offsets.

Properties

id

Type: u32

scroll_x

Type: f64

scroll_y

Type: f64

presentation_scroll_x

Type: Option<f64>

presentation_scroll_y

Type: Option<f64>


SelectStartArgs

Selection-start interrupt marker payload.


SetCursorPatch

Request for the chassis to update cursor style.

Properties

cursor

Type: String


SliderPatch

Create/update patch for a native slider.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

value

Type: Option<f64>

step

Type: Option<f64>

min

Type: Option<f64>

max

Type: Option<f64>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

accent

Type: Option<ColorMessage>

background

Type: Option<ColorMessage>

corner_radius

Type: Option<f64>

liquid_glass

Type: Option<Option<AppleLiquidGlassPatch>>


SystemFontMessage

System font family payload.

Properties

family

Type: Option<String>

style

Type: Option<FontStyleMessage>

weight

Type: Option<FontWeightMessage>


TapInterruptArgs

Single-touch tap payload normalized to window coordinates.

Properties

x

Type: f64

y

Type: f64


TextInputArgs

Raw text input payload delivered by a native text control.

Properties

text

Type: String

id

Type: u32


TextMeasurementResponseArgs

Chassis response to an engine-authored native text measurement request.

Properties

id

Type: u32

generation

Type: u64

width

Type: f64

height

Type: f64


TextPatch

Create/update patch for native or browser-managed text.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

content

Type: Option<String>

editable

Type: Option<bool>

selectable

Type: Option<bool>

clip

Type: Option<bool>

markdown

Type: Option<bool>

wrap

Type: Option<bool>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

style

Type: Option<TextStyleMessage>

Type: Option<TextStyleMessage>

measure_generation

Type: Option<u64>


TextStyleMessage

Serializable text style payload shared with chassis text renderers.

Properties

font

Type: Option<FontPatch>

font_size

Type: Option<f64>

fill

Type: Option<ColorMessage>

underline

Type: Option<bool>

align_multiline

Type: Option<TextAlignHorizontalMessage>

align_vertical

Type: Option<TextAlignVerticalMessage>

align_horizontal

Type: Option<TextAlignHorizontalMessage>


TextboxPatch

Create/update patch for a native textbox.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

text

Type: Option<String>

background

Type: Option<ColorMessage>

stroke_color

Type: Option<ColorMessage>

stroke_width

Type: Option<f64>

corner_radius

Type: Option<f64>

style

Type: Option<TextStyleMessage>

focus_on_mount

Type: Option<bool>

placeholder

Type: Option<String>

outline_color

Type: Option<ColorMessage>

outline_width

Type: Option<f64>

is_text_area

Type: Option<bool>

liquid_glass

Type: Option<Option<AppleLiquidGlassPatch>>


TouchCancelInterruptArgs

Touch-cancel interrupt payload.

Properties

touches

Type: Vec<TouchMessage>


TouchEndInterruptArgs

Touch-end interrupt payload.

Properties

touches

Type: Vec<TouchMessage>


TouchMessage

One touch point in a multi-touch interrupt.

Properties

x

Type: f64

y

Type: f64

identifier

Type: i64

delta_x

Type: f64

delta_y

Type: f64


TouchMoveInterruptArgs

Touch-move interrupt payload.

Properties

touches

Type: Vec<TouchMessage>


TouchStartInterruptArgs

Touch-start interrupt payload.

Properties

touches

Type: Vec<TouchMessage>


ViewportResizeArgs

Layout viewport resize payload for the root app surface.

Properties

width

Type: f64

height

Type: f64


VisualViewportUpdateArgs

Browser visual viewport payload for page-scroll-backed root scrollers.

Properties

width

Type: f64

height

Type: f64

offset_x

Type: f64

offset_y

Type: f64

page_scroll_x

Type: f64

page_scroll_y

Type: f64


WebFontMessage

Web font payload, including family and source URL.

Properties

family

Type: Option<String>

url

Type: Option<String>

style

Type: Option<FontStyleMessage>

weight

Type: Option<FontWeightMessage>


WheelInterruptArgs

Wheel interrupt payload.

Properties

x

Type: f64

y

Type: f64

delta_x

Type: f64

delta_y

Type: f64

modifiers

Type: Vec<ModifierKeyMessage>


YoutubeVideoPatch

Create/update patch for an embedded YouTube video.

Properties

id

Type: u32

parent_frame

Type: Option<Option<u32>>

z_index

Type: Option<i32>

transform

Type: Option<Vec<f64>>

size_x

Type: Option<f64>

size_y

Type: Option<f64>

opacity

Type: Option<f64>

url

Type: Option<String>

Enums

ColorMessage

Serializable color payload for native/chassis messages.

Variants

Rgba([f64; 4])
Rgb([f64; 3])

FontPatch

Serializable font selection payload.

Variants

System(SystemFontMessage)
Web(WebFontMessage)
Local(LocalFontMessage)

FontStyleMessage

Serializable font-style value.

Variants

Normal
Italic
Oblique

FontWeightMessage

Serializable font-weight value.

Variants

Thin
ExtraLight
Light
Normal
Medium
SemiBold
Bold
ExtraBold
Black

ImageLoadInterruptArgs

Image-load response, either by pointer or copied metadata.

Variants

Reference(ImagePointerArgs)
Data(ImageDataArgs)

ModifierKeyMessage

Normalized keyboard modifier identifier.

Variants

Shift
Control
Alt
Command

MouseButtonMessage

Normalized mouse button identifier.

Variants

Left
Middle
Unknown

NativeInterrupt

Events and data packets sent from the chassis back into the Pax runtime.

Variants

ChassisResizeRequestCollection(Vec<ChassisResizeRequestArgs>)
TextMeasurementResponse(TextMeasurementResponseArgs)
SelectStart(SelectStartArgs)
Focus(FocusInterruptArgs)
Scroll(ScrollInterruptArgs)
TouchStart(TouchStartInterruptArgs)
TouchMove(TouchMoveInterruptArgs)
TouchEnd(TouchEndInterruptArgs)
TouchCancel(TouchCancelInterruptArgs)
KeyDown(KeyDownInterruptArgs)
KeyUp(KeyUpInterruptArgs)
KeyPress(KeyPressInterruptArgs)
Click(ClickInterruptArgs)
Tap(TapInterruptArgs)
DoubleClick(DoubleClickInterruptArgs)
MouseMove(MouseMoveInterruptArgs)
Wheel(WheelInterruptArgs)
MouseDown(MouseDownInterruptArgs)
MouseUp(MouseUpInterruptArgs)
ContextMenu(ContextMenuInterruptArgs)
Image(ImageLoadInterruptArgs)
AddedLayer(AddedLayerArgs)
TextInput(TextInputArgs)
FormCheckboxToggle(FormCheckboxToggleArgs)
FormDropdownChange(FormDropdownChangeArgs)
FormSliderChange(FormSliderChangeArgs)
FormRadioListChange(FormRadioListChangeArgs)
FormTextboxChange(FormTextboxChangeArgs)
FormTextboxInput(FormTextboxInputArgs)
FormButtonClick(FormButtonClickArgs)
PhotoPicker(PhotoPickerInterruptArgs)
ScrollerPosition(ScrollerPositionInterruptArgs)
BrowserConfig(BrowserConfigInterruptArgs)
RenderSurfaceUpdate(RenderSurfaceUpdateArgs)
ViewportResize(ViewportResizeArgs)
RouteChange(RouteChangeInterruptArgs)
VisualViewportUpdate(VisualViewportUpdateArgs)
Gyro(GyroInterruptArgs)
Accel(AccelInterruptArgs)
DropFile(DropFileArgs)
Screenshot(ImageLoadInterruptArgs)

NativeMessage

Messages emitted by the runtime to create, update, delete, or configure native/chassis resources.

Variants

TextCreate(AnyCreatePatch)
TextUpdate(TextPatch)
TextDelete(u32)
FrameCreate(AnyCreatePatch)
FrameUpdate(FramePatch)
FrameDelete(u32)
EventBlockerCreate(AnyCreatePatch)
EventBlockerUpdate(EventBlockerPatch)
EventBlockerDelete(u32)
CheckboxCreate(AnyCreatePatch)
CheckboxUpdate(CheckboxPatch)
CheckboxDelete(u32)
NativeImageCreate(AnyCreatePatch)
NativeImageUpdate(NativeImagePatch)
NativeImageDelete(u32)
YoutubeVideoCreate(AnyCreatePatch)
YoutubeVideoUpdate(YoutubeVideoPatch)
YoutubeVideoDelete(u32)
TextboxCreate(AnyCreatePatch)
TextboxUpdate(TextboxPatch)
TextboxDelete(u32)
SliderCreate(AnyCreatePatch)
SliderUpdate(SliderPatch)
SliderDelete(u32)
RadioListCreate(AnyCreatePatch)
RadioListUpdate(RadioListPatch)
RadioListDelete(u32)
ButtonCreate(AnyCreatePatch)
ButtonUpdate(ButtonPatch)
ButtonDelete(u32)
PhotoPickerCreate(AnyCreatePatch)
PhotoPickerUpdate(PhotoPickerPatch)
PhotoPickerDelete(u32)
GlassSurfaceCreate(AnyCreatePatch)
GlassSurfaceUpdate(GlassSurfacePatch)
GlassSurfaceDelete(u32)
ScrollerCreate(AnyCreatePatch)
ScrollerUpdate(ScrollerPatch)
ScrollerDelete(u32)
ImageLoad(ImagePatch)
ShrinkLayersTo(u32)
NativeMaskUpdate(NativeMaskPatch)
SetCursor(SetCursorPatch)
Screenshot(ScreenshotPatch)

TextAlignHorizontalMessage

Serializable horizontal text alignment.

Variants

Left
Center
Right

TextAlignVerticalMessage

Serializable vertical text alignment.

Variants

Top
Center
Bottom