Skip to main content

InputElementProps

Trait InputElementProps 

Source
pub trait InputElementProps: ElementBuilder {
Show 39 methods // Provided methods fn focusable<M>(self, value: impl IntoProp<bool, M>) -> Self { ... } fn is_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self { ... } fn cursor<M>(self, value: impl IntoProp<Option<Rc<Cursor>>, M>) -> Self { ... } fn is_hit_test_visible<M>(self, value: impl IntoProp<bool, M>) -> Self { ... } fn is_tab_stop<M>(self, value: impl IntoProp<bool, M>) -> Self { ... } fn tab_index<M>(self, value: impl IntoProp<i32, M>) -> Self { ... } fn on_got_focus( self, handler: impl Fn(&FocusChangedEventArgs) + 'static, ) -> Self { ... } fn on_getting_focus( self, handler: impl Fn(&FocusChangingEventArgs) + 'static, ) -> Self { ... } fn on_lost_focus( self, handler: impl Fn(&FocusChangedEventArgs) + 'static, ) -> Self { ... } fn on_losing_focus( self, handler: impl Fn(&FocusChangingEventArgs) + 'static, ) -> Self { ... } fn on_key_down(self, handler: impl Fn(&KeyEventArgs) + 'static) -> Self { ... } fn on_key_up(self, handler: impl Fn(&KeyEventArgs) + 'static) -> Self { ... } fn on_text_input( self, handler: impl Fn(&TextInputEventArgs) + 'static, ) -> Self { ... } fn on_text_input_method_client_requested( self, handler: impl Fn(&TextInputMethodClientRequestedEventArgs) + 'static, ) -> Self { ... } fn on_pointer_entered( self, handler: impl Fn(&PointerEventArgs) + 'static, ) -> Self { ... } fn on_pointer_exited( self, handler: impl Fn(&PointerEventArgs) + 'static, ) -> Self { ... } fn on_pointer_moved( self, handler: impl Fn(&PointerEventArgs) + 'static, ) -> Self { ... } fn on_pointer_pressed( self, handler: impl Fn(&PointerPressedEventArgs) + 'static, ) -> Self { ... } fn on_pointer_released( self, handler: impl Fn(&PointerReleasedEventArgs) + 'static, ) -> Self { ... } fn on_pointer_capture_lost( self, handler: impl Fn(&PointerCaptureLostEventArgs) + 'static, ) -> Self { ... } fn on_pointer_wheel_changed( self, handler: impl Fn(&PointerWheelEventArgs) + 'static, ) -> Self { ... } fn on_context_requested( self, handler: impl Fn(&ContextRequestedEventArgs) + 'static, ) -> Self { ... } fn on_context_canceled( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self { ... } fn on_pinch(self, handler: impl Fn(&PinchEventArgs) + 'static) -> Self { ... } fn on_pinch_ended( self, handler: impl Fn(&PinchEndedEventArgs) + 'static, ) -> Self { ... } fn on_pull_gesture( self, handler: impl Fn(&PullGestureEventArgs) + 'static, ) -> Self { ... } fn on_pull_gesture_ended( self, handler: impl Fn(&PullGestureEndedEventArgs) + 'static, ) -> Self { ... } fn on_swipe_gesture( self, handler: impl Fn(&SwipeGestureEventArgs) + 'static, ) -> Self { ... } fn on_swipe_gesture_ended( self, handler: impl Fn(&SwipeGestureEndedEventArgs) + 'static, ) -> Self { ... } fn on_scroll_gesture( self, handler: impl Fn(&ScrollGestureEventArgs) + 'static, ) -> Self { ... } fn on_scroll_gesture_inertia_starting( self, handler: impl Fn(&ScrollGestureInertiaStartingEventArgs) + 'static, ) -> Self { ... } fn on_scroll_gesture_ended( self, handler: impl Fn(&ScrollGestureEndedEventArgs) + 'static, ) -> Self { ... } fn on_pointer_touch_pad_gesture_magnify( self, handler: impl Fn(&PointerDeltaEventArgs) + 'static, ) -> Self { ... } fn on_pointer_touch_pad_gesture_rotate( self, handler: impl Fn(&PointerDeltaEventArgs) + 'static, ) -> Self { ... } fn on_pointer_touch_pad_gesture_swipe( self, handler: impl Fn(&PointerDeltaEventArgs) + 'static, ) -> Self { ... } fn on_tapped(self, handler: impl Fn(&TappedEventArgs) + 'static) -> Self { ... } fn on_right_tapped( self, handler: impl Fn(&TappedEventArgs) + 'static, ) -> Self { ... } fn on_holding( self, handler: impl Fn(&HoldingRoutedEventArgs) + 'static, ) -> Self { ... } fn on_double_tapped( self, handler: impl Fn(&TappedEventArgs) + 'static, ) -> Self { ... }
}
Expand description

The properties and routed events of InputElement.

Provided Methods§

Source

fn focusable<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn is_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn cursor<M>(self, value: impl IntoProp<Option<Rc<Cursor>>, M>) -> Self

Source

fn is_hit_test_visible<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn is_tab_stop<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn tab_index<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn on_got_focus( self, handler: impl Fn(&FocusChangedEventArgs) + 'static, ) -> Self

Source

fn on_getting_focus( self, handler: impl Fn(&FocusChangingEventArgs) + 'static, ) -> Self

Source

fn on_lost_focus( self, handler: impl Fn(&FocusChangedEventArgs) + 'static, ) -> Self

Source

fn on_losing_focus( self, handler: impl Fn(&FocusChangingEventArgs) + 'static, ) -> Self

Source

fn on_key_down(self, handler: impl Fn(&KeyEventArgs) + 'static) -> Self

Source

fn on_key_up(self, handler: impl Fn(&KeyEventArgs) + 'static) -> Self

Source

fn on_text_input(self, handler: impl Fn(&TextInputEventArgs) + 'static) -> Self

Source

fn on_text_input_method_client_requested( self, handler: impl Fn(&TextInputMethodClientRequestedEventArgs) + 'static, ) -> Self

Source

fn on_pointer_entered( self, handler: impl Fn(&PointerEventArgs) + 'static, ) -> Self

Source

fn on_pointer_exited( self, handler: impl Fn(&PointerEventArgs) + 'static, ) -> Self

Source

fn on_pointer_moved(self, handler: impl Fn(&PointerEventArgs) + 'static) -> Self

Source

fn on_pointer_pressed( self, handler: impl Fn(&PointerPressedEventArgs) + 'static, ) -> Self

Source

fn on_pointer_released( self, handler: impl Fn(&PointerReleasedEventArgs) + 'static, ) -> Self

Source

fn on_pointer_capture_lost( self, handler: impl Fn(&PointerCaptureLostEventArgs) + 'static, ) -> Self

Source

fn on_pointer_wheel_changed( self, handler: impl Fn(&PointerWheelEventArgs) + 'static, ) -> Self

Source

fn on_context_requested( self, handler: impl Fn(&ContextRequestedEventArgs) + 'static, ) -> Self

Source

fn on_context_canceled( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self

Source

fn on_pinch(self, handler: impl Fn(&PinchEventArgs) + 'static) -> Self

Source

fn on_pinch_ended( self, handler: impl Fn(&PinchEndedEventArgs) + 'static, ) -> Self

Source

fn on_pull_gesture( self, handler: impl Fn(&PullGestureEventArgs) + 'static, ) -> Self

Source

fn on_pull_gesture_ended( self, handler: impl Fn(&PullGestureEndedEventArgs) + 'static, ) -> Self

Source

fn on_swipe_gesture( self, handler: impl Fn(&SwipeGestureEventArgs) + 'static, ) -> Self

Source

fn on_swipe_gesture_ended( self, handler: impl Fn(&SwipeGestureEndedEventArgs) + 'static, ) -> Self

Source

fn on_scroll_gesture( self, handler: impl Fn(&ScrollGestureEventArgs) + 'static, ) -> Self

Source

fn on_scroll_gesture_inertia_starting( self, handler: impl Fn(&ScrollGestureInertiaStartingEventArgs) + 'static, ) -> Self

Source

fn on_scroll_gesture_ended( self, handler: impl Fn(&ScrollGestureEndedEventArgs) + 'static, ) -> Self

Source

fn on_pointer_touch_pad_gesture_magnify( self, handler: impl Fn(&PointerDeltaEventArgs) + 'static, ) -> Self

Source

fn on_pointer_touch_pad_gesture_rotate( self, handler: impl Fn(&PointerDeltaEventArgs) + 'static, ) -> Self

Source

fn on_pointer_touch_pad_gesture_swipe( self, handler: impl Fn(&PointerDeltaEventArgs) + 'static, ) -> Self

Source

fn on_tapped(self, handler: impl Fn(&TappedEventArgs) + 'static) -> Self

Source

fn on_right_tapped(self, handler: impl Fn(&TappedEventArgs) + 'static) -> Self

Source

fn on_holding(self, handler: impl Fn(&HoldingRoutedEventArgs) + 'static) -> Self

Source

fn on_double_tapped(self, handler: impl Fn(&TappedEventArgs) + 'static) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§