Struct breadx::auto::xproto::Colormap [−][src]
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]
self,
dpy: &mut Display<Conn>,
r: u16,
g: u16,
b: u16
) -> Result<RequestCookie<AllocColorRequest>>
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]
self,
dpy: &mut Display<Conn>,
r: u16,
g: u16,
b: u16
) -> Result<RequestCookie<AllocColorRequest>>
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]
self,
dpy: &mut Display<Conn>,
r: u16,
g: u16,
b: u16
) -> Result<ColorAllocation>
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]
self,
dpy: &mut Display<Conn>,
r: u16,
g: u16,
b: u16
) -> Result<ColorAllocation>
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Colormap
[src]
fn cmp(&self, other: &Colormap) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Colormap> for Colormap
[src]
impl PartialOrd<Colormap> for Colormap
[src]
fn partial_cmp(&self, other: &Colormap) -> Option<Ordering>
[src]
fn lt(&self, other: &Colormap) -> bool
[src]
fn le(&self, other: &Colormap) -> bool
[src]
fn gt(&self, other: &Colormap) -> bool
[src]
fn ge(&self, other: &Colormap) -> bool
[src]
impl StructuralEq for Colormap
[src]
impl StructuralPartialEq for Colormap
[src]
impl XidType for Colormap
[src]
Auto Trait Implementations
impl RefUnwindSafe for Colormap
[src]
impl Send for Colormap
[src]
impl Sync for Colormap
[src]
impl Unpin for Colormap
[src]
impl UnwindSafe for Colormap
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsByteSequence for T where
T: XidType,
[src]
T: XidType,
pub fn size(&Self) -> usize
[src]
pub fn as_bytes(&Self, &mut [u8]) -> usize
[src]
pub fn from_bytes(&[u8]) -> Option<(T, usize)>
[src]
fn file_descriptors(&mut self) -> Option<&mut Vec<Fd>>
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,