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
.
pub fn fallback(self, fallback: &Cursor) -> Self
pub fn hotspot_x(self, hotspot_x: i32) -> Self
pub fn hotspot_y(self, hotspot_y: i32) -> Self
pub fn name(self, name: &str) -> Self
pub fn texture(self, texture: &impl IsA<Texture>) -> Self
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