Struct sdl2::rect::Point
[−]
[src]
pub struct Point { // some fields omitted }
Immutable point type, consisting of x and y.
pub struct Point { // some fields omitted }
Immutable point type, consisting of x and y.
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
impl From<(i32, i32)> for Point
impl Into<(i32, i32)> for Point
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
impl PartialEq for Point
impl Eq for Point
impl Clone for Point
fn clone(&self) -> Point
fn clone_from(&mut self, source: &Self)
impl Copy for Point
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)