pub struct Cursor { /* private fields */ }
Implementations
sourceimpl Cursor
impl Cursor
pub fn new(
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>
pub fn from_system(cursor: SystemCursor) -> Result<Cursor, String>
pub fn set(&self)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cursor
impl !Send for Cursor
impl !Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more