pub struct BrowserInputHandler { /* private fields */ }Expand description
Turns the events of the element of a top-level into raw input events and delivers them to the top-level.
Implementations§
Source§impl BrowserInputHandler
impl BrowserInputHandler
Sourcepub fn text_input_method(&self) -> &Rc<BrowserTextInputMethod>
pub fn text_input_method(&self) -> &Rc<BrowserTextInputMethod>
The text input method of the top-level.
Sourcepub fn input_pane(&self) -> &Rc<BrowserInputPane>
pub fn input_pane(&self) -> &Rc<BrowserInputPane>
The input pane of the top-level.
Sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
The milliseconds since the handler was created: the time stamp of the raw input events.
pub fn on_pointer_move( &self, pointer_type: &str, pointer_id: i64, offset_x: f64, offset_y: f64, pressure: f64, tilt_x: f64, tilt_y: f64, twist: f64, modifier: i32, event_age: f64, args_obj: JsObject, ) -> bool
pub fn on_pointer_down( &self, pointer_type: &str, pointer_id: i64, buttons: i32, offset_x: f64, offset_y: f64, pressure: f64, tilt_x: f64, tilt_y: f64, twist: f64, modifier: i32, event_age: f64, ) -> bool
pub fn on_pointer_up( &self, pointer_type: &str, pointer_id: i64, buttons: i32, offset_x: f64, offset_y: f64, pressure: f64, tilt_x: f64, tilt_y: f64, twist: f64, modifier: i32, event_age: f64, ) -> bool
pub fn on_pointer_cancel( &self, pointer_type: &str, pointer_id: i64, offset_x: f64, offset_y: f64, pressure: f64, tilt_x: f64, tilt_y: f64, twist: f64, modifier: i32, event_age: f64, ) -> bool
Sourcepub fn on_wheel(
&self,
offset_x: f64,
offset_y: f64,
delta_x: f64,
delta_y: f64,
delta_mode: i32,
modifier: i32,
) -> bool
pub fn on_wheel( &self, offset_x: f64, offset_y: f64, delta_x: f64, delta_y: f64, delta_mode: i32, modifier: i32, ) -> bool
The wheel turned; delta_mode is the unit of the deltas
(WheelEvent.deltaMode).
Sourcepub fn on_drag_event(
&self,
type_: &str,
offset_x: f64,
offset_y: f64,
modifiers: i32,
data_transfer: &JsObject,
items: JsObject,
) -> bool
pub fn on_drag_event( &self, type_: &str, offset_x: f64, offset_y: f64, modifiers: i32, data_transfer: &JsObject, items: JsObject, ) -> bool
A drag operation of the page entered, moved over, left or dropped on
the element of the top-level. data_transfer is the data transfer of
the event and items its items as readable data items.
Auto Trait Implementations§
impl !Freeze for BrowserInputHandler
impl !RefUnwindSafe for BrowserInputHandler
impl !Send for BrowserInputHandler
impl !Sync for BrowserInputHandler
impl !UnwindSafe for BrowserInputHandler
impl Unpin for BrowserInputHandler
impl UnsafeUnpin for BrowserInputHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
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