Struct breadx::auto::xproto::Colormap[][src]

#[repr(transparent)]pub struct Colormap {
    pub xid: XID,
}

Fields

xid: XID

Implementations

impl Colormap[src]

pub const fn const_from_xid(xid: XID) -> Self[src]

impl Colormap[src]

pub fn alloc_color<Conn: Connection>(
    self,
    dpy: &mut Display<Conn>,
    r: u16,
    g: u16,
    b: u16
) -> Result<RequestCookie<AllocColorRequest>>
[src]

Allocate a new color in the colormap.

pub async fn alloc_color_async<Conn: AsyncConnection + Send>(
    self,
    dpy: &mut Display<Conn>,
    r: u16,
    g: u16,
    b: u16
) -> Result<RequestCookie<AllocColorRequest>>
[src]

Allocate a new color in the colormap, async redox.

pub fn alloc_color_immediate<Conn: Connection>(
    self,
    dpy: &mut Display<Conn>,
    r: u16,
    g: u16,
    b: u16
) -> Result<ColorAllocation>
[src]

Immediately allocate a new color in the colormap.

pub async fn alloc_color_immediate_async<Conn: AsyncConnection + Send>(
    self,
    dpy: &mut Display<Conn>,
    r: u16,
    g: u16,
    b: u16
) -> Result<ColorAllocation>
[src]

Immediately allocate a new color in the colormap, async redox.

Trait Implementations

impl Clone for Colormap[src]

impl Copy for Colormap[src]

impl Debug for Colormap[src]

impl Default for Colormap[src]

impl Eq for Colormap[src]

impl Hash for Colormap[src]

impl Ord for Colormap[src]

impl PartialEq<Colormap> for Colormap[src]

impl PartialOrd<Colormap> for Colormap[src]

impl StructuralEq for Colormap[src]

impl StructuralPartialEq for Colormap[src]

impl XidType for Colormap[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsByteSequence for T where
    T: XidType
[src]

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

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

impl<T> CallHasher for T where
    T: Hash

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.