pub struct CursorBuilder { /* private fields */ }Expand description
A builder-pattern type to construct Cursor objects.
Implementations§
Source§impl CursorBuilder
impl CursorBuilder
Sourcepub fn fallback(self, fallback: &Cursor) -> Self
pub fn fallback(self, fallback: &Cursor) -> Self
Cursor to fall back to if this cursor cannot be displayed.
Sourcepub fn hotspot_x(self, hotspot_x: i32) -> Self
pub fn hotspot_x(self, hotspot_x: i32) -> Self
X position of the cursor hotspot in the cursor image.
Sourcepub fn hotspot_y(self, hotspot_y: i32) -> Self
pub fn hotspot_y(self, hotspot_y: i32) -> Self
Y position of the cursor hotspot in the cursor image.
Sourcepub fn name(self, name: impl Into<GString>) -> Self
pub fn name(self, name: impl Into<GString>) -> Self
Name of this this cursor.
The name will be None if the cursor was created from a texture.
Auto Trait Implementations§
impl Freeze for CursorBuilder
impl RefUnwindSafe for CursorBuilder
impl !Send for CursorBuilder
impl !Sync for CursorBuilder
impl Unpin for CursorBuilder
impl UnsafeUnpin for CursorBuilder
impl UnwindSafe for CursorBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more