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

#[repr(C)]
pub struct xcb_alloc_color_request_t { pub major_opcode: u8, pub pad0: u8, pub length: u16, pub cmap: xcb_colormap_t, pub red: u16, pub green: u16, pub blue: u16, pub pad1: [u8; 2], }

Allocate a color

Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware. If you are using TrueColor, you can take a shortcut and directly calculate the color pixel value to avoid the round trip. But, for example, on 16-bit color setups (VNC), you can easily get the closest supported RGB value to the RGB value you are specifying.

Fields

TODO

The red value of your color.

The green value of your color.

The blue value of your color.

Trait Implementations

impl Copy for xcb_alloc_color_request_t
[src]

impl Clone for xcb_alloc_color_request_t
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more