Struct druid::CursorDesc
source · 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 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 moreAuto Trait Implementations§
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> 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>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.