pub struct GetImageRequest {
pub drawable: u32,
pub x: i16,
pub y: i16,
pub width: u16,
pub height: u16,
pub plane_mask: u32,
pub format: u8,
pub shmseg: u32,
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: u32
§x: i16
§y: i16
§width: u16
§height: u16
§plane_mask: u32
§format: u8
§shmseg: u32
§offset: u32
Implementations§
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 ReplyRequest for GetImageRequest
impl ReplyRequest for GetImageRequest
source§type Reply = GetImageReply
type Reply = GetImageReply
The kind of reply that this request generates.
source§impl Request for GetImageRequest
impl Request for GetImageRequest
impl Copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)