Expand description
Xila WebAssembly runtime and guest API (wasm).
This crate exposes two feature-selected surfaces:
- Guest API (
guest/default_guestfeatures, targetwasm32-wasip1): The#![no_std]guest interface linked by Xila WebAssembly applications. It re-exportsfd_controlfor custom VFS descriptor control commands overwasi_snapshot_preview1and, when thegraphicsfeature is enabled, the generated LVGL widget, window, style, layout, file-picker, and event functions backed by thehost::xila_graphics_callimport, along withEventCodeandEVENT_CLOSE_REQUESTED. - Host runtime (
hostfeature): Thewasmi-based WebAssembly virtual machine executable (WasmDevice), WASI Preview 1 host imports (WasiContext,add_wasi_to_linker), linear memory pointer translation (translation), and host-side LVGL graphics call dispatch (graphics).
Re-exports§
pub use crate::FunctionCall;pub use crate::EVENT_CLOSE_REQUESTED;pub use crate::EventCode;
Modules§
Structs§
- Area
- Calendar
Date - Chart
Cursor - Chart
Series - Color
- Color16
- Color32
- Color16a
- Color
Hsv - Display
- Font
- Group
- Layer
- Matrix
- Object
- Point
- Point
Precise - Scale
Section
Enums§
- Align
- Anim
Enable - ArcMode
- BarMode
- BarOrientation
- BaseDir
- Blend
Mode - Border
Side - Buttonmatrix
Ctrl - Chart
Axis - Chart
Type - Mirrors LVGL’s
lv_chart_type_t; the host forwards the value unchanged. - Chart
Update Mode - Color
Format - Dir
- Event
Code - File
Picker Mode - System file picker selection policy. Selection never creates or truncates a file.
- File
Picker Status - A result remains available until the caller deletes the picker object.
- Flex
Align - Flex
Flow - Function
Call - Auto-generated file for Xila bindings WASM module Do not edit manually.
- GradDir
- Grid
Align - Label
Long Mode - Lvgl
Result - Menu
Mode Header - Menu
Mode Root Back Button - Object
Flag - Object
Point Transform Flag - Roller
Mode - Scale
Mode - Screen
Load Anim - Scroll
Snap - Scrollbar
Mode - Slider
Mode - Slider
Orientation - Span
Mode - Span
Overflow - Style
Res - Style
State Cmp - Table
Cell Ctrl - Text
Align - Text
Decor - Text
Flag - c_void
- Equivalent to C’s
voidtype when used as a pointer.
Constants§
- COORD_
MAX - COORD_
MIN - COORD_
TYPE_ MASK - COORD_
TYPE_ PX - COORD_
TYPE_ PX_ NEG - COORD_
TYPE_ SHIFT - COORD_
TYPE_ SPEC - EVENT_
CLOSE_ REQUESTED - Xila window close request, separate from LVGL’s standard events.
- FLEX_
COLUMN - FLEX_
REVERSE - FLEX_
WRAP - PART_
ANY - PART_
CURSOR - PART_
CUSTOM_ FIRST - PART_
INDICATOR - PART_
ITEMS - PART_
KNOB - PART_
MAIN - PART_
SCROLLBAR - PART_
SELECTED - STATE_
ALT - STATE_
ANY - STATE_
CHECKED - STATE_
DEFAULT - STATE_
DISABLED - STATE_
EDITED - STATE_
FOCUSED - STATE_
FOCUS_ KEY - STATE_
HOVERED - STATE_
PRESSED - STATE_
SCROLLED - STATE_
USER_ 1 - STATE_
USER_ 2 - STATE_
USER_ 3 - STATE_
USER_ 4
Functions§
- arc_
create ⚠ - Safety
- as_
usize - badge_
create ⚠ - Safety
- bar_
create ⚠ - Safety
- button_
create ⚠ - Safety
- buttonmatrix_
create ⚠ - Safety
- buttonmatrix_
get_ ⚠selected_ button - Safety
- buttonmatrix_
set_ ⚠map - Safety
- calendar_
create ⚠ - Safety
- calendar_
get_ ⚠shown_ date - Safety
- calendar_
set_ ⚠highlights - Safety
- calendar_
set_ ⚠month_ shown - Safety
- calendar_
set_ ⚠today - Safety
- card_
create ⚠ - Safety
- chart_
add_ ⚠series_ slot - Safety
- chart_
create ⚠ - Safety
- chart_
get_ ⚠value - Safety
- chart_
set_ ⚠axis_ range - Safety
- chart_
set_ ⚠point_ count - Safety
- chart_
set_ ⚠type - Safety
- chart_
set_ ⚠values - Safety
- checkbox_
create ⚠ - Safety
- checkbox_
set_ ⚠text - Safety
- coord_
get_ pct - coord_
is_ pct - coord_
is_ px - coord_
is_ spec - coord_
plain - coord_
set_ spec - coord_
type - dropdown_
close ⚠ - Safety
- dropdown_
create ⚠ - Safety
- dropdown_
get_ ⚠highlight - Safety
- dropdown_
get_ ⚠option_ count - Safety
- dropdown_
get_ ⚠selected - Safety
- dropdown_
get_ ⚠selected_ string - Safety
- dropdown_
is_ ⚠open_ state - Safety
- dropdown_
open ⚠ - Safety
- dropdown_
set_ ⚠options - Safety
- dropdown_
set_ ⚠selected - Safety
- dropdown_
set_ ⚠selected_ highlight - Safety
- fd_
control ⚠ - Runs a file-system-specific control command on an open descriptor.
- file_
picker_ ⚠create - Safety
- file_
picker_ ⚠get_ path - Safety
- file_
picker_ ⚠get_ status - Safety
- file_
picker_ ⚠reset - Safety
- grid_fr⚠
- Safety
- indexed_
canvas_ ⚠create - Safety
- indexed_
canvas_ ⚠set_ pixels - Safety
- keyboard_
create ⚠ - Safety
- keyboard_
set_ ⚠textarea - Safety
- label_
create ⚠ - Safety
- label_
set_ ⚠text - Safety
- led_
create ⚠ - Safety
- led_off⚠
- Safety
- led_on⚠
- Safety
- led_
set_ ⚠brightness - Safety
- led_
toggle ⚠ - Safety
- line_
create ⚠ - Safety
- line_
set_ ⚠points - Safety
- line_
set_ ⚠y_ invert - Safety
- list_
add_ ⚠text - Safety
- list_
add_ ⚠text_ button - Safety
- list_
create ⚠ - Safety
- list_
set_ ⚠button_ text - Safety
- max
- min
- object_
add_ ⚠flag - Safety
- object_
add_ ⚠state - Safety
- object_
align ⚠ - Safety
- object_
create ⚠ - Safety
- object_
delete ⚠ - Safety
- object_
get_ ⚠height - Safety
- object_
get_ ⚠state - Safety
- object_
get_ ⚠width - Safety
- object_
get_ ⚠x - Safety
- object_
get_ ⚠y - Safety
- object_
remove_ ⚠flag - Safety
- object_
remove_ ⚠state - Safety
- object_
set_ ⚠background - Safety
- object_
set_ ⚠border - Safety
- object_
set_ ⚠flex_ align - Safety
- object_
set_ ⚠flex_ flow - Safety
- object_
set_ ⚠flex_ grow - Safety
- object_
set_ ⚠font - Safety
- object_
set_ ⚠grid_ align - Safety
- object_
set_ ⚠grid_ cell - Safety
- object_
set_ ⚠grid_ dsc_ array - Safety
- object_
set_ ⚠height - Safety
- object_
set_ ⚠layout - Safety
- object_
set_ ⚠min_ max_ size - Safety
- object_
set_ ⚠padding - Safety
- object_
set_ ⚠pos - Safety
- object_
set_ ⚠radius - Safety
- object_
set_ ⚠size - Safety
- object_
set_ ⚠surface - Safety
- object_
set_ ⚠text_ align - Safety
- object_
set_ ⚠text_ color - Safety
- object_
set_ ⚠theme_ error - Safety
- object_
set_ ⚠theme_ variant - Safety
- object_
set_ ⚠width - Safety
- object_
update_ ⚠layout - Safety
- pct
- percentage⚠
- Safety
- range_
get_ ⚠start_ value - Safety
- range_
get_ ⚠value - Safety
- range_
set_ ⚠mode - Safety
- range_
set_ ⚠orientation - Safety
- range_
set_ ⚠range - Safety
- range_
set_ ⚠value - Safety
- roller_
create ⚠ - Safety
- roller_
get_ ⚠option_ count - Safety
- roller_
get_ ⚠selected - Safety
- roller_
get_ ⚠selected_ string - Safety
- roller_
set_ ⚠options - Safety
- roller_
set_ ⚠selected - Safety
- roller_
set_ ⚠visible_ row_ count - Safety
- size_
content - slider_
create ⚠ - Safety
- spinbox_
create ⚠ - Safety
- spinbox_
decrement ⚠ - Safety
- spinbox_
get_ ⚠value - Safety
- spinbox_
increment ⚠ - Safety
- spinbox_
set_ ⚠digit_ format - Safety
- spinbox_
set_ ⚠range - Safety
- spinbox_
set_ ⚠rollover - Safety
- spinbox_
set_ ⚠step - Safety
- spinbox_
set_ ⚠value - Safety
- spinner_
create ⚠ - Safety
- spinner_
get_ ⚠animation_ duration - Safety
- spinner_
get_ ⚠arc_ sweep - Safety
- spinner_
set_ ⚠animation - Safety
- switch_
create ⚠ - Safety
- tabview_
add_ ⚠tab - Safety
- tabview_
create ⚠ - Safety
- tabview_
get_ ⚠tab_ active - Safety
- textarea_
create ⚠ - Safety
- textarea_
get_ ⚠text - Safety
- textarea_
get_ ⚠text_ length - Safety
- textarea_
set_ ⚠max_ length - Safety
- textarea_
set_ ⚠one_ line - Safety
- textarea_
set_ ⚠text - Safety
- tileview_
add_ ⚠tile - Safety
- tileview_
create ⚠ - Safety
- tileview_
get_ ⚠tile_ active - Safety
- tileview_
set_ ⚠tile - Safety
- window_
create ⚠ - Safety
- window_
pop_ ⚠event - Safety
- window_
pop_ ⚠pointer_ event - Safety
- window_
set_ ⚠icon - Safety
- xila_
graphics_ arc_ create - xila_
graphics_ badge_ create - xila_
graphics_ bar_ create - xila_
graphics_ button_ create - xila_
graphics_ buttonmatrix_ create - xila_
graphics_ buttonmatrix_ get_ selected_ button - xila_
graphics_ buttonmatrix_ set_ map - xila_
graphics_ calendar_ create - xila_
graphics_ calendar_ get_ shown_ date - xila_
graphics_ calendar_ set_ highlights - xila_
graphics_ calendar_ set_ month_ shown - xila_
graphics_ calendar_ set_ today - xila_
graphics_ ⚠call - xila_
graphics_ card_ create - xila_
graphics_ chart_ add_ series_ slot - xila_
graphics_ chart_ create - xila_
graphics_ chart_ get_ value - xila_
graphics_ chart_ set_ axis_ range - xila_
graphics_ chart_ set_ point_ count - xila_
graphics_ chart_ set_ type - xila_
graphics_ chart_ set_ values - xila_
graphics_ checkbox_ create - xila_
graphics_ checkbox_ set_ text - xila_
graphics_ dropdown_ close - xila_
graphics_ dropdown_ create - xila_
graphics_ dropdown_ get_ highlight - xila_
graphics_ dropdown_ get_ option_ count - xila_
graphics_ dropdown_ get_ selected - xila_
graphics_ dropdown_ get_ selected_ string - xila_
graphics_ dropdown_ is_ open_ state - xila_
graphics_ dropdown_ open - xila_
graphics_ dropdown_ set_ options - xila_
graphics_ dropdown_ set_ selected - xila_
graphics_ dropdown_ set_ selected_ highlight - xila_
graphics_ file_ picker_ create - xila_
graphics_ file_ picker_ get_ path - xila_
graphics_ file_ picker_ get_ status - xila_
graphics_ file_ picker_ reset - xila_
graphics_ grid_ fr - xila_
graphics_ indexed_ canvas_ create - xila_
graphics_ indexed_ canvas_ set_ pixels - xila_
graphics_ keyboard_ create - xila_
graphics_ keyboard_ set_ textarea - xila_
graphics_ label_ create - xila_
graphics_ label_ set_ text - xila_
graphics_ led_ create - xila_
graphics_ led_ off - xila_
graphics_ led_ on - xila_
graphics_ led_ set_ brightness - xila_
graphics_ led_ toggle - xila_
graphics_ line_ create - xila_
graphics_ line_ set_ points - xila_
graphics_ line_ set_ y_ invert - xila_
graphics_ list_ add_ text - xila_
graphics_ list_ add_ text_ button - xila_
graphics_ list_ create - xila_
graphics_ list_ set_ button_ text - xila_
graphics_ object_ add_ flag - xila_
graphics_ object_ add_ state - xila_
graphics_ object_ align - xila_
graphics_ object_ create - xila_
graphics_ object_ delete - xila_
graphics_ object_ get_ height - xila_
graphics_ object_ get_ state - xila_
graphics_ object_ get_ width - xila_
graphics_ object_ get_ x - xila_
graphics_ object_ get_ y - xila_
graphics_ object_ remove_ flag - xila_
graphics_ object_ remove_ state - xila_
graphics_ object_ set_ background - xila_
graphics_ object_ set_ border - xila_
graphics_ object_ set_ flex_ align - xila_
graphics_ object_ set_ flex_ flow - xila_
graphics_ object_ set_ flex_ grow - xila_
graphics_ object_ set_ font - xila_
graphics_ object_ set_ grid_ align - xila_
graphics_ object_ set_ grid_ cell - xila_
graphics_ object_ set_ grid_ dsc_ array - xila_
graphics_ object_ set_ height - xila_
graphics_ object_ set_ layout - xila_
graphics_ object_ set_ min_ max_ size - xila_
graphics_ object_ set_ padding - xila_
graphics_ object_ set_ pos - xila_
graphics_ object_ set_ radius - xila_
graphics_ object_ set_ size - xila_
graphics_ object_ set_ surface - xila_
graphics_ object_ set_ text_ align - xila_
graphics_ object_ set_ text_ color - xila_
graphics_ object_ set_ theme_ error - xila_
graphics_ object_ set_ theme_ variant - xila_
graphics_ object_ set_ width - xila_
graphics_ object_ update_ layout - xila_
graphics_ percentage - xila_
graphics_ range_ get_ start_ value - xila_
graphics_ range_ get_ value - xila_
graphics_ range_ set_ mode - xila_
graphics_ range_ set_ orientation - xila_
graphics_ range_ set_ range - xila_
graphics_ range_ set_ value - xila_
graphics_ roller_ create - xila_
graphics_ roller_ get_ option_ count - xila_
graphics_ roller_ get_ selected - xila_
graphics_ roller_ get_ selected_ string - xila_
graphics_ roller_ set_ options - xila_
graphics_ roller_ set_ selected - xila_
graphics_ roller_ set_ visible_ row_ count - xila_
graphics_ slider_ create - xila_
graphics_ spinbox_ create - xila_
graphics_ spinbox_ decrement - xila_
graphics_ spinbox_ get_ value - xila_
graphics_ spinbox_ increment - xila_
graphics_ spinbox_ set_ digit_ format - xila_
graphics_ spinbox_ set_ range - xila_
graphics_ spinbox_ set_ rollover - xila_
graphics_ spinbox_ set_ step - xila_
graphics_ spinbox_ set_ value - xila_
graphics_ spinner_ create - xila_
graphics_ spinner_ get_ animation_ duration - xila_
graphics_ spinner_ get_ arc_ sweep - xila_
graphics_ spinner_ set_ animation - xila_
graphics_ switch_ create - xila_
graphics_ tabview_ add_ tab - xila_
graphics_ tabview_ create - xila_
graphics_ tabview_ get_ tab_ active - xila_
graphics_ textarea_ create - xila_
graphics_ textarea_ get_ text - xila_
graphics_ textarea_ get_ text_ length - xila_
graphics_ textarea_ set_ max_ length - xila_
graphics_ textarea_ set_ one_ line - xila_
graphics_ textarea_ set_ text - xila_
graphics_ tileview_ add_ tile - xila_
graphics_ tileview_ create - xila_
graphics_ tileview_ get_ tile_ active - xila_
graphics_ tileview_ set_ tile - xila_
graphics_ window_ create - xila_
graphics_ window_ pop_ event - xila_
graphics_ window_ pop_ pointer_ event - xila_
graphics_ window_ set_ icon
Type Aliases§
- Anim
- Blur
Quality - Error
- LvObject
- Object
Class - Object
Handle - Opa
- Part
- Result
- State
- Style
- Style
Prop - Style
Selector - Text
Leading Trim - Value
Precise