ITextEditProvider
trait · ferroui-controls · v0.5.0
trait ITextEditProvider: ITextProvider
WinUI's TextEdit pattern, which inherits Text independently of Text2. Returned ranges use the same live document and UTF-16 positions as Text.
Members
raises_text_edit_events_through_peerget_active_compositionget_conversion_targettext_edit_text_changed
raises_text_edit_events_through_peer
fn raises_text_edit_events_through_peer(self: &Self) -> bool
Whether this provider's owner already sends its causes through AutomationPeer's platform event route. Backends then avoid installing a second forwarding observer. Custom providers keep the default route.
get_active_composition
fn get_active_composition(self: &Self) -> Result<Option<Rc<dyn ITextRangeProvider>>, ProviderError>
The full active IME preview, regardless of the caret within it. A live
owner with no active composition returns None.
get_conversion_target
fn get_conversion_target(self: &Self) -> Result<Option<Rc<dyn ITextRangeProvider>>, ProviderError>
The IME's distinct conversion target, when the input backend supplies one. A composition or selection alone does not identify a target.
text_edit_text_changed
fn text_edit_text_changed(self: &Self, handler: Rc<dyn Fn(&TextEditTextChangedEventArgs) -> ()>) -> Result<Rc<dyn IDisposable>, ProviderError>
Observes the model's known text-edit causes, without interpreting ordinary text/selection changes as autocorrection or composition.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.