FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CanvasGuidesEditor

    struct · ferroui-designer · v0.5.0

    struct CanvasGuidesEditor
    

    View source

    Members

    new

    fn new(initial: CanvasGuideSettings) -> Rc<Self>
    

    Source

    control

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

    Source

    value

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

    Source

    add_guide

    fn add_guide(self: &Rc<Self>, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
    

    Source

    set_guide_position

    fn set_guide_position(self: &Self, id: u64, draft: &str) -> Result<(), String>
    

    Source

    remove_guide

    fn remove_guide(self: &Self, id: u64) -> Result<(), String>
    

    Source

    on_apply

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

    Source

    on_cancel

    fn on_cancel(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

    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.