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.
Members
newset_default_drawing_attributesdefault_drawing_attributescreate_strokecreate_stroke_from_ink_pointsbegin_strokeappend_to_strokeend_strokecancel_strokeis_building_stroke
new
fn new() -> Self
set_default_drawing_attributes
fn set_default_drawing_attributes(self: &Self, value: InkDrawingAttributes) -> Result<(), InkError>
default_drawing_attributes
fn default_drawing_attributes(self: &Self) -> InkDrawingAttributes
create_stroke
fn create_stroke(self: &Self, points: impl IntoIterator<Item = Point>) -> Result<Rc<InkStroke>, InkError>
create_stroke_from_ink_points
fn create_stroke_from_ink_points(self: &Self, points: impl IntoIterator<Item = InkPoint>, transform: Matrix) -> Result<Rc<InkStroke>, InkError>
begin_stroke
fn begin_stroke(self: &Self, point: InkPoint) -> Result<(), InkError>
append_to_stroke
fn append_to_stroke(self: &Self, point: InkPoint) -> Result<(), InkError>
end_stroke
fn end_stroke(self: &Self, point: InkPoint) -> Result<Rc<InkStroke>, InkError>
cancel_stroke
fn cancel_stroke(self: &Self)
is_building_stroke
fn is_building_stroke(self: &Self) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherIUnknownImplDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.