pub struct PutImageRequest {}
Expand description
Copy data from the shared memory to the specified drawable..
Copy data from the shared memory to the specified drawable. 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 draw to.gc
- The graphics context to use.total_width
- The total width of the source image.total_height
- The total height of the source image.src_x
- The source X coordinate of the sub-image to copy.src_y
- The source Y coordinate of the sub-image to copy.src_width
- The width, in source image coordinates, of the data to copy from the source. The X server will use this to determine the amount of data to copy. The amount of the destination image that is overwritten is determined automatically.src_height
- The height, in source image coordinates, of the data to copy from the source. The X server will use this to determine the amount of data to copy. The amount of the destination image that is overwritten is determined automatically.dst_x
- The X coordinate on the destination drawable to copy to.dst_y
- The Y coordinate on the destination drawable to copy to.depth
- The depth to use.format
- The format of the image being drawn. If it is XYBitmap, depth must be 1, or a “BadMatch” error results. The foreground pixel in the GC determines the source for the one bits in the image, and the background pixel determines the source for the zero bits. For XYPixmap and ZPixmap, the depth must match the depth of the drawable, or a “BadMatch” error results.send_event
- True if the server should send an XCB_SHM_COMPLETION event when the blit completes.offset
- The offset that the source image starts at.
Fields§
§drawable: u32
§gc: u32
§total_width: u16
§total_height: u16
§src_x: u16
§src_y: u16
§src_width: u16
§src_height: u16
§dst_x: i16
§dst_y: i16
§depth: u8
§format: u8
§send_event: bool
§shmseg: u32
§offset: u32
Implementations§
Trait Implementations§
source§impl Clone for PutImageRequest
impl Clone for PutImageRequest
source§fn clone(&self) -> PutImageRequest
fn clone(&self) -> PutImageRequest
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 PutImageRequest
impl Debug for PutImageRequest
source§impl Default for PutImageRequest
impl Default for PutImageRequest
source§fn default() -> PutImageRequest
fn default() -> PutImageRequest
Returns the “default value” for a type. Read more
source§impl Request for PutImageRequest
impl Request for PutImageRequest
impl Copy for PutImageRequest
impl VoidRequest for PutImageRequest
Auto Trait Implementations§
impl Freeze for PutImageRequest
impl RefUnwindSafe for PutImageRequest
impl Send for PutImageRequest
impl Sync for PutImageRequest
impl Unpin for PutImageRequest
impl UnwindSafe for PutImageRequest
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
)