Struct x11rb::protocol::xproto::CopyAreaRequest
source · pub struct CopyAreaRequest {
pub src_drawable: u32,
pub dst_drawable: u32,
pub gc: u32,
pub src_x: i16,
pub src_y: i16,
pub dst_x: i16,
pub dst_y: i16,
pub width: u16,
pub height: u16,
}
Expand description
copy areas.
Copies the specified rectangle from src_drawable
to dst_drawable
.
Fields
dst_drawable
- The destination drawable (Window or Pixmap).src_drawable
- The source drawable (Window or Pixmap).gc
- The graphics context to use.src_x
- The source X coordinate.src_y
- The source Y coordinate.dst_x
- The destination X coordinate.dst_y
- The destination Y coordinate.width
- The width of the area to copy (in pixels).height
- The height of the area to copy (in pixels).
Errors
Drawable
- The specifieddrawable
(Window or Pixmap) does not exist.GContext
- The specified graphics context does not exist.Match
-src_drawable
has a different root or depth thandst_drawable
.
Fields§
§src_drawable: u32
§dst_drawable: u32
§gc: u32
§src_x: i16
§src_y: i16
§dst_x: i16
§dst_y: i16
§width: u16
§height: u16
Implementations§
Trait Implementations§
source§impl Clone for CopyAreaRequest
impl Clone for CopyAreaRequest
source§fn clone(&self) -> CopyAreaRequest
fn clone(&self) -> CopyAreaRequest
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 CopyAreaRequest
impl Debug for CopyAreaRequest
source§impl Default for CopyAreaRequest
impl Default for CopyAreaRequest
source§fn default() -> CopyAreaRequest
fn default() -> CopyAreaRequest
Returns the “default value” for a type. Read more
source§impl Request for CopyAreaRequest
impl Request for CopyAreaRequest
impl Copy for CopyAreaRequest
impl VoidRequest for CopyAreaRequest
Auto Trait Implementations§
impl RefUnwindSafe for CopyAreaRequest
impl Send for CopyAreaRequest
impl Sync for CopyAreaRequest
impl Unpin for CopyAreaRequest
impl UnwindSafe for CopyAreaRequest
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