Struct redwm::imports::PolySegmentRequest[][src]

pub struct PolySegmentRequest<'input> {
    pub drawable: u32,
    pub gc: u32,
    pub segments: Cow<'input, [Segment]>,
}
Expand description

draw lines.

Draws multiple, unconnected lines. For each segment, a line is drawn between (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of xcb_segment_t structures and does not perform joining at coincident endpoints. For any given line, a pixel is not drawn more than once. If lines intersect, the intersecting pixels are drawn multiple times.

TODO: include the xcb_segment_t data structure

TODO: an example

Fields

  • drawable - A drawable (Window or Pixmap) to draw on.
  • gc - The graphics context to use.

TODO: document which attributes of a gc are used

  • segments_len - The number of xcb_segment_t structures in segments.
  • segments - An array of xcb_segment_t structures.

Errors

  • Drawable - The specified drawable does not exist.
  • GContext - The specified gc does not exist.
  • Match - TODO: reasons?

Fields

drawable: u32gc: u32segments: Cow<'input, [Segment]>

Implementations

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

Clone all borrowed data in this PolySegmentRequest.

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.