[][src]Struct druid::CursorDesc

pub struct CursorDesc { /* fields omitted */ }

A platform-independent description of a custom cursor.

Implementations

impl CursorDesc[src]

pub fn new(image: ImageBuf, hot: impl Into<Point>) -> CursorDesc[src]

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

impl Clone for CursorDesc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.