Skip to main content

InputMethod

Struct InputMethod 

Source
pub struct InputMethod;
Expand description

Defines the attached property and the routed event that connect an input element to the input method of the platform.

Implementations§

Source§

impl InputMethod

Source

pub const TYPE: &'static TypeInfo = <InputMethod as crate::StaticType>::TYPE

The runtime type of this type.

Source§

impl InputMethod

Source

pub fn is_input_method_enabled_property() -> &'static AttachedProperty<bool>

A dependency property that enables alternative text inputs.

Source§

impl InputMethod

Source

pub fn set_is_input_method_enabled(target: &InputElement, value: bool)

Setter for the IsInputMethodEnabled attached property.

Source

pub fn get_is_input_method_enabled(target: &InputElement) -> bool

Getter for the IsInputMethodEnabled attached property.

Source

pub fn text_input_method_client_requery_requested_event() -> &'static RoutedEvent<TextInputMethodClientRequeryRequestedEventArgs>

Defines the TextInputMethodClientRequeryRequested event: raise it on an element to have the input system query the focused element for its text input method client again.

Source

pub fn add_text_input_method_client_requery_requested_handler( element: &Interactive, handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken

Adds a handler for the TextInputMethodClientRequeryRequested attached event.

Source

pub fn remove_text_input_method_client_requery_requested_handler( element: &Interactive, handler: RoutedEventHandlerToken, )

Removes a handler for the TextInputMethodClientRequeryRequested attached event.

Trait Implementations§

Source§

impl MarkupTyped for InputMethod

Source§

const MARKUP: &'static MarkupType

The markup metadata of the type.
Source§

impl StaticType for InputMethod

Source§

const TYPE: &'static TypeInfo

The runtime type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.