Struct sdl2::rect::Point[src]

pub struct Point {
    pub x: i32,
    pub y: i32,
}

A structure that defines a two dimensional point.

Fields

x
y

Methods

impl Point

fn new(x: i32, y: i32) -> Point

Trait Implementations

Derived Implementations

impl Show for Point

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Point

fn clone(&self) -> Point

impl Eq for Point

fn eq(&self, __arg_0: &Point) -> bool

fn ne(&self, __arg_0: &Point) -> bool