Struct xcb::xproto::Visualtype [−][src]
Fields
base: xcb_visualtype_t
Implementations
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]
visual_id: Visualid,
class: u8,
bits_per_rgb_value: u8,
colormap_entries: u16,
red_mask: u32,
green_mask: u32,
blue_mask: u32
) -> Visualtype
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 Clone for Visualtype
[src]
fn clone(&self) -> Visualtype
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Visualtype
[src]
Auto Trait Implementations
impl RefUnwindSafe for Visualtype
impl Send for Visualtype
impl Sync for Visualtype
impl Unpin for Visualtype
impl UnwindSafe for Visualtype
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,