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 specified drawable (Window or Pixmap) does not exist.
  • GContext - The specified graphics context does not exist.
  • Match - src_drawable has a different root or depth than dst_drawable.

Fields

src_drawable: u32dst_drawable: u32gc: u32src_x: i16src_y: i16dst_x: i16dst_y: i16width: u16height: u16

Implementations

Parse this request given its header, its body, and any fds that go along with it

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The kind of reply that this request generates.

Parse a reply to this request. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.