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
sourceimpl CopyAreaRequest
impl CopyAreaRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
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
sourceimpl Clone for CopyAreaRequest
impl Clone for CopyAreaRequest
sourcefn clone(&self) -> CopyAreaRequest
fn clone(&self) -> CopyAreaRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CopyAreaRequest
impl Debug for CopyAreaRequest
sourceimpl Default for CopyAreaRequest
impl Default for CopyAreaRequest
sourcefn default() -> CopyAreaRequest
fn default() -> CopyAreaRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for CopyAreaRequest
impl Hash for CopyAreaRequest
sourceimpl Ord for CopyAreaRequest
impl Ord for CopyAreaRequest
sourceimpl PartialEq<CopyAreaRequest> for CopyAreaRequest
impl PartialEq<CopyAreaRequest> for CopyAreaRequest
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CopyAreaRequest) -> bool
fn ne(&self, other: &CopyAreaRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CopyAreaRequest> for CopyAreaRequest
impl PartialOrd<CopyAreaRequest> for CopyAreaRequest
sourcefn partial_cmp(&self, other: &CopyAreaRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &CopyAreaRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Request for CopyAreaRequest
impl Request for CopyAreaRequest
impl Copy for CopyAreaRequest
impl Eq for CopyAreaRequest
impl StructuralEq for CopyAreaRequest
impl StructuralPartialEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more