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.
Members
MAX_ACTIVE_POINTERSnewinput_device_typesset_input_device_typesis_input_enabledset_is_input_enabledupdate_default_drawing_attributescopy_default_drawing_attributesset_predefined_configurationhigh_contrast_adjustmentset_high_contrast_adjustmentstroke_containerinput_processing_configurationinput_configurationstroke_inputunprocessed_inputrulerprotractorruler_visibleprotractor_visibleset_ruler_visibleset_protractor_visiblechangedstrokes_collectedstrokes_erasedactivate_custom_dryingis_custom_dryinghas_active_pointercancel_pointercancel_allprocess_pointervisible_strokes
MAX_ACTIVE_POINTERS
const MAX_ACTIVE_POINTERS: usize
Bounds synthetic multi-pointer input as well as native device input.
new
fn new() -> Rc<Self>
input_device_types
fn input_device_types(self: &Self) -> CoreInputDeviceTypes
set_input_device_types
fn set_input_device_types(self: &Self, value: CoreInputDeviceTypes)
is_input_enabled
fn is_input_enabled(self: &Self) -> bool
set_is_input_enabled
fn set_is_input_enabled(self: &Self, value: bool)
update_default_drawing_attributes
fn update_default_drawing_attributes(self: &Self, value: &InkDrawingAttributes) -> Result<(), InkError>
copy_default_drawing_attributes
fn copy_default_drawing_attributes(self: &Self) -> InkDrawingAttributes
set_predefined_configuration
fn set_predefined_configuration(self: &Self, value: InkPresenterPredefinedConfiguration)
high_contrast_adjustment
fn high_contrast_adjustment(self: &Self) -> InkHighContrastAdjustment
set_high_contrast_adjustment
fn set_high_contrast_adjustment(self: &Self, value: InkHighContrastAdjustment)
stroke_container
fn stroke_container(self: &Self) -> Rc<InkStrokeContainer>
input_processing_configuration
fn input_processing_configuration(self: &Self) -> Rc<InkInputProcessingConfiguration>
input_configuration
fn input_configuration(self: &Self) -> Rc<InkInputConfiguration>
stroke_input
fn stroke_input(self: &Self) -> Rc<InkStrokeInput>
unprocessed_input
fn unprocessed_input(self: &Self) -> Rc<InkUnprocessedInput>
ruler
fn ruler(self: &Self) -> Rc<InkPresenterRuler>
protractor
fn protractor(self: &Self) -> Rc<InkPresenterProtractor>
ruler_visible
fn ruler_visible(self: &Self) -> bool
protractor_visible
fn protractor_visible(self: &Self) -> bool
set_ruler_visible
fn set_ruler_visible(self: &Self, value: bool)
set_protractor_visible
fn set_protractor_visible(self: &Self, value: bool)
changed
fn changed(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
strokes_collected
fn strokes_collected(self: &Self, handler: impl Fn(&InkStrokesCollectedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
strokes_erased
fn strokes_erased(self: &Self, handler: impl Fn(&InkStrokesErasedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
activate_custom_drying
fn activate_custom_drying(self: &Self) -> Result<Rc<InkSynchronizer>, InkError>
is_custom_drying
fn is_custom_drying(self: &Self) -> bool
has_active_pointer
fn has_active_pointer(self: &Self, id: i32) -> bool
cancel_pointer
fn cancel_pointer(self: &Self, id: i32)
cancel_all
fn cancel_all(self: &Self)
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.
visible_strokes
fn visible_strokes(self: &Self) -> Vec<Rc<InkStroke>>
A snapshot for a renderer. Custom-dried strokes disappear only after EndDry.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherIUnknownImplMarkupTypedPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.