pub struct VideoModeBlock {Show 16 fields
pub mode: u16,
pub kind: GFXMode,
pub swidth: u32,
pub sheight: u32,
pub twidth: usize,
pub theight: usize,
pub cwidth: usize,
pub cheight: usize,
pub ptotal: u8,
pub pstart: u32,
pub plength: usize,
pub htotal: u32,
pub vtotal: usize,
pub hdispend: usize,
pub vdispend: usize,
pub special: SpecialMode,
}
Fields§
§mode: u16
§kind: GFXMode
§swidth: u32
§sheight: u32
§twidth: usize
§theight: usize
§cwidth: usize
§cheight: usize
§ptotal: u8
§pstart: u32
§plength: usize
§htotal: u32
§vtotal: usize
§hdispend: usize
§vdispend: usize
§special: SpecialMode
Implementations§
Source§impl VideoModeBlock
impl VideoModeBlock
pub fn get_mode_block(card: &GraphicCard) -> Vec<VideoModeBlock>
pub fn is_text(&self) -> bool
pub fn crtc_address(&self) -> u16
pub fn mono_mode(&self) -> bool
Trait Implementations§
Source§impl Clone for VideoModeBlock
impl Clone for VideoModeBlock
Source§fn clone(&self) -> VideoModeBlock
fn clone(&self) -> VideoModeBlock
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 Default for VideoModeBlock
impl Default for VideoModeBlock
Source§fn default() -> VideoModeBlock
fn default() -> VideoModeBlock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VideoModeBlock
impl RefUnwindSafe for VideoModeBlock
impl Send for VideoModeBlock
impl Sync for VideoModeBlock
impl Unpin for VideoModeBlock
impl UnwindSafe for VideoModeBlock
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more