Struct pipewire_wrapper::spa::buffers::meta::MetaCursorRef
source · #[repr(transparent)]pub struct MetaCursorRef { /* private fields */ }
Expand description
Cursor information.
Implementations§
source§impl MetaCursorRef
impl MetaCursorRef
sourcepub fn id(&self) -> u32
pub fn id(&self) -> u32
cursor id. an id of 0 is an invalid id and means that there is no new cursor data
pub fn set_id(&mut self, id: u32)
pub fn flags(&self) -> u32
pub fn set_flags(&mut self, flags: u32)
pub fn position_mut(&mut self) -> &mut PointRef
sourcepub fn hotspot(&self) -> &PointRef
pub fn hotspot(&self) -> &PointRef
offsets for hotspot in bitmap, this field has no meaning when there is no valid bitmap (see below)
pub fn hotspot_mut(&mut self) -> &mut PointRef
sourcepub fn bitmap_offset(&self) -> u32
pub fn bitmap_offset(&self) -> 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.
pub fn set_bitmap_offset(&mut self, bitmap_offset: u32)
sourcepub unsafe fn bitmap(&self) -> Option<&mut MetaBitmapRef>
pub unsafe fn bitmap(&self) -> Option<&mut MetaBitmapRef>
pub fn is_valid(&self) -> bool
Trait Implementations§
source§impl Debug for MetaCursorRef
impl Debug for MetaCursorRef
source§impl From<MetaCursorRef> for spa_meta_cursor
impl From<MetaCursorRef> for spa_meta_cursor
source§fn from(value: MetaCursorRef) -> Self
fn from(value: MetaCursorRef) -> Self
Converts to this type from the input type.
source§impl From<spa_meta_cursor> for MetaCursorRef
impl From<spa_meta_cursor> for MetaCursorRef
source§fn from(value: spa_meta_cursor) -> Self
fn from(value: spa_meta_cursor) -> Self
Converts to this type from the input type.
source§impl RawWrapper for MetaCursorRef
impl RawWrapper for MetaCursorRef
§type CType = spa_meta_cursor
type CType = spa_meta_cursor
External type
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MetaCursorRef
impl Send for MetaCursorRef
impl Sync for MetaCursorRef
impl Unpin for MetaCursorRef
impl UnwindSafe for MetaCursorRef
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