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