pub struct SetupBuf { /* private fields */ }
Implementations§
source§impl SetupBuf
impl SetupBuf
sourcepub fn new(
status: u8,
protocol_major_version: u16,
protocol_minor_version: u16,
length: u16,
release_number: u32,
resource_id_base: u32,
resource_id_mask: u32,
motion_buffer_size: u32,
maximum_request_length: u16,
image_byte_order: ImageOrder,
bitmap_format_bit_order: ImageOrder,
bitmap_format_scanline_unit: u8,
bitmap_format_scanline_pad: u8,
min_keycode: Keycode,
max_keycode: Keycode,
vendor: &[u8],
pixmap_formats: &[Format],
roots: &[ScreenBuf],
) -> SetupBuf
pub fn new( status: u8, protocol_major_version: u16, protocol_minor_version: u16, length: u16, release_number: u32, resource_id_base: u32, resource_id_mask: u32, motion_buffer_size: u32, maximum_request_length: u16, image_byte_order: ImageOrder, bitmap_format_bit_order: ImageOrder, bitmap_format_scanline_unit: u8, bitmap_format_scanline_pad: u8, min_keycode: Keycode, max_keycode: Keycode, vendor: &[u8], pixmap_formats: &[Format], roots: &[ScreenBuf], ) -> SetupBuf
Construct a new SetupBuf.
Methods from Deref<Target = Setup>§
pub fn status(&self) -> u8
pub fn protocol_major_version(&self) -> u16
pub fn protocol_minor_version(&self) -> u16
pub fn length(&self) -> u16
pub fn release_number(&self) -> u32
pub fn resource_id_base(&self) -> u32
pub fn resource_id_mask(&self) -> u32
pub fn motion_buffer_size(&self) -> u32
pub fn maximum_request_length(&self) -> u16
pub fn image_byte_order(&self) -> ImageOrder
pub fn bitmap_format_bit_order(&self) -> ImageOrder
pub fn bitmap_format_scanline_unit(&self) -> u8
pub fn bitmap_format_scanline_pad(&self) -> u8
pub fn min_keycode(&self) -> Keycode
pub fn max_keycode(&self) -> Keycode
pub fn vendor(&self) -> &Lat1Str
pub fn pixmap_formats(&self) -> &[Format]
pub fn roots(&self) -> ScreenIterator<'_> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetupBuf
impl RefUnwindSafe for SetupBuf
impl Send for SetupBuf
impl Sync for SetupBuf
impl Unpin for SetupBuf
impl UnwindSafe for SetupBuf
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
)