FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InkPresenter

    struct · ferroui-controls-inking · v0.5.0

    struct InkPresenter
    

    UI-thread ink coordinator. Services and input callbacks are stable, synchronous FerroUI objects; geometry and persistence are portable Rust implementations.

    View source

    Members

    MAX_ACTIVE_POINTERS

    const MAX_ACTIVE_POINTERS: usize
    

    Bounds synthetic multi-pointer input as well as native device input.

    Source

    new

    fn new() -> Rc<Self>
    

    Source

    input_device_types

    fn input_device_types(self: &Self) -> CoreInputDeviceTypes
    

    Source

    set_input_device_types

    fn set_input_device_types(self: &Self, value: CoreInputDeviceTypes)
    

    Source

    is_input_enabled

    fn is_input_enabled(self: &Self) -> bool
    

    Source

    set_is_input_enabled

    fn set_is_input_enabled(self: &Self, value: bool)
    

    Source

    update_default_drawing_attributes

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

    Source

    copy_default_drawing_attributes

    fn copy_default_drawing_attributes(self: &Self) -> InkDrawingAttributes
    

    Source

    set_predefined_configuration

    fn set_predefined_configuration(self: &Self, value: InkPresenterPredefinedConfiguration)
    

    Source

    high_contrast_adjustment

    fn high_contrast_adjustment(self: &Self) -> InkHighContrastAdjustment
    

    Source

    set_high_contrast_adjustment

    fn set_high_contrast_adjustment(self: &Self, value: InkHighContrastAdjustment)
    

    Source

    stroke_container

    fn stroke_container(self: &Self) -> Rc<InkStrokeContainer>
    

    Source

    input_processing_configuration

    fn input_processing_configuration(self: &Self) -> Rc<InkInputProcessingConfiguration>
    

    Source

    input_configuration

    fn input_configuration(self: &Self) -> Rc<InkInputConfiguration>
    

    Source

    stroke_input

    fn stroke_input(self: &Self) -> Rc<InkStrokeInput>
    

    Source

    unprocessed_input

    fn unprocessed_input(self: &Self) -> Rc<InkUnprocessedInput>
    

    Source

    ruler

    fn ruler(self: &Self) -> Rc<InkPresenterRuler>
    

    Source

    protractor

    fn protractor(self: &Self) -> Rc<InkPresenterProtractor>
    

    Source

    ruler_visible

    fn ruler_visible(self: &Self) -> bool
    

    Source

    protractor_visible

    fn protractor_visible(self: &Self) -> bool
    

    Source

    set_ruler_visible

    fn set_ruler_visible(self: &Self, value: bool)
    

    Source

    set_protractor_visible

    fn set_protractor_visible(self: &Self, value: bool)
    

    Source

    changed

    fn changed(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    strokes_collected

    fn strokes_collected(self: &Self, handler: impl Fn(&InkStrokesCollectedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    strokes_erased

    fn strokes_erased(self: &Self, handler: impl Fn(&InkStrokesErasedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    activate_custom_drying

    fn activate_custom_drying(self: &Self) -> Result<Rc<InkSynchronizer>, InkError>
    

    Source

    is_custom_drying

    fn is_custom_drying(self: &Self) -> bool
    

    Source

    has_active_pointer

    fn has_active_pointer(self: &Self, id: i32) -> bool
    

    Source

    cancel_pointer

    fn cancel_pointer(self: &Self, id: i32)
    

    Source

    cancel_all

    fn cancel_all(self: &Self)
    

    Source

    process_pointer

    fn process_pointer(self: &Self, phase: InkPointerPhase, e: &InkPointerEventArgs) -> Result<bool, InkError>
    

    Feeds a validated point from any platform. Returns whether the presenter consumed it; unprocessed listeners can also set handled synchronously.

    Source

    visible_strokes

    fn visible_strokes(self: &Self) -> Vec<Rc<InkStroke>>
    

    A snapshot for a renderer. Custom-dried strokes disappear only after EndDry.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • IUnknownImpl
    • MarkupTyped
    • PartialEq

    Availability

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