pub struct MetaCursor(/* private fields */);Expand description
Cursor information
Metadata to describe the position and appearance of a pointing device.
Implementations§
Source§impl MetaCursor
impl MetaCursor
pub fn as_raw(&self) -> &spa_meta_cursor
Sourcepub fn id(&self) -> u32
pub fn id(&self) -> u32
Cursor id. An id of 0 is an invalid id and means there is no new cursor data.
Sourcepub fn hotspot(&self) -> Point
pub fn hotspot(&self) -> Point
Offsets for hotspot in bitmap, this has no meaning when there is no valid bitmap.
Sourcepub fn bitmap_offset(&self) -> u32
pub fn bitmap_offset(&self) -> u32
Offset of bitmap meta in this structure. Use bitmap to access the bitmap
meta.
pub fn is_valid(&self) -> bool
Sourcepub fn bitmap(&self) -> Option<&MetaBitmap>
pub fn bitmap(&self) -> Option<&MetaBitmap>
Returns the bitmap meta if the cursor is valid and bitmap_offset
points to memory after this structure.
Trait Implementations§
Source§impl Debug for MetaCursor
impl Debug for MetaCursor
Auto Trait Implementations§
impl Freeze for MetaCursor
impl RefUnwindSafe for MetaCursor
impl Send for MetaCursor
impl Sync for MetaCursor
impl Unpin for MetaCursor
impl UnwindSafe for MetaCursor
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