Struct sdl2::rect::Point [] [src]

pub struct Point {
    // some fields omitted
}

Immutable point type, consisting of x and y.

Methods

impl Point

fn raw(&self) -> *const SDL_Point

fn raw_slice(slice: &[Point]) -> *const SDL_Point

fn from_ll(raw: SDL_Point) -> Point

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

fn offset(&self, x: i32, y: i32) -> Point

fn xy(&self) -> (i32, i32)

fn x(&self) -> i32

fn y(&self) -> i32

Trait Implementations

impl From<(i32, i32)> for Point

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

impl Into<(i32, i32)> for Point

fn into(self) -> (i32, i32)

Derived Implementations

impl Hash for Point

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for Point

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

impl PartialEq for Point

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

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

impl Eq for Point

impl Clone for Point

fn clone(&self) -> Point

fn clone_from(&mut self, source: &Self)

impl Copy for Point