Struct gdk4::builders::CursorBuilder
source · 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 RefUnwindSafe for CursorBuilder
impl !Send for CursorBuilder
impl !Sync for CursorBuilder
impl Unpin 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