Struct dioxus_html::events::WheelData
source · pub struct WheelData {
pub delta_mode: u32,
pub delta_x: f64,
pub delta_y: f64,
pub delta_z: f64,
}
Fields§
§delta_mode: u32
👎Deprecated since 0.3.0: use delta() instead
§delta_x: f64
👎Deprecated since 0.3.0: use delta() instead
§delta_y: f64
👎Deprecated since 0.3.0: use delta() instead
§delta_z: f64
👎Deprecated since 0.3.0: use delta() instead
Implementations§
source§impl WheelData
impl WheelData
sourcepub fn new(delta: WheelDelta) -> Self
pub fn new(delta: WheelDelta) -> Self
Construct a new WheelData with the specified wheel movement delta
sourcepub fn from_web_attributes(
delta_mode: u32,
delta_x: f64,
delta_y: f64,
delta_z: f64
) -> Self
pub fn from_web_attributes( delta_mode: u32, delta_x: f64, delta_y: f64, delta_z: f64 ) -> Self
Construct from the attributes of the web wheel event
sourcepub fn delta(&self) -> WheelDelta
pub fn delta(&self) -> WheelDelta
The amount of wheel movement
Trait Implementations§
source§impl<'de> Deserialize<'de> for WheelData
impl<'de> Deserialize<'de> for WheelData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&WheelEvent> for WheelData
impl From<&WheelEvent> for WheelData
source§fn from(e: &WheelEvent) -> Self
fn from(e: &WheelEvent) -> Self
Converts to this type from the input type.
source§impl PartialEq<WheelData> for WheelData
impl PartialEq<WheelData> for WheelData
impl StructuralPartialEq for WheelData
Auto Trait Implementations§
impl RefUnwindSafe for WheelData
impl Send for WheelData
impl Sync for WheelData
impl Unpin for WheelData
impl UnwindSafe for WheelData
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