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 new() -> Self
pub fn new() -> Self
Create a new 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.
Trait Implementations§
source§impl Clone for CursorBuilder
impl Clone for CursorBuilder
source§fn clone(&self) -> CursorBuilder
fn clone(&self) -> CursorBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CursorBuilder
impl Default for CursorBuilder
source§fn default() -> CursorBuilder
fn default() -> CursorBuilder
Returns the “default value” for a type. Read more