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
major_opcode: u8
pad0: u8
length: u16
cmap: xcb_colormap_t
TODO
red: u16
The red value of your color.
green: u16
The green value of your color.
blue: u16
The blue value of your color.
pad1: [u8; 2]
Trait Implementations
impl Copy for xcb_alloc_color_request_t
[src]
impl Clone for xcb_alloc_color_request_t
[src]
fn clone(&self) -> xcb_alloc_color_request_t
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more