pub struct ScreenPoint {
pub x: i64,
pub y: i64,
}Expand description
A position in screenshot pixels, with the origin at the top left.
§Example
use adk_core::ScreenPoint;
let point = ScreenPoint::new(512, 384);
assert_eq!((point.x, point.y), (512, 384));Fields§
§x: i64Pixels from the left edge.
y: i64Pixels from the top edge.
Implementations§
Trait Implementations§
Source§impl Clone for ScreenPoint
impl Clone for ScreenPoint
impl Copy for ScreenPoint
Source§impl Debug for ScreenPoint
impl Debug for ScreenPoint
Source§impl<'de> Deserialize<'de> for ScreenPoint
impl<'de> Deserialize<'de> for ScreenPoint
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
impl Eq for ScreenPoint
Source§impl Hash for ScreenPoint
impl Hash for ScreenPoint
Source§impl PartialEq for ScreenPoint
impl PartialEq for ScreenPoint
Source§impl Serialize for ScreenPoint
impl Serialize for ScreenPoint
impl StructuralPartialEq for ScreenPoint
Auto Trait Implementations§
impl Forget for ScreenPoint
impl Freeze for ScreenPoint
impl Move for ScreenPoint
impl RefUnwindSafe for ScreenPoint
impl Send for ScreenPoint
impl Sync for ScreenPoint
impl Unpin for ScreenPoint
impl UnsafeUnpin for ScreenPoint
impl UnwindSafe for ScreenPoint
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