#[repr(i32)]pub enum BridgeKind {
Show 22 variants
Pressed = 0,
TextChanged = 1,
ToggleChanged = 2,
ValueChanged = 3,
SelectionChanged = 4,
NavBack = 5,
FrameChanged = 6,
Deeplink = 7,
PresentButton = 8,
PresentText = 9,
PresentDismissed = 10,
Gesture = 11,
Custom = 12,
MenuAction = 13,
Lifecycle = 14,
PresentFile = 15,
FocusChanged = 16,
Submitted = 17,
WindowResized = 18,
SafeArea = 19,
WindowClosed = 20,
WindowFocused = 21,
}Expand description
One numeric event kind. as i32 is the wire value.
Variants§
Pressed = 0
Click/press. No payload.
TextChanged = 1
text = the field’s full new text.
ToggleChanged = 2
num != 0 ⇒ on.
ValueChanged = 3
num = the new value.
SelectionChanged = 4
num = the selected index.
num == 1 ⇒ the native side already popped (predictive back / up arrow).
FrameChanged = 6
Nav/tab page size report; text = "w,h" in px (Rust divides by density).
Deeplink = 7
Warm deep link; text = the route.
PresentButton = 8
Modal answered with a button; num = the button index.
PresentText = 9
Modal answered with text; text = the entry.
PresentDismissed = 10
Modal dismissed.
Gesture = 11
Gesture; num = phase (0 tap, 1 began, 2 changed, 3 ended), text = "x,y,tx,ty" px.
Custom = 12
Piece-defined open channel (Event::Custom with an empty tag): the piece reads the
raw num/text payload.
MenuAction = 13
Menu selection; the event’s node id is the chosen action’s dispatch id.
Lifecycle = 14
App lifecycle; num = the phase code (day_spec::Lifecycle order).
PresentFile = 15
File-picker answer; text = chosen locators joined by the unit separator.
FocusChanged = 16
num != 0 ⇒ gained keyboard focus.
Submitted = 17
IME action / Return.
WindowResized = 18
Root size change; text = "w,h" in px. Routed to WINDOW_NODE as a window
resize (the rail rotation, late inset passes, and the soft keyboard ride).
SafeArea = 19
Safe-area report from an edge-to-edge backend; text =
"top,bottom,leading,trailing" in px (Rust divides by density and feeds
day_core::set_safe_area). Node id ignored; no Event is emitted.
WindowClosed = 20
A secondary window closed (docs/windows.md); the node id is the window’s root.
WindowFocused = 21
A secondary window’s key/active state changed; num != 0 ⇒ focused.
Implementations§
Source§impl BridgeKind
impl BridgeKind
Sourcepub const ALL: [BridgeKind; 22]
pub const ALL: [BridgeKind; 22]
Every variant, for uniqueness/parity tests and exhaustive dispatch.
Trait Implementations§
Source§impl Clone for BridgeKind
impl Clone for BridgeKind
Source§fn clone(&self) -> BridgeKind
fn clone(&self) -> BridgeKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BridgeKind
impl Debug for BridgeKind
Source§impl PartialEq for BridgeKind
impl PartialEq for BridgeKind
Source§fn eq(&self, other: &BridgeKind) -> bool
fn eq(&self, other: &BridgeKind) -> bool
self and other values to be equal, and is used by ==.