FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PreviewStageEditor

    struct · ferroui-designer · v0.5.0

    struct PreviewStageEditor
    

    A reusable form with an independently scrolling body and fixed Apply/Cancel footer. Source documents are immutable snapshots used to offer actual definitions and states.

    View source

    Members

    new

    fn new(initial: PreviewStageConfiguration, sources: Vec<PreviewStageSource>) -> Rc<Self>
    

    Source

    control

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

    Source

    value

    fn value(self: &Self) -> Result<PreviewStageConfiguration, String>
    

    Source

    on_apply

    fn on_apply(self: &Self, callback: impl Fn(PreviewStageConfiguration) -> Result<(), String> + 'static)
    

    Source

    on_close

    fn on_close(self: &Self, callback: impl Fn() -> () + 'static)
    

    Source

    apply

    fn apply(self: &Self) -> Result<(), String>
    

    Source

    cancel

    fn cancel(self: &Self)
    

    Source

    retire

    fn retire(self: &Self)
    

    Source

    show_error

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

    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

    Availability

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