[][src]Struct xcb::xproto::Visualtype

pub struct Visualtype {
    pub base: xcb_visualtype_t,
}

Fields

base: xcb_visualtype_t

Methods

impl Visualtype[src]

pub fn new(
    visual_id: Visualid,
    class: u8,
    bits_per_rgb_value: u8,
    colormap_entries: u16,
    red_mask: u32,
    green_mask: u32,
    blue_mask: u32
) -> Visualtype
[src]

pub fn visual_id(&self) -> Visualid[src]

pub fn class(&self) -> u8[src]

pub fn bits_per_rgb_value(&self) -> u8[src]

pub fn colormap_entries(&self) -> u16[src]

pub fn red_mask(&self) -> u32[src]

pub fn green_mask(&self) -> u32[src]

pub fn blue_mask(&self) -> u32[src]

Trait Implementations

impl Copy for Visualtype[src]

impl Clone for Visualtype[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 Visualtype

impl Sync for Visualtype

impl Send for Visualtype

impl UnwindSafe for Visualtype

impl RefUnwindSafe for Visualtype

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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