Struct xcb::x::Visualtype
source · pub struct Visualtype { /* private fields */ }
Implementations§
source§impl Visualtype
impl Visualtype
sourcepub fn new(
visual_id: Visualid,
class: VisualClass,
bits_per_rgb_value: u8,
colormap_entries: u16,
red_mask: u32,
green_mask: u32,
blue_mask: u32,
) -> Visualtype
pub fn new( visual_id: Visualid, class: VisualClass, bits_per_rgb_value: u8, colormap_entries: u16, red_mask: u32, green_mask: u32, blue_mask: u32, ) -> Visualtype
Construct a new Visualtype.
pub fn visual_id(&self) -> Visualid
pub fn class(&self) -> VisualClass
pub fn bits_per_rgb_value(&self) -> u8
pub fn colormap_entries(&self) -> u16
pub fn red_mask(&self) -> u32
pub fn green_mask(&self) -> u32
pub fn blue_mask(&self) -> u32
Trait Implementations§
source§impl Clone for Visualtype
impl Clone for Visualtype
source§fn clone(&self) -> Visualtype
fn clone(&self) -> Visualtype
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Visualtype
impl Debug for Visualtype
impl Copy for Visualtype
Auto Trait Implementations§
impl Freeze for Visualtype
impl RefUnwindSafe for Visualtype
impl Send for Visualtype
impl Sync for Visualtype
impl Unpin for Visualtype
impl UnwindSafe for Visualtype
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)