Struct webrender_api::ImageDescriptor
[−]
[src]
pub struct ImageDescriptor { pub format: ImageFormat, pub width: u32, pub height: u32, pub stride: Option<u32>, pub offset: u32, pub is_opaque: bool, }
Fields
format: ImageFormat
width: u32
height: u32
stride: Option<u32>
offset: u32
is_opaque: bool
Methods
impl ImageDescriptor
[src]
pub fn new(
width: u32,
height: u32,
format: ImageFormat,
is_opaque: bool
) -> Self
[src]
width: u32,
height: u32,
format: ImageFormat,
is_opaque: bool
) -> Self
pub fn compute_stride(&self) -> u32
[src]
Trait Implementations
impl Copy for ImageDescriptor
[src]
impl Clone for ImageDescriptor
[src]
fn clone(&self) -> ImageDescriptor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ImageDescriptor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for ImageDescriptor
[src]
fn eq(&self, __arg_0: &ImageDescriptor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImageDescriptor) -> bool
[src]
This method tests for !=
.