#[repr(C)]pub struct OH_NativeBuffer_Config {
pub width: i32,
pub height: i32,
pub format: i32,
pub usage: i32,
pub stride: i32,
}Available on crate feature
native_buffer only.Expand description
OH_NativeBuffer config.
Used to allocating new OH_NativeBuffer andquery parameters if existing ones.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeBuffer
Available since API-level: 9
Version: 1.0
Fields§
§width: i32< Width in pixels
height: i32< Height in pixels
format: i32< One of PixelFormat
usage: i32< Combination of buffer usage
stride: i32< the stride of memory
Trait Implementations§
Source§impl Clone for OH_NativeBuffer_Config
impl Clone for OH_NativeBuffer_Config
Source§fn clone(&self) -> OH_NativeBuffer_Config
fn clone(&self) -> OH_NativeBuffer_Config
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 OH_NativeBuffer_Config
impl Debug for OH_NativeBuffer_Config
impl Copy for OH_NativeBuffer_Config
Auto Trait Implementations§
impl Freeze for OH_NativeBuffer_Config
impl RefUnwindSafe for OH_NativeBuffer_Config
impl Send for OH_NativeBuffer_Config
impl Sync for OH_NativeBuffer_Config
impl Unpin for OH_NativeBuffer_Config
impl UnwindSafe for OH_NativeBuffer_Config
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