Struct sdl2::mouse::Cursor
[−]
[src]
pub struct Cursor { /* fields omitted */ }
Methods
impl Cursor
[src]
pub fn new(
data: &[u8],
mask: &[u8],
width: i32,
height: i32,
hot_x: i32,
hot_y: i32
) -> Result<Cursor, String>
[src]
data: &[u8],
mask: &[u8],
width: i32,
height: i32,
hot_x: i32,
hot_y: i32
) -> Result<Cursor, String>
pub fn from_surface<S: AsRef<SurfaceRef>>(
surface: S,
hot_x: i32,
hot_y: i32
) -> Result<Cursor, String>
[src]
surface: S,
hot_x: i32,
hot_y: i32
) -> Result<Cursor, String>