pub trait HtmlEventConverter: Send + Sync {
Show 19 methods
// Required methods
fn convert_animation_data(&self, event: &PlatformEventData) -> AnimationData;
fn convert_clipboard_data(&self, event: &PlatformEventData) -> ClipboardData;
fn convert_composition_data(
&self,
event: &PlatformEventData,
) -> CompositionData;
fn convert_drag_data(&self, event: &PlatformEventData) -> DragData;
fn convert_focus_data(&self, event: &PlatformEventData) -> FocusData;
fn convert_form_data(&self, event: &PlatformEventData) -> FormData;
fn convert_image_data(&self, event: &PlatformEventData) -> ImageData;
fn convert_keyboard_data(&self, event: &PlatformEventData) -> KeyboardData;
fn convert_media_data(&self, event: &PlatformEventData) -> MediaData;
fn convert_mounted_data(&self, event: &PlatformEventData) -> MountedData;
fn convert_mouse_data(&self, event: &PlatformEventData) -> MouseData;
fn convert_pointer_data(&self, event: &PlatformEventData) -> PointerData;
fn convert_resize_data(&self, event: &PlatformEventData) -> ResizeData;
fn convert_scroll_data(&self, event: &PlatformEventData) -> ScrollData;
fn convert_selection_data(&self, event: &PlatformEventData) -> SelectionData;
fn convert_toggle_data(&self, event: &PlatformEventData) -> ToggleData;
fn convert_touch_data(&self, event: &PlatformEventData) -> TouchData;
fn convert_transition_data(
&self,
event: &PlatformEventData,
) -> TransitionData;
fn convert_wheel_data(&self, event: &PlatformEventData) -> WheelData;
}
Expand description
A converter between a platform specific event and a general event. All code in a renderer that has a large binary size should be placed in this trait. Each of these functions should be snipped in high levels of optimization.
Required Methods§
sourcefn convert_animation_data(&self, event: &PlatformEventData) -> AnimationData
fn convert_animation_data(&self, event: &PlatformEventData) -> AnimationData
Convert a general event to an animation data event
sourcefn convert_clipboard_data(&self, event: &PlatformEventData) -> ClipboardData
fn convert_clipboard_data(&self, event: &PlatformEventData) -> ClipboardData
Convert a general event to a clipboard data event
sourcefn convert_composition_data(&self, event: &PlatformEventData) -> CompositionData
fn convert_composition_data(&self, event: &PlatformEventData) -> CompositionData
Convert a general event to a composition data event
sourcefn convert_drag_data(&self, event: &PlatformEventData) -> DragData
fn convert_drag_data(&self, event: &PlatformEventData) -> DragData
Convert a general event to a drag data event
sourcefn convert_focus_data(&self, event: &PlatformEventData) -> FocusData
fn convert_focus_data(&self, event: &PlatformEventData) -> FocusData
Convert a general event to a focus data event
sourcefn convert_form_data(&self, event: &PlatformEventData) -> FormData
fn convert_form_data(&self, event: &PlatformEventData) -> FormData
Convert a general event to a form data event
sourcefn convert_image_data(&self, event: &PlatformEventData) -> ImageData
fn convert_image_data(&self, event: &PlatformEventData) -> ImageData
Convert a general event to an image data event
sourcefn convert_keyboard_data(&self, event: &PlatformEventData) -> KeyboardData
fn convert_keyboard_data(&self, event: &PlatformEventData) -> KeyboardData
Convert a general event to a keyboard data event
sourcefn convert_media_data(&self, event: &PlatformEventData) -> MediaData
fn convert_media_data(&self, event: &PlatformEventData) -> MediaData
Convert a general event to a media data event
sourcefn convert_mounted_data(&self, event: &PlatformEventData) -> MountedData
fn convert_mounted_data(&self, event: &PlatformEventData) -> MountedData
Convert a general event to a mounted data event
sourcefn convert_mouse_data(&self, event: &PlatformEventData) -> MouseData
fn convert_mouse_data(&self, event: &PlatformEventData) -> MouseData
Convert a general event to a mouse data event
sourcefn convert_pointer_data(&self, event: &PlatformEventData) -> PointerData
fn convert_pointer_data(&self, event: &PlatformEventData) -> PointerData
Convert a general event to a pointer data event
sourcefn convert_resize_data(&self, event: &PlatformEventData) -> ResizeData
fn convert_resize_data(&self, event: &PlatformEventData) -> ResizeData
Convert a general event to a resize data event
sourcefn convert_scroll_data(&self, event: &PlatformEventData) -> ScrollData
fn convert_scroll_data(&self, event: &PlatformEventData) -> ScrollData
Convert a general event to a scroll data event
sourcefn convert_selection_data(&self, event: &PlatformEventData) -> SelectionData
fn convert_selection_data(&self, event: &PlatformEventData) -> SelectionData
Convert a general event to a selection data event
sourcefn convert_toggle_data(&self, event: &PlatformEventData) -> ToggleData
fn convert_toggle_data(&self, event: &PlatformEventData) -> ToggleData
Convert a general event to a toggle data event
sourcefn convert_touch_data(&self, event: &PlatformEventData) -> TouchData
fn convert_touch_data(&self, event: &PlatformEventData) -> TouchData
Convert a general event to a touch data event
sourcefn convert_transition_data(&self, event: &PlatformEventData) -> TransitionData
fn convert_transition_data(&self, event: &PlatformEventData) -> TransitionData
Convert a general event to a transition data event
sourcefn convert_wheel_data(&self, event: &PlatformEventData) -> WheelData
fn convert_wheel_data(&self, event: &PlatformEventData) -> WheelData
Convert a general event to a wheel data event