FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InkStrokeBuilder

    struct · ferroui-controls-inking · v0.5.0

    struct InkStrokeBuilder
    

    Stateful builder with separate Begin/Append/End and snapshot APIs. End consumes the pending input only after a stroke has been validated.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    set_default_drawing_attributes

    fn set_default_drawing_attributes(self: &Self, value: InkDrawingAttributes) -> Result<(), InkError>
    

    Source

    default_drawing_attributes

    fn default_drawing_attributes(self: &Self) -> InkDrawingAttributes
    

    Source

    create_stroke

    fn create_stroke(self: &Self, points: impl IntoIterator<Item = Point>) -> Result<Rc<InkStroke>, InkError>
    

    Source

    create_stroke_from_ink_points

    fn create_stroke_from_ink_points(self: &Self, points: impl IntoIterator<Item = InkPoint>, transform: Matrix) -> Result<Rc<InkStroke>, InkError>
    

    Source

    begin_stroke

    fn begin_stroke(self: &Self, point: InkPoint) -> Result<(), InkError>
    

    Source

    append_to_stroke

    fn append_to_stroke(self: &Self, point: InkPoint) -> Result<(), InkError>
    

    Source

    end_stroke

    fn end_stroke(self: &Self, point: InkPoint) -> Result<Rc<InkStroke>, InkError>
    

    Source

    cancel_stroke

    fn cancel_stroke(self: &Self)
    

    Source

    is_building_stroke

    fn is_building_stroke(self: &Self) -> bool
    

    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
    • IUnknownImpl
    • Default

    Availability

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