Struct x11rb_protocol::protocol::shm::GetImageRequest
source · pub struct GetImageRequest {
pub drawable: Drawable,
pub x: i16,
pub y: i16,
pub width: u16,
pub height: u16,
pub plane_mask: u32,
pub format: u8,
pub shmseg: Seg,
pub offset: u32,
}
Expand description
Copies data from the specified drawable to the shared memory segment..
Copy data from the specified drawable to the shared memory segment. The amount of bytes written to the destination image is always equal to the number of bytes read from the shared memory segment.
§Fields
drawable
- The drawable to copy the image out of.x
- The X coordinate in the drawable to begin copying at.y
- The Y coordinate in the drawable to begin copying at.width
- The width of the image to copy.height
- The height of the image to copy.plane_mask
- A mask that determines which planes are used.format
- The format to use for the copy (???).shmseg
- The destination shared memory segment.offset
- The offset in the shared memory segment to copy data to.
Fields§
§drawable: Drawable
§x: i16
§y: i16
§width: u16
§height: u16
§plane_mask: u32
§format: u8
§shmseg: Seg
§offset: u32
Implementations§
source§impl GetImageRequest
impl GetImageRequest
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 GetImageRequest
impl Clone for GetImageRequest
source§fn clone(&self) -> GetImageRequest
fn clone(&self) -> GetImageRequest
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 GetImageRequest
impl Debug for GetImageRequest
source§impl Default for GetImageRequest
impl Default for GetImageRequest
source§fn default() -> GetImageRequest
fn default() -> GetImageRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetImageRequest
impl<'de> Deserialize<'de> for GetImageRequest
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 GetImageRequest
impl Hash for GetImageRequest
source§impl Ord for GetImageRequest
impl Ord for GetImageRequest
source§fn cmp(&self, other: &GetImageRequest) -> Ordering
fn cmp(&self, other: &GetImageRequest) -> 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 GetImageRequest
impl PartialEq for GetImageRequest
source§fn eq(&self, other: &GetImageRequest) -> bool
fn eq(&self, other: &GetImageRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetImageRequest
impl PartialOrd for GetImageRequest
source§fn partial_cmp(&self, other: &GetImageRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &GetImageRequest) -> 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 ReplyRequest for GetImageRequest
impl ReplyRequest for GetImageRequest
§type Reply = GetImageReply
type Reply = GetImageReply
The kind of reply that this request generates.
source§impl Request for GetImageRequest
impl Request for GetImageRequest
source§impl Serialize for GetImageRequest
impl Serialize for GetImageRequest
impl Copy for GetImageRequest
impl Eq for GetImageRequest
impl StructuralPartialEq for GetImageRequest
Auto Trait Implementations§
impl Freeze for GetImageRequest
impl RefUnwindSafe for GetImageRequest
impl Send for GetImageRequest
impl Sync for GetImageRequest
impl Unpin for GetImageRequest
impl UnwindSafe for GetImageRequest
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