Expand description
Closed Rust-side schema and metadata used for Kotlin code generation.
Modules§
- scroll_
changed_ flags - The bits of a
ScrollChangedevent’s flags word. - scroll_
into_ view_ flags - The bit of a
ScrollIntoViewrecord’s flags. - scroll_
target_ kind - The values of a
ScrollIntoViewrecord’s target kind. - scroll_
to_ flags - The bits of a
ScrollTorecord’s flags word.
Structs§
- Animation
- One animation the Renderer plays to its end on its own frame clock, described once.
- Animation
Events - Which moments of an animation are reported back as
AnimationEvents. None, the default, means the animation plays to its end without a single call to the Host. - 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 - Keyframe
- Message
Placement - Where a transient message is drawn, for an application that wants a place other than the design system’s.
- Overlay
Tokens - Application-level overlay theme tokens for Dialog, Menu, Dropdown, Sheet and the transient message. Every measure is in dp, and 0 keeps the design system’s own.
- Rect
- A rectangle in physical pixels, for
ScrollTarget. - Role
Enum Schema - A role enum that codegen mirrors into Kotlin.
- RowProps
- Scroll
Into View - A request to bring a rectangle into view in one container, written by
Batch::scroll_into_view. - Scroll
To - A request to scroll a container to an offset, written by
Batch::scroll_to. - Selection
- Spacer
Props - Text
Field Props - Text
Props - Theme
- A design system choice plus how it reacts to the host platform.
- Transform
Function - One CSS transform function: its kind and up to six values, the unused ones zero.
- 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
- Animated
Property - Animation
Control - Animation
Event Kind - Arrangement
- Asset
Kind - Background
Repeat - Boundary
Param - One argument of a boundary operation.
- Button
Kind - Button
Variant - Chrome
- Color
Interpolation - Color
Role - Color
Scheme - Compact
Navigation - Content
Scale - Cursor
- Decoration
Kind - Design
System - Edit
Group Status - Event
Payload - Event
Payload Type - Field
Slot - Which half of which
u64word of a modifier’s value a field occupies. - Field
Type - File
Delivery - File
Dialog Kind - File
Dialog Status - FileOp
- Fill
Mode - Generic
Family - Gutter
Decoration Kind - Horizontal
Alignment - Hover
Phase - Icon
Role - IoStatus
- Key
- Keyframe
Value - What one keyframe holds, which has to be what its animation’s property takes.
- Last
Window Closed - Loop
Mode - Material
Role - Message
Duration - Message
Horizontal - Message
Vertical - Minimap
Side - Modifier
- Motion
Role - Notification
Importance - Notification
Permission - Notification
Presentation - Overflow
Wrap - Paint
- Every place that takes a colour takes a
Paint, so colour is expressed once. - Play
State - Playback
Direction - Pointer
Kind - Pointer
Type - Popover
Align - Popover
Placement - Property
Kind - Reduced
Motion - Reveal
Align - Scroll
Align - How a rectangle is brought into view along one axis: CSS’s
blockandinlinevalues, andKeepfor an axis that must not move. - Scroll
Target - What a
ScrollIntoViewrectangle is measured from. - Semantics
Role - Severity
- Shape
Role - Slot
Role - Snap
- Space
Role - Step
Position - Storage
Op - System
Color Scheme - Text
Align - Text
Overflow - Tile
Mode - Timing
- The timing function of one keyframe, which shapes the segment to the next one.
- Timing
Kind - Title
Bar - Transform
Function Kind - Type
Role - User
Select - Vertical
Alignment - Wheel
Delta Mode - Widget
Kind - Window
Height Class - Window
Mode - Window
Size Class - Word
Break - Word
Wrap Mode
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.
- ANIMATED_
PROPERTY_ SCHEMA - ANIMATION_
CONTROL_ SCHEMA - ANIMATION_
EVENT_ KIND_ SCHEMA - ARRANGEMENT_
SCHEMA - ASSET_
KIND_ SCHEMA - BACKGROUND_
REPEAT_ SCHEMA - BOUNDARY_
SCHEMA - BUTTON_
KIND_ SCHEMA - BUTTON_
VARIANT_ SCHEMA - CHROME_
SCHEMA - COLOR_
INTERPOLATION_ 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 - COMPACT_
NAVIGATION_ SCHEMA - CONTENT_
SCALE_ SCHEMA - CURSOR_
SCHEMA - DECORATION_
KIND_ SCHEMA - DESIGN_
SYSTEM_ SCHEMA - EDIT_
GROUP_ STATUS_ SCHEMA - EVENT_
SCHEMA - FILE_
DELIVERY_ SCHEMA - FILE_
DIALOG_ KIND_ SCHEMA - FILE_
DIALOG_ STATUS_ SCHEMA - FILE_
OP_ SCHEMA - FILL_
MODE_ SCHEMA - GENERIC_
FAMILY_ SCHEMA - GUTTER_
DECORATION_ KIND_ SCHEMA - HORIZONTAL_
ALIGNMENT_ SCHEMA - HOVER_
PHASE_ SCHEMA - ICON_
ROLE_ SCHEMA - IO_
STATUS_ SCHEMA - KEY_
SCHEMA - LAST_
WINDOW_ CLOSED_ SCHEMA - MATERIAL_
ROLE_ SCHEMA - MAX_
MODIFIER_ WORDS - The most words any modifier’s value takes, the two every record has included.
- MESSAGE_
DURATION_ SCHEMA - MESSAGE_
HORIZONTAL_ SCHEMA - MESSAGE_
VERTICAL_ SCHEMA - MINIMAP_
SIDE_ SCHEMA - MODIFIER_
SCHEMA - MOTION_
ROLE_ SCHEMA - NOTIFICATION_
IMPORTANCE_ SCHEMA - NOTIFICATION_
PERMISSION_ SCHEMA - NOTIFICATION_
PRESENTATION_ SCHEMA - OVERFLOW_
WRAP_ SCHEMA - PLAYBACK_
DIRECTION_ SCHEMA - PLAY_
STATE_ SCHEMA - POINTER_
KIND_ SCHEMA - POINTER_
TYPE_ SCHEMA - POPOVER_
ALIGN_ SCHEMA - POPOVER_
PLACEMENT_ SCHEMA - PROPERTY_
SCHEMA - PROTOCOL_
VERSION - REDUCED_
MOTION_ SCHEMA - REVEAL_
ALIGN_ SCHEMA - 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.
- SEMANTICS_
CHECKED_ SHIFT - Where the checked field sits in
Modifier::Semantics::state. - SEMANTICS_
CLICK_ ACTION_ BIT - The bit that exposes a click action on the node.
- SEMANTICS_
DISABLED_ SHIFT - Where the disabled field sits in
Modifier::Semantics::state: 0 unset, 1 enabled, 2 disabled. - SEMANTICS_
EXPANDED_ SHIFT - Where the expanded field sits in
Modifier::Semantics::state: 0 unset, 1 collapsed, 2 expanded. - SEMANTICS_
FOCUSED_ SHIFT - Where the focused field sits in
Modifier::Semantics::state: 0 unset, 1 not focused, 2 focused. - SEMANTICS_
FOCUS_ ACTION_ BIT - The bit that exposes a focus action on the node.
- SEMANTICS_
HIDDEN_ BIT - The bit that excludes the node from the accessibility tree.
- SEMANTICS_
ROLE_ SCHEMA - SEMANTICS_
SELECTED_ SHIFT - Where the selected field sits in
Modifier::Semantics::state. - SEMANTICS_
STATE_ MASK - Every bit
Modifier::Semantics::statemay set. - SEVERITY_
SCHEMA - SHAPE_
ROLE_ SCHEMA - SLOT_
ROLE_ SCHEMA - SNAP_
SCHEMA - SPACE_
ROLE_ SCHEMA - STEP_
POSITION_ SCHEMA - STORAGE_
OP_ SCHEMA - SYSTEM_
COLOR_ SCHEME_ SCHEMA - TEXT_
ALIGN_ SCHEMA - TEXT_
OVERFLOW_ SCHEMA - TILE_
MODE_ SCHEMA - TIMING_
KIND_ SCHEMA - TITLE_
BAR_ SCHEMA - TRANSFORM_
FUNCTION_ KIND_ SCHEMA - TYPE_
ROLE_ COUNT - How many type roles there are, which is how many font slots a theme carries.
- TYPE_
ROLE_ SCHEMA - USER_
SELECT_ SCHEMA - VERTICAL_
ALIGNMENT_ 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_ MAX_ BYTES - The largest event buffer the Host lends a browser Renderer.
- WEB_
EVENT_ BUFFER_ OFFSET - Where the event buffer starts inside the block
compose_rust_host_web_startreports. - WEB_
LEND_ EVENT_ BUFFER_ SYMBOL - The Host export a browser Renderer borrows a larger event buffer from.
- 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.
- WEB_
TABLE_ GLOBAL - The global the loader publishes the trampoline’s table under.
- WHEEL_
DELTA_ MODE_ SCHEMA - WIDGET_
SCHEMA - WINDOW_
HEIGHT_ CLASS_ SCHEMA - WINDOW_
MODE_ SCHEMA - WINDOW_
SIZE_ CLASS_ SCHEMA - WORD_
BREAK_ SCHEMA - WORD_
WRAP_ MODE_ SCHEMA
Functions§
- corner_
smoothing - The smoothing a
CornerCurvevalue draws with: clamped to 0..=1, NaN as 0. - modifier_
extra_ words - The
extra_wordsthe schema gives a modifier tag, orNonefor a tag it does not list.