Struct autogui::Position
[−]
[src]
pub struct Position { pub x: u32, pub y: u32, }
Position on screen
Fields
x: u32
X axis
y: u32
Y axis
Methods
impl Position
[src]
pub fn new(x: u32, y: u32) -> Position
[src]
Creates new Position
pub fn distance_to(&self, other: Position) -> u32
[src]
Distance from self to other position, rounded to u32
Trait Implementations
impl Debug for Position
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Position
[src]
fn clone(&self) -> Position
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more