[−][src]Struct xcb::ffi::xproto::xcb_alloc_color_request_t   
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: u8pad0: u8length: u16cmap: xcb_colormap_tTODO
red: u16The red value of your color.
green: u16The green value of your color.
blue: u16The 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[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Unpin for xcb_alloc_color_request_t
impl Sync for xcb_alloc_color_request_t
impl Send for xcb_alloc_color_request_t
impl UnwindSafe for xcb_alloc_color_request_t
impl RefUnwindSafe for xcb_alloc_color_request_t
Blanket Implementations
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,