Struct x11rb_protocol::protocol::render::CompositeRequest
source · pub struct CompositeRequest {
pub op: PictOp,
pub src: Picture,
pub mask: Picture,
pub dst: Picture,
pub src_x: i16,
pub src_y: i16,
pub mask_x: i16,
pub mask_y: i16,
pub dst_x: i16,
pub dst_y: i16,
pub width: u16,
pub height: u16,
}
Fields§
§op: PictOp
§src: Picture
§mask: Picture
§dst: Picture
§src_x: i16
§src_y: i16
§mask_x: i16
§mask_y: i16
§dst_x: i16
§dst_y: i16
§width: u16
§height: u16
Implementations§
source§impl CompositeRequest
impl CompositeRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for CompositeRequest
impl Clone for CompositeRequest
source§fn clone(&self) -> CompositeRequest
fn clone(&self) -> CompositeRequest
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 CompositeRequest
impl Debug for CompositeRequest
source§impl Default for CompositeRequest
impl Default for CompositeRequest
source§fn default() -> CompositeRequest
fn default() -> CompositeRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CompositeRequest
impl<'de> Deserialize<'de> for CompositeRequest
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 Hash for CompositeRequest
impl Hash for CompositeRequest
source§impl Ord for CompositeRequest
impl Ord for CompositeRequest
source§fn cmp(&self, other: &CompositeRequest) -> Ordering
fn cmp(&self, other: &CompositeRequest) -> 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 CompositeRequest
impl PartialEq for CompositeRequest
source§fn eq(&self, other: &CompositeRequest) -> bool
fn eq(&self, other: &CompositeRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompositeRequest
impl PartialOrd for CompositeRequest
source§fn partial_cmp(&self, other: &CompositeRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &CompositeRequest) -> 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 Request for CompositeRequest
impl Request for CompositeRequest
source§impl Serialize for CompositeRequest
impl Serialize for CompositeRequest
impl Copy for CompositeRequest
impl Eq for CompositeRequest
impl StructuralPartialEq for CompositeRequest
impl VoidRequest for CompositeRequest
Auto Trait Implementations§
impl Freeze for CompositeRequest
impl RefUnwindSafe for CompositeRequest
impl Send for CompositeRequest
impl Sync for CompositeRequest
impl Unpin for CompositeRequest
impl UnwindSafe for CompositeRequest
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