pub struct CursorDesc { /* private fields */ }Expand description
A platform-independent description of a custom cursor.
Implementations§
Source§impl CursorDesc
 
impl CursorDesc
Sourcepub fn new(image: ImageBuf, hot: impl Into<Point>) -> CursorDesc
 
pub fn new(image: ImageBuf, hot: impl Into<Point>) -> CursorDesc
Creates a new CursorDesc.
hot is the “hot spot” of the cursor, measured in terms of the pixels in image with
(0, 0) at the top left. The hot spot is the logical position of the mouse cursor within
the image. For example, if the image is a picture of a arrow, the hot spot might be the
coordinates of the arrow’s tip.
Trait Implementations§
Source§impl Clone for CursorDesc
 
impl Clone for CursorDesc
Source§fn clone(&self) -> CursorDesc
 
fn clone(&self) -> CursorDesc
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CursorDesc
impl RefUnwindSafe for CursorDesc
impl Send for CursorDesc
impl Sync for CursorDesc
impl Unpin for CursorDesc
impl UnwindSafe for CursorDesc
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
    U: RoundFrom<T>,
 
impl<T, U> RoundInto<U> for Twhere
    U: RoundFrom<T>,
Source§fn round_into(self) -> U
 
fn round_into(self) -> U
Performs the conversion.