Struct CopyAreaRequest
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§
§impl Clone for CopyAreaRequest
impl Clone for CopyAreaRequest
§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 more§impl Debug for CopyAreaRequest
impl Debug for CopyAreaRequest
§impl Default for CopyAreaRequest
impl Default for CopyAreaRequest
§fn default() -> CopyAreaRequest
fn default() -> CopyAreaRequest
Returns the “default value” for a type. Read more
§impl Request for CopyAreaRequest
impl Request for CopyAreaRequest
impl Copy for CopyAreaRequest
impl VoidRequest for CopyAreaRequest
Auto Trait Implementations§
impl Freeze for CopyAreaRequest
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
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
)