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.
Members
newcontrolon_actionshow_errorset_queryset_all_viewsvisible_stage_idscancel_interactionupdate
new
fn new(palette: &Control) -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
on_action
fn on_action(self: &Self, callback: impl Fn(PreviewStageAction, Ref<Control>) -> Result<(), String> + 'static)
show_error
fn show_error(self: &Self, message: &str)
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.
set_all_views
fn set_all_views(self: &Self, all: bool)
visible_stage_ids
fn visible_stage_ids(self: &Self) -> Vec<PreviewStageId>
cancel_interaction
fn cancel_interaction(self: &Self)
Cancel detached corner-grip drafts before hiding or moving the board.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSameDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.