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.