#[repr(C)]pub struct spa_meta_cursor {
pub id: u32,
pub flags: u32,
pub position: spa_point,
pub hotspot: spa_point,
pub bitmap_offset: u32,
}
Expand description
Cursor information
Metadata to describe the position and appearance of a pointing device.
Fields§
§id: u32
< cursor id. an id of 0 is an invalid id and means that there is no new cursor data
flags: u32
< extra flags
position: spa_point
< position on screen
hotspot: spa_point
< offsets for hotspot in bitmap, this field has no meaning when there is no valid bitmap (see below)
bitmap_offset: u32
< offset of bitmap meta in this structure. When the offset is 0, there is no new bitmap information. When the offset is
= sizeof(struct spa_meta_cursor) there is a struct spa_meta_bitmap at the offset.
Trait Implementations§
Source§impl Clone for spa_meta_cursor
impl Clone for spa_meta_cursor
Source§fn clone(&self) -> spa_meta_cursor
fn clone(&self) -> spa_meta_cursor
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 moreSource§impl Debug for spa_meta_cursor
impl Debug for spa_meta_cursor
Source§impl PartialEq for spa_meta_cursor
impl PartialEq for spa_meta_cursor
impl Copy for spa_meta_cursor
impl Eq for spa_meta_cursor
impl StructuralPartialEq for spa_meta_cursor
Auto Trait Implementations§
impl Freeze for spa_meta_cursor
impl RefUnwindSafe for spa_meta_cursor
impl Send for spa_meta_cursor
impl Sync for spa_meta_cursor
impl Unpin for spa_meta_cursor
impl UnwindSafe for spa_meta_cursor
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