#include <Vga.h>
Vga device abstraction.
Definition at line 32 of file kernel/machine/mach_pc/Vga.h.
◆ X86Vga()
◆ ~X86Vga()
◆ flush()
◆ getNumCols()
| virtual size_t X86Vga::getNumCols |
( |
| ) |
|
|
inlinevirtual |
◆ getNumRows()
| virtual size_t X86Vga::getNumRows |
( |
| ) |
|
|
inlinevirtual |
◆ initialise()
| bool X86Vga::initialise |
( |
| ) |
|
◆ moveCursor()
| void X86Vga::moveCursor |
( |
size_t |
nX, |
|
|
size_t |
nY |
|
) |
| |
|
virtual |
Moves the cursor to the position specified by the parameters.
- Parameters
-
| nX | The column to move to. |
| nY | The row to move to. |
Implements Vga.
Definition at line 57 of file mach_pc/Vga.cc.
References Framebuffer::redraw().
◆ operator uint16_t *()
| X86Vga::operator uint16_t * |
( |
| ) |
const |
|
inlinevirtual |
◆ peekBuffer()
| void X86Vga::peekBuffer |
( |
uint8_t * |
pBuffer, |
|
|
size_t |
nBufLen |
|
) |
| |
|
virtual |
Copies the current framebuffer into the given buffer.
The buffer is assumed to be in the correct format for directly copying from video memory. This will obviously depend on the current mode (text/graphical) as well as resolution and bits per pixel (graphics mode only).
- Parameters
-
| pBuffer | A pointer to the buffer. |
| nBufLen | The length of pBuffer. |
Implements Vga.
Definition at line 48 of file mach_pc/Vga.cc.
◆ pokeBuffer()
| void X86Vga::pokeBuffer |
( |
uint8_t * |
pBuffer, |
|
|
size_t |
nBufLen |
|
) |
| |
|
virtual |
Copies the given buffer into video memory, replacing the current framebuffer.
The buffer is assumed to be in the correct format for directly copying into video memory. This will obviously depend on the current mode (text/graphical) as well as resolution and bits per pixel (graphics mode only).
- Parameters
-
| pBuffer | A pointer to the buffer to swap into video memory. |
| nBufLen | The length of pBuffer. |
Implements Vga.
Definition at line 38 of file mach_pc/Vga.cc.
◆ setFramebuffer()
| bool X86Vga::setFramebuffer |
( |
Framebuffer * |
framebuffer | ) |
|
|
overridevirtual |
◆ setLargestTextMode()
| bool X86Vga::setLargestTextMode |
( |
| ) |
|
|
virtual |
Sets the largest possible text mode.
- Returns
- True on success, false on failure.
Implements Vga.
Definition at line 32 of file mach_pc/Vga.cc.
◆ m_Console
◆ m_ConsoleLock
| Spinlock X86Vga::m_ConsoleLock {false, true} |
|
private |
◆ m_Framebuffer
◆ m_pConsoleFramebuffer
The documentation for this class was generated from the following files: