Struct x11rb_protocol::protocol::xproto::CopyAreaRequest
source · pub struct CopyAreaRequest {
pub src_drawable: Drawable,
pub dst_drawable: Drawable,
pub gc: Gcontext,
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: Drawable
§dst_drawable: Drawable
§gc: Gcontext
§src_x: i16
§src_y: i16
§dst_x: i16
§dst_y: i16
§width: u16
§height: u16
Implementations§
source§impl CopyAreaRequest
impl CopyAreaRequest
sourcepub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
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<'de> Deserialize<'de> for CopyAreaRequest
impl<'de> Deserialize<'de> for CopyAreaRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for CopyAreaRequest
impl Hash for CopyAreaRequest
source§impl Ord for CopyAreaRequest
impl Ord for CopyAreaRequest
source§fn cmp(&self, other: &CopyAreaRequest) -> Ordering
fn cmp(&self, other: &CopyAreaRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CopyAreaRequest
impl PartialEq for CopyAreaRequest
source§fn eq(&self, other: &CopyAreaRequest) -> bool
fn eq(&self, other: &CopyAreaRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CopyAreaRequest
impl PartialOrd for CopyAreaRequest
source§fn partial_cmp(&self, other: &CopyAreaRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &CopyAreaRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Request for CopyAreaRequest
impl Request for CopyAreaRequest
source§impl Serialize for CopyAreaRequest
impl Serialize for CopyAreaRequest
impl Copy for CopyAreaRequest
impl Eq for CopyAreaRequest
impl StructuralPartialEq 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