Struct breadx::auto::xproto::Colormap [−][src]
#[repr(transparent)]pub struct Colormap { pub xid: XID, }
Fields
xid: XIDImplementations
pub fn alloc_color<Dpy: Display + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> Result<RequestCookie<AllocColorRequest>>[src]
pub fn alloc_color<Dpy: Display + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> Result<RequestCookie<AllocColorRequest>>[src]Allocate a new color in the colormap.
pub async fn alloc_color_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> SendRequestFuture<'_, Dpy, AllocColorRequest>[src]
pub async fn alloc_color_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> SendRequestFuture<'_, Dpy, AllocColorRequest>[src]Allocate a new color in the colormap, async redox.
pub fn alloc_color_immediate<Dpy: Display + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> Result<ColorAllocation>[src]
pub fn alloc_color_immediate<Dpy: Display + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> Result<ColorAllocation>[src]Immediately allocate a new color in the colormap.
pub async fn alloc_color_immediate_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> MapFuture<ExchangeRequestFuture<'_, Dpy, AllocColorRequest>, Box<dyn FnOnce(AllocColorReply) -> ColorAllocation + Send>>[src]
pub async fn alloc_color_immediate_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy,
r: u16,
g: u16,
b: u16
) -> MapFuture<ExchangeRequestFuture<'_, Dpy, AllocColorRequest>, Box<dyn FnOnce(AllocColorReply) -> ColorAllocation + Send>>[src]Immediately allocate a new color in the colormap, async redox.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Colormapimpl UnwindSafe for ColormapBlanket Implementations
Get the size needed to store this item in terms of bytes. Higher is better than lower here, since this is mostly used to allocate buffers for items. Read more
If this item has any file descriptors stored within, this function returns them.
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,