FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PreviewStageView

    struct · ferroui-designer · v0.5.0

    struct PreviewStageView
    

    The view never owns document or runtime state. A host supplies stable native stage controls and immutable descriptions, then handles explicit guarded commands.

    View source

    Members

    new

    fn new(palette: &Control) -> Rc<Self>
    

    Source

    control

    fn control(self: &Self) -> Ref<Control>
    

    Source

    on_action

    fn on_action(self: &Self, callback: impl Fn(PreviewStageAction, Ref<Control>) -> Result<(), String> + 'static)
    

    Source

    show_error

    fn show_error(self: &Self, message: &str)
    

    Source

    set_query

    fn set_query(self: &Self, query: &str)
    

    Filtering changes presentation only; accepted roots stay attached and retain their native input, scroll state and card zoom while temporarily hidden.

    Source

    set_all_views

    fn set_all_views(self: &Self, all: bool)
    

    Source

    visible_stage_ids

    fn visible_stage_ids(self: &Self) -> Vec<PreviewStageId>
    

    Source

    cancel_interaction

    fn cancel_interaction(self: &Self)
    

    Cancel detached corner-grip drafts before hiding or moving the board.

    Source

    update

    fn update(self: &Rc<Self>, stages: &[PreviewStageInfo], hosts: &BTreeMap<PreviewStageId, Ref<Control>>, active: Option<PreviewStageId>, current_uri: &str, _total: usize)
    

    Reconcile cards by stable identity and graph epoch. Unchanged live roots stay attached, preserving input state, focus and scroll while another card updates.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • Drop

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.