Struct libspa_sys::spa_meta_bitmap
source · #[repr(C)]pub struct spa_meta_bitmap {
pub format: u32,
pub size: spa_rectangle,
pub stride: i32,
pub offset: u32,
}
Expand description
Bitmap information
This metadata contains a bitmap image in the given format and size. It is typically used for cursor images or other small images that are better transferred inline.
Fields§
§format: u32
< bitmap video format, one of enum spa_video_format. 0 is and invalid format and should be handled as if there is no new bitmap information.
size: spa_rectangle
< width and height of bitmap
stride: i32
< stride of bitmap data
offset: u32
< offset of bitmap data in this structure. An offset of 0 means no image data (invisible), an offset >= sizeof(struct spa_meta_bitmap) contains valid bitmap info.
Trait Implementations§
source§impl Clone for spa_meta_bitmap
impl Clone for spa_meta_bitmap
source§fn clone(&self) -> spa_meta_bitmap
fn clone(&self) -> spa_meta_bitmap
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 moresource§impl Debug for spa_meta_bitmap
impl Debug for spa_meta_bitmap
source§impl PartialEq for spa_meta_bitmap
impl PartialEq for spa_meta_bitmap
source§fn eq(&self, other: &spa_meta_bitmap) -> bool
fn eq(&self, other: &spa_meta_bitmap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_meta_bitmap
impl Eq for spa_meta_bitmap
impl StructuralPartialEq for spa_meta_bitmap
Auto Trait Implementations§
impl RefUnwindSafe for spa_meta_bitmap
impl Send for spa_meta_bitmap
impl Sync for spa_meta_bitmap
impl Unpin for spa_meta_bitmap
impl UnwindSafe for spa_meta_bitmap
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