Expand description
Closed Rust-side schema and metadata used for Kotlin code generation.
Structs§
- Boundary
Op - One logical boundary operation, stated without saying which side calls it.
- BoxProps
- Button
Props - Color
- Column
Props - Enum
Variant Schema - Event
Schema - Field
Schema - Role
Enum Schema - A role enum that codegen mirrors into Kotlin.
- RowProps
- Selection
- Spacer
Props - Text
Field Props - Text
Props - Theme
- A design system choice plus how it reacts to the host platform.
- Variant
Schema - WebBatch
Field - One field of the
MutationBatchrecord the Host writes into the shared memory. - Window
- What an application may decide about its own window.
Enums§
- Alignment
- Arrangement
- Asset
Kind - Boundary
Param - One argument of a boundary operation.
- Button
Variant - Chrome
- Color
Role - Color
Scheme - Design
System - Event
Payload - Event
Payload Type - Field
Slot - Which half of which
(first, second)word a modifier field occupies. - Field
Type - Icon
Role - Key
- Loop
Mode - Material
Role - Message
Duration - Modifier
- Motion
Role - Notification
Importance - Notification
Permission - Notification
Presentation - Paint
- Every place that takes a colour takes a
Paint, so colour is expressed once. - Property
Kind - Shape
Role - Slot
Role - Space
Role - Text
Align - Text
Overflow - Tile
Mode - Title
Bar - Type
Role - Widget
Kind - Window
Height Class - Window
Size Class
Constants§
- ALIGNMENT_
SCHEMA - ANDROID_
BRIDGE_ CLASS - The JVM class the Android shims bind to. The Kotlin file is generated under the same name, so the two sides cannot drift.
- ARRANGEMENT_
SCHEMA - ASSET_
KIND_ SCHEMA - BOUNDARY_
SCHEMA - BUTTON_
VARIANT_ SCHEMA - CHROME_
SCHEMA - COLOR_
ROLE_ COUNT - How many colour roles there are, which is how many rows every token table has and how many slots a palette carries per scheme.
- COLOR_
ROLE_ SCHEMA - COLOR_
SCHEME_ SCHEMA - DESIGN_
SYSTEM_ SCHEMA - EVENT_
SCHEMA - ICON_
ROLE_ SCHEMA - KEY_
SCHEMA - MATERIAL_
ROLE_ SCHEMA - MESSAGE_
DURATION_ SCHEMA - MODIFIER_
SCHEMA - MOTION_
ROLE_ SCHEMA - NOTIFICATION_
IMPORTANCE_ SCHEMA - NOTIFICATION_
PERMISSION_ SCHEMA - NOTIFICATION_
PRESENTATION_ SCHEMA - PROPERTY_
SCHEMA - PROTOCOL_
VERSION - ROLE_
ENUM_ SCHEMA - Every role enum codegen mirrors, in wire order. Appending is the only allowed edit.
- SCHEMA_
DESCRIPTOR - Canonical schema text. Variant order is wire-significant and must only be appended to.
- SCHEMA_
HASH - Stable handshake hash of the complete ordered schema metadata.
- SHAPE_
ROLE_ SCHEMA - SLOT_
ROLE_ SCHEMA - SPACE_
ROLE_ SCHEMA - TEXT_
ALIGN_ SCHEMA - TEXT_
OVERFLOW_ SCHEMA - TILE_
MODE_ SCHEMA - TITLE_
BAR_ SCHEMA - TYPE_
ROLE_ COUNT - How many type roles there are, which is how many font slots a theme carries.
- TYPE_
ROLE_ SCHEMA - WEB_
BATCH_ BYTES - How long that record is, including the padding
#[repr(C)]adds before the result. - WEB_
BATCH_ FIELDS MutationBatchas a wasm32 target lays it out.- WEB_
EVENT_ BUFFER_ BYTES - How much room the Host lends the Renderer to encode one event into.
- WEB_
EVENT_ BUFFER_ OFFSET - Where the event buffer starts inside the block
compose_rust_host_web_startreports. - WEB_
HOST_ GLOBAL - The global the generated forwarders read the Host’s exports off.
- WEB_
MODULE_ GLOBAL - The global the loader module publishes the compiled Host module under.
- WEB_
RENDERER_ IMPORT_ MODULE - The wasm import module the Host’s frame request comes from.
- WEB_
RUST_ REGION_ BASE - The first address that belongs to the Rust module.
- WEB_
START_ SYMBOL - The extra Host export a browser needs, because a page has no library loader.
- WIDGET_
SCHEMA - WINDOW_
HEIGHT_ CLASS_ SCHEMA - WINDOW_
SIZE_ CLASS_ SCHEMA