Struct x11rb::protocol::xv::Image [−][src]
pub struct Image {
pub id: u32,
pub width: u16,
pub height: u16,
pub pitches: Vec<u32>,
pub offsets: Vec<u32>,
pub data: Vec<u8>,
}
Fields
id: u32
width: u16
height: u16
pitches: Vec<u32>
offsets: Vec<u32>
data: Vec<u8>
Implementations
Get the value of the data_size
field.
The data_size
field is used as the length field of the data
field.
This function computes the field’s value again based on the length of the list.
Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Get the value of the num_planes
field.
The num_planes
field is used as the length field of the pitches
field.
This function computes the field’s value again based on the length of the list.
Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
Mutably borrows from an owned value. Read more