PreviewEnvironmentEditor
struct · ferroui-designer · v0.5.0
struct PreviewEnvironmentEditor
The host retains this object while its control is visible. Callbacks are weak and do not make control/host cycles; applying validates the complete draft before notifying the host.
Members
new
fn new(initial: PreviewEnvironment) -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
set_design_size_hint
fn set_design_size_hint(self: &Self, width: Option<f64>, height: Option<f64>)
value
fn value(self: &Self) -> Result<PreviewEnvironment, String>
on_apply
fn on_apply(self: &Self, callback: impl Fn(PreviewEnvironment) -> Result<(), String> + 'static)
on_cancel
fn on_cancel(self: &Self, callback: impl Fn() -> () + 'static)
apply
fn apply(self: &Self) -> Result<(), String>
cancel
fn cancel(self: &Self)
retire
fn retire(self: &Self)
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.