Struct xcb::ffi::xproto::xcb_poly_segment_request_t[][src]

#[repr(C)]pub struct xcb_poly_segment_request_t {
    pub major_opcode: u8,
    pub pad0: u8,
    pub length: u16,
    pub drawable: xcb_drawable_t,
    pub gc: xcb_gcontext_t,
}

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

major_opcode: u8pad0: u8length: u16drawable: xcb_drawable_t

A drawable (Window or Pixmap) to draw on.

gc: xcb_gcontext_t

The graphics context to use.

TODO: document which attributes of a gc are used

Auto Trait Implementations

impl RefUnwindSafe for xcb_poly_segment_request_t

impl Send for xcb_poly_segment_request_t

impl Sync for xcb_poly_segment_request_t

impl Unpin for xcb_poly_segment_request_t

impl UnwindSafe for xcb_poly_segment_request_t

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.