pub fn copy_area<Conn>(
conn: &Conn,
src_drawable: Drawable,
dst_drawable: Drawable,
gc: Gcontext,
src_x: i16,
src_y: i16,
dst_x: i16,
dst_y: i16,
width: u16,
height: u16,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>where
Conn: RequestConnection + ?Sized,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_drawablehas a different root or depth thandst_drawable.