Struct x11rb::protocol::render::QueryPictFormatsReply
source · pub struct QueryPictFormatsReply {
pub sequence: u16,
pub length: u32,
pub num_depths: u32,
pub num_visuals: u32,
pub formats: Vec<Pictforminfo>,
pub screens: Vec<Pictscreen>,
pub subpixels: Vec<SubPixel>,
}
Fields§
§sequence: u16
§length: u32
§num_depths: u32
§num_visuals: u32
§formats: Vec<Pictforminfo>
§screens: Vec<Pictscreen>
§subpixels: Vec<SubPixel>
Implementations§
source§impl QueryPictFormatsReply
impl QueryPictFormatsReply
sourcepub fn num_formats(&self) -> u32
pub fn num_formats(&self) -> u32
Get the value of the num_formats
field.
The num_formats
field is used as the length field of the formats
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.
sourcepub fn num_screens(&self) -> u32
pub fn num_screens(&self) -> u32
Get the value of the num_screens
field.
The num_screens
field is used as the length field of the screens
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.
sourcepub fn num_subpixel(&self) -> u32
pub fn num_subpixel(&self) -> u32
Get the value of the num_subpixel
field.
The num_subpixel
field is used as the length field of the subpixels
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§
source§impl Clone for QueryPictFormatsReply
impl Clone for QueryPictFormatsReply
source§fn clone(&self) -> QueryPictFormatsReply
fn clone(&self) -> QueryPictFormatsReply
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more