pub struct ActPoint {
pub x: f64,
pub y: f64,
pub to_x: Option<f64>,
pub to_y: Option<f64>,
}Expand description
Where a click or a drag in a canvas is: pixels of the canvas as UI screenshot with canvas shows it at the size it was
drawn (from its top left). A click has x and y; a drag also has to_x and to_y, where the button is let go.
Fields§
§x: f64§y: f64§to_x: Option<f64>§to_y: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ActPoint
impl<'de> Deserialize<'de> for ActPoint
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
Auto Trait Implementations§
impl Freeze for ActPoint
impl RefUnwindSafe for ActPoint
impl Send for ActPoint
impl Sync for ActPoint
impl Unpin for ActPoint
impl UnsafeUnpin for ActPoint
impl UnwindSafe for ActPoint
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