Struct dioxus::events::SerializedMouseData
source · pub struct SerializedMouseData { /* private fields */ }
Available on crate feature
html
only.Expand description
A serialized version of MouseData
Implementations§
source§impl SerializedMouseData
impl SerializedMouseData
sourcepub fn new(
trigger_button: Option<MouseButton>,
held_buttons: EnumSet<MouseButton>,
coordinates: Coordinates,
modifiers: Modifiers
) -> SerializedMouseData
pub fn new( trigger_button: Option<MouseButton>, held_buttons: EnumSet<MouseButton>, coordinates: Coordinates, modifiers: Modifiers ) -> SerializedMouseData
Create a new instance of SerializedMouseData
Trait Implementations§
source§impl Clone for SerializedMouseData
impl Clone for SerializedMouseData
source§fn clone(&self) -> SerializedMouseData
fn clone(&self) -> SerializedMouseData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SerializedMouseData
impl Debug for SerializedMouseData
source§impl Default for SerializedMouseData
impl Default for SerializedMouseData
source§fn default() -> SerializedMouseData
fn default() -> SerializedMouseData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SerializedMouseData
impl<'de> Deserialize<'de> for SerializedMouseData
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SerializedMouseData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SerializedMouseData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&MouseData> for SerializedMouseData
impl From<&MouseData> for SerializedMouseData
source§fn from(e: &MouseData) -> SerializedMouseData
fn from(e: &MouseData) -> SerializedMouseData
Converts to this type from the input type.
source§impl HasMouseData for SerializedMouseData
impl HasMouseData for SerializedMouseData
source§impl InteractionElementOffset for SerializedMouseData
impl InteractionElementOffset for SerializedMouseData
source§fn element_coordinates(&self) -> Point2D<f64, ElementSpace>
fn element_coordinates(&self) -> Point2D<f64, ElementSpace>
Gets the coordinates of the event relative to the target element.
source§fn coordinates(&self) -> Coordinates
fn coordinates(&self) -> Coordinates
Gets the coordinates of the event.
source§impl InteractionLocation for SerializedMouseData
impl InteractionLocation for SerializedMouseData
source§fn client_coordinates(&self) -> Point2D<f64, ClientSpace>
fn client_coordinates(&self) -> Point2D<f64, ClientSpace>
Gets the coordinates of the event relative to the browser viewport.
source§fn page_coordinates(&self) -> Point2D<f64, PageSpace>
fn page_coordinates(&self) -> Point2D<f64, PageSpace>
Gets the coordinates of the event relative to the page.
source§fn screen_coordinates(&self) -> Point2D<f64, ScreenSpace>
fn screen_coordinates(&self) -> Point2D<f64, ScreenSpace>
Gets the coordinates of the event relative to the screen.
source§impl PartialEq for SerializedMouseData
impl PartialEq for SerializedMouseData
source§fn eq(&self, other: &SerializedMouseData) -> bool
fn eq(&self, other: &SerializedMouseData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PointerInteraction for SerializedMouseData
impl PointerInteraction for SerializedMouseData
Gets the buttons that are currently held down.
Gets the button that triggered the event.
source§impl Serialize for SerializedMouseData
impl Serialize for SerializedMouseData
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SerializedMouseData
Auto Trait Implementations§
impl Freeze for SerializedMouseData
impl RefUnwindSafe for SerializedMouseData
impl Send for SerializedMouseData
impl Sync for SerializedMouseData
impl Unpin for SerializedMouseData
impl UnwindSafe for SerializedMouseData
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.
source§impl<Cfg> TryIntoConfig for Cfg
impl<Cfg> TryIntoConfig for Cfg
source§fn into_config(self) -> Option<Cfg>
fn into_config(self) -> Option<Cfg>
Available on crate feature
launch
only.