Struct x11rb_protocol::protocol::xf86dri::GetDrawableInfoReply
source · pub struct GetDrawableInfoReply {
pub sequence: u16,
pub length: u32,
pub drawable_table_index: u32,
pub drawable_table_stamp: u32,
pub drawable_origin_x: i16,
pub drawable_origin_y: i16,
pub drawable_size_w: i16,
pub drawable_size_h: i16,
pub back_x: i16,
pub back_y: i16,
pub clip_rects: Vec<DrmClipRect>,
pub back_clip_rects: Vec<DrmClipRect>,
}
Fields§
§sequence: u16
§length: u32
§drawable_table_index: u32
§drawable_table_stamp: u32
§drawable_origin_x: i16
§drawable_origin_y: i16
§drawable_size_w: i16
§drawable_size_h: i16
§back_x: i16
§back_y: i16
§clip_rects: Vec<DrmClipRect>
§back_clip_rects: Vec<DrmClipRect>
Implementations§
source§impl GetDrawableInfoReply
impl GetDrawableInfoReply
sourcepub fn num_clip_rects(&self) -> u32
pub fn num_clip_rects(&self) -> u32
Get the value of the num_clip_rects
field.
The num_clip_rects
field is used as the length field of the clip_rects
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_back_clip_rects(&self) -> u32
pub fn num_back_clip_rects(&self) -> u32
Get the value of the num_back_clip_rects
field.
The num_back_clip_rects
field is used as the length field of the back_clip_rects
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 GetDrawableInfoReply
impl Clone for GetDrawableInfoReply
source§fn clone(&self) -> GetDrawableInfoReply
fn clone(&self) -> GetDrawableInfoReply
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetDrawableInfoReply
impl Debug for GetDrawableInfoReply
source§impl Default for GetDrawableInfoReply
impl Default for GetDrawableInfoReply
source§fn default() -> GetDrawableInfoReply
fn default() -> GetDrawableInfoReply
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetDrawableInfoReply
impl<'de> Deserialize<'de> for GetDrawableInfoReply
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<GetDrawableInfoReply> for Reply
impl From<GetDrawableInfoReply> for Reply
source§fn from(reply: GetDrawableInfoReply) -> Reply
fn from(reply: GetDrawableInfoReply) -> Reply
Converts to this type from the input type.
source§impl Hash for GetDrawableInfoReply
impl Hash for GetDrawableInfoReply
source§impl Ord for GetDrawableInfoReply
impl Ord for GetDrawableInfoReply
source§fn cmp(&self, other: &GetDrawableInfoReply) -> Ordering
fn cmp(&self, other: &GetDrawableInfoReply) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GetDrawableInfoReply
impl PartialEq for GetDrawableInfoReply
source§fn eq(&self, other: &GetDrawableInfoReply) -> bool
fn eq(&self, other: &GetDrawableInfoReply) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetDrawableInfoReply
impl PartialOrd for GetDrawableInfoReply
source§fn partial_cmp(&self, other: &GetDrawableInfoReply) -> Option<Ordering>
fn partial_cmp(&self, other: &GetDrawableInfoReply) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for GetDrawableInfoReply
impl Serialize for GetDrawableInfoReply
source§impl Serialize for GetDrawableInfoReply
impl Serialize for GetDrawableInfoReply
source§impl TryParse for GetDrawableInfoReply
impl TryParse for GetDrawableInfoReply
impl Eq for GetDrawableInfoReply
impl StructuralPartialEq for GetDrawableInfoReply
Auto Trait Implementations§
impl Freeze for GetDrawableInfoReply
impl RefUnwindSafe for GetDrawableInfoReply
impl Send for GetDrawableInfoReply
impl Sync for GetDrawableInfoReply
impl Unpin for GetDrawableInfoReply
impl UnwindSafe for GetDrawableInfoReply
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> TryParseFd for Twhere
T: TryParse,
impl<T> TryParseFd for Twhere
T: TryParse,
source§fn try_parse_fd<'a>(
value: &'a [u8],
_: &mut Vec<RawFdContainer>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<RawFdContainer> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more