pub struct MockWidget {Show 25 fields
pub kind: &'static str,
pub node: u64,
pub text: String,
pub placeholder: String,
pub value: f64,
pub flag: bool,
pub enabled: bool,
pub editable: bool,
pub selectable: bool,
pub spellcheck: bool,
pub children: Vec<u64>,
pub frame: Rect,
pub a11y: A11yProps,
pub scroll_content: Size,
pub scroll_offset: Point,
pub ops: Vec<DrawOp>,
pub background: Option<Color>,
pub corner_radius: f64,
pub clips: bool,
pub surface_role: Option<SurfaceRole>,
pub font: Option<FontSpec>,
pub focused: bool,
pub opacity: Option<f64>,
pub transform: Option<Transform>,
pub last_anim: Option<AnimSpec>,
}Fields§
§kind: &'static str§node: u64§text: String§placeholder: String§value: f64§flag: bool§enabled: bool§editable: booltext_area attributes (probe-visible for tests): editable/read-only, selectable, spell-check.
selectable: bool§spellcheck: bool§children: Vec<u64>§frame: Rect§a11y: A11yProps§scroll_content: Size§scroll_offset: PointThe scroll offset after the last scroll_to (docs/scroll.md), computed with the same
minimal-reveal clamp every real backend applies — probe-visible for tests.
ops: Vec<DrawOp>§background: Option<Color>Surface style from a background/corner_radius decorator (probe-visible for tests).
corner_radius: f64§clips: bool§surface_role: Option<SurfaceRole>Semantic theme-adaptive surface (a form section card) — probe-visible for tests.
font: Option<FontSpec>A label’s resolved font spec (probe-visible so tests can assert e.g. Font::Custom flow).
focused: boolLast focus state driven through the focus duty (docs/focus.md) — probe-visible.
opacity: Option<f64>Last opacity applied via set_opacity (§8.4) — None until touched (probe-visible).
transform: Option<Transform>Last transform applied via set_transform (§8.4) — probe-visible.
last_anim: Option<AnimSpec>The most recent animation intent seen on ANY seam for this widget (update/set_frame/
set_opacity/set_transform). Lets tests assert with_animation threaded the intent.
Trait Implementations§
Source§impl Clone for MockWidget
impl Clone for MockWidget
Source§fn clone(&self) -> MockWidget
fn clone(&self) -> MockWidget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more