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.
Members
new
fn new(initial: PreviewStageConfiguration, sources: Vec<PreviewStageSource>) -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
value
fn value(self: &Self) -> Result<PreviewStageConfiguration, String>
on_apply
fn on_apply(self: &Self, callback: impl Fn(PreviewStageConfiguration) -> Result<(), String> + 'static)
on_close
fn on_close(self: &Self, callback: impl Fn() -> () + 'static)
apply
fn apply(self: &Self) -> Result<(), String>
cancel
fn cancel(self: &Self)
retire
fn retire(self: &Self)
show_error
fn show_error(self: &Self, message: &str)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSame
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.