[−][src]Struct vga::vga::Vga
Represents a vga graphics card with it's common registers, as well as the most recent video mode.
Fields
general_registers: GeneralRegisters
Represents the general registers on vga hardware.
sequencer_registers: SequencerRegisters
Represents the sequencer registers on vga hardware.
graphics_controller_registers: GraphicsControllerRegisters
Represents the graphics controller registers on vga hardware.
attribute_controller_registers: AttributeControllerRegisters
Represents the attribute controller registers on vga hardware.
crtc_controller_registers: CrtcControllerRegisters
Represents the crtc controller registers on vga hardware.
color_palette_registers: ColorPaletteRegisters
Represents the color palette registers on vga hardware.
Methods
impl Vga
[src]
pub fn set_video_mode(&mut self, video_mode: VideoMode)
[src]
Sets the vga graphics card to the given VideoMode
.
pub fn get_frame_buffer(&mut self) -> FrameBuffer
[src]
Gets the FrameBuffer
address as specified by the
Miscellaneous Output Register
.
pub fn get_most_recent_video_mode(&self) -> Option<VideoMode>
[src]
Returns the most recent video mode, or None
if no
video mode has been set yet.
pub fn get_emulation_mode(&mut self) -> EmulationMode
[src]
Returns the current EmulationMode
as determined by the miscellaneous output register.
pub fn load_font(&mut self, vga_font: &VgaFont)
[src]
Loads a vga text mode font as specified by vga_font
.
Auto Trait Implementations
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,
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, 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.
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>,