[−][src]Struct wlroots::cursor::xcursor::Image
Contains the information necessary to render the cursor.
The hotspot of the image shows where the cursor will interact with the environment. i.e. it refers to the location of the cursor "point". Note that the coordinates could be inside the image.
Fields
width: u32
The width of the image in pixels.
height: u32
The height of the image in pixels.
hotspot_x: u32
The x coordinate of the hotspot, which must be inside the image.
hotspot_y: u32
The y coordinate of the hotspot, which must be inside the image.
delay: u32
Animation delay to the next frame in milliseconds.
buffer: &'cursor [u8]
The bytes in ARGB format.
Trait Implementations
impl<'buffer> From<Image<'buffer>> for Image<'buffer>
[src]
impl<'buffer> From<Image<'buffer>> for Image<'buffer>
impl<'cursor> Eq for Image<'cursor>
[src]
impl<'cursor> Eq for Image<'cursor>
impl<'cursor> PartialOrd<Image<'cursor>> for Image<'cursor>
[src]
impl<'cursor> PartialOrd<Image<'cursor>> for Image<'cursor>
fn partial_cmp(&self, other: &Image<'cursor>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Image<'cursor>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Image<'cursor>) -> bool
[src]
fn lt(&self, other: &Image<'cursor>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Image<'cursor>) -> bool
[src]
fn le(&self, other: &Image<'cursor>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Image<'cursor>) -> bool
[src]
fn gt(&self, other: &Image<'cursor>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Image<'cursor>) -> bool
[src]
fn ge(&self, other: &Image<'cursor>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'cursor> PartialEq<Image<'cursor>> for Image<'cursor>
[src]
impl<'cursor> PartialEq<Image<'cursor>> for Image<'cursor>
fn eq(&self, other: &Image<'cursor>) -> bool
[src]
fn eq(&self, other: &Image<'cursor>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Image<'cursor>) -> bool
[src]
fn ne(&self, other: &Image<'cursor>) -> bool
This method tests for !=
.
impl<'cursor> Ord for Image<'cursor>
[src]
impl<'cursor> Ord for Image<'cursor>
fn cmp(&self, other: &Image<'cursor>) -> Ordering
[src]
fn cmp(&self, other: &Image<'cursor>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<'cursor> Hash for Image<'cursor>
[src]
impl<'cursor> Hash for Image<'cursor>
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'cursor> Debug for Image<'cursor>
[src]
impl<'cursor> Debug for Image<'cursor>
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more