FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PreviewPrototypeSession

    struct · ferroui-designer · v0.5.0

    struct PreviewPrototypeSession
    

    A bounded navigation cursor over one accepted graph. It owns no source session, controls, timers or application state. Hosts validate native/source authority before activating an interaction and can retain native views across Back.

    View source

    Members

    start

    fn start(graph: &PreviewPrototype, flow_name: &str) -> Result<Self, String>
    

    The host must first validate graph stage references against its live board. This operation also validates structure so standalone callers cannot install ambiguous interactions, invalid anchors or unbounded descriptors.

    Source

    flow

    fn flow(self: &Self) -> &str
    

    Source

    current

    fn current(self: &Self) -> PreviewStageId
    

    The only stage that accepts an interaction: the top overlay, or the screen.

    Source

    screen

    fn screen(self: &Self) -> PreviewStageId
    

    The base screen beneath any open overlays. History stores these IDs only.

    Source

    overlays

    fn overlays(self: &Self) -> &[PreviewPrototypeOverlay]
    

    Overlay entries in back-to-front order, excluding the base screen.

    Source

    active_stages

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

    Visible native hosts in back-to-front order. Only current() accepts actions.

    Source

    history

    fn history(self: &Self) -> &[PreviewStageId]
    

    Source

    can_go_back

    fn can_go_back(self: &Self) -> bool
    

    Source

    restart

    fn restart(self: &mut Self) -> PreviewStageId
    

    Restart navigation; the host decides separately whether native views reset.

    Source

    fn activate_link(self: &mut Self, index: usize) -> Result<PreviewStageId, String>
    

    Source

    activate

    fn activate(self: &mut Self, link: &PreviewPrototypeLink) -> Result<PreviewStageId, String>
    

    Source

    back

    fn back(self: &mut Self) -> Result<PreviewStageId, String>
    

    Close the top overlay first; otherwise return through screen history.

    Source

    close_overlay

    fn close_overlay(self: &mut Self) -> Result<PreviewStageId, String>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • TreeModel
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

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