Struct redwm::imports::CopyAreaRequest [−][src]
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
pub fn send<Conn>(
self,
conn: &Conn
) -> Result<VoidCookie<'_, Conn>, ConnectionError> where
Conn: RequestConnection + ?Sized,
pub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<CopyAreaRequest, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<CopyAreaRequest, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more