Struct x11rb_protocol::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 moresource§impl Debug for QueryPictFormatsReply
impl Debug for QueryPictFormatsReply
source§impl Default for QueryPictFormatsReply
impl Default for QueryPictFormatsReply
source§fn default() -> QueryPictFormatsReply
fn default() -> QueryPictFormatsReply
source§impl<'de> Deserialize<'de> for QueryPictFormatsReply
impl<'de> Deserialize<'de> for QueryPictFormatsReply
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<QueryPictFormatsReply> for Reply
impl From<QueryPictFormatsReply> for Reply
source§fn from(reply: QueryPictFormatsReply) -> Reply
fn from(reply: QueryPictFormatsReply) -> Reply
source§impl Hash for QueryPictFormatsReply
impl Hash for QueryPictFormatsReply
source§impl Ord for QueryPictFormatsReply
impl Ord for QueryPictFormatsReply
source§fn cmp(&self, other: &QueryPictFormatsReply) -> Ordering
fn cmp(&self, other: &QueryPictFormatsReply) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for QueryPictFormatsReply
impl PartialEq for QueryPictFormatsReply
source§fn eq(&self, other: &QueryPictFormatsReply) -> bool
fn eq(&self, other: &QueryPictFormatsReply) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QueryPictFormatsReply
impl PartialOrd for QueryPictFormatsReply
source§fn partial_cmp(&self, other: &QueryPictFormatsReply) -> Option<Ordering>
fn partial_cmp(&self, other: &QueryPictFormatsReply) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more