Module view

Module view 

Source
Expand description

Views are organized as a tree. A view might receive / send events and render itself.

The z-level of the n-th child of a view is less or equal to the z-level of its n+1-th child.

Events travel from the root to the leaves, only the leaf views will handle the root events, but any view can send events to its parent. From the events it receives from its children, a view resends the ones it doesn’t handle to its own parent. Hence an event sent from a child might bubble up to the root. If it reaches the root without being captured by any view, then it will be written to the main event channel and will be sent to every leaf in one of the next loop iterations.

Re-exports§

pub use self::notification::NotificationEvent;

Modules§

action_label
battery
button
calculator
clock
common
dialog
A modal dialog view that displays a message and custom buttons.
dictionary
file_chooser
filler
frontlight
home
icon
image
input_field
intermission
key
keyboard
label
labeled_icon
menu
menu_entry
named_input
navigation
Generic navigation UI components.
notification
Notification view component for displaying temporary or persistent messages.
ota
page_label
preset
presets_list
reader
rotation_values
rounded_button
search_bar
settings_editor
Settings editor module for managing application configuration.
sketch
slider
toggle
toggleable_keyboard
A reusable keyboard component that can be toggled on and off.
top_bar
touch_events

Structs§

IdFeeder
RenderData
RenderQueue
UpdateData

Enums§

Align
AppCmd
EntryId
EntryKind
Event
KeyboardEvent
SliderId
TextKind
ToggleEvent
ViewId

Constants§

BIG_BAR_HEIGHT
BORDER_RADIUS_LARGE
BORDER_RADIUS_MEDIUM
BORDER_RADIUS_SMALL
CLOSE_IGNITION_DELAY
MAX_UPDATE_DELAY
SMALL_BAR_HEIGHT
THICKNESS_LARGE
THICKNESS_MEDIUM
THICKNESS_SMALL

Statics§

ID_FEEDER

Traits§

View

Functions§

handle_event
process_render_queue
render
wait_for_all

Type Aliases§

Bus
Hub
Id
RQ 🔒