Struct xcb::x::PolySegment[][src]

pub struct PolySegment<'a> {
    pub drawable: Drawable,
    pub gc: Gcontext,
    pub segments: &'a [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 Segment 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 Segment data structure

TODO: an example

Fields

drawable: Drawable

A drawable (Window or Pixmap) to draw on.

gc: Gcontext

The graphics context to use.

TODO: document which attributes of a gc are used

segments: &'a [Segment]

An array of Segment structures.

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

Actual implementation of the request sending Read more

The default cookie associated to this request.

false if the request returns a reply, true otherwise.

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.