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
Actual implementation of the request sending Read more
type Cookie = VoidCookie
type Cookie = VoidCookie
The default cookie associated to this request.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PolySegment<'a>
impl<'a> Send for PolySegment<'a>
impl<'a> Sync for PolySegment<'a>
impl<'a> Unpin for PolySegment<'a>
impl<'a> UnwindSafe for PolySegment<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more