Struct dioxus::events::SerializedDragData
source · pub struct SerializedDragData {
pub mouse: SerializedPointInteraction,
/* private fields */
}
Available on crate feature
html
only.Expand description
A serialized version of DragData
Fields§
§mouse: SerializedPointInteraction
Trait Implementations§
source§impl Clone for SerializedDragData
impl Clone for SerializedDragData
source§fn clone(&self) -> SerializedDragData
fn clone(&self) -> SerializedDragData
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 SerializedDragData
impl Debug for SerializedDragData
source§impl<'de> Deserialize<'de> for SerializedDragData
impl<'de> Deserialize<'de> for SerializedDragData
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SerializedDragData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SerializedDragData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HasDragData for SerializedDragData
impl HasDragData for SerializedDragData
source§impl HasFileData for SerializedDragData
impl HasFileData for SerializedDragData
source§impl HasMouseData for SerializedDragData
impl HasMouseData for SerializedDragData
source§impl InteractionElementOffset for SerializedDragData
impl InteractionElementOffset for SerializedDragData
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 SerializedDragData
impl InteractionLocation for SerializedDragData
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 SerializedDragData
impl PartialEq for SerializedDragData
source§fn eq(&self, other: &SerializedDragData) -> bool
fn eq(&self, other: &SerializedDragData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PointerInteraction for SerializedDragData
impl PointerInteraction for SerializedDragData
Gets the buttons that are currently held down.
Gets the button that triggered the event.
source§impl Serialize for SerializedDragData
impl Serialize for SerializedDragData
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 SerializedDragData
Auto Trait Implementations§
impl Freeze for SerializedDragData
impl RefUnwindSafe for SerializedDragData
impl Send for SerializedDragData
impl Sync for SerializedDragData
impl Unpin for SerializedDragData
impl UnwindSafe for SerializedDragData
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.