CanvasGuidesEditor
struct · ferroui-designer · v0.5.0
struct CanvasGuidesEditor
Members
new
fn new(initial: CanvasGuideSettings) -> Rc<Self>
control
fn control(self: &Self) -> &Ref<StackPanel>
value
fn value(self: &Self) -> Result<CanvasGuideSettings, String>
add_guide
fn add_guide(self: &Rc<Self>, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
set_guide_position
fn set_guide_position(self: &Self, id: u64, draft: &str) -> Result<(), String>
remove_guide
fn remove_guide(self: &Self, id: u64) -> Result<(), String>
on_apply
fn on_apply(self: &Self, callback: impl Fn(CanvasGuideSettings) -> 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.