The Pedigree Project
0.1
|
#include <Vga.h>
Public Member Functions | |
char | read () |
void | write (char c) |
virtual bool | setMode (int mode) |
bool | setLargestTextMode () |
bool | isMode (size_t nCols, size_t nRows, bool bIsText, size_t nBpp=0) |
bool | isLargestTextMode () |
size_t | getNumCols () |
size_t | getNumRows () |
void | rememberMode () |
void | restoreMode () |
void | pokeBuffer (uint8_t *pBuffer, size_t nBufLen) |
void | peekBuffer (uint8_t *pBuffer, size_t nBufLen) |
void | moveCursor (size_t nX, size_t nY) |
operator uint16_t * () const | |
Public Member Functions inherited from Vga | |
virtual void | setControl (VgaControl which)=0 |
virtual void | clearControl (VgaControl which)=0 |
Additional Inherited Members | |
Public Types inherited from Vga | |
enum | VgaControl { LineGraphics = 2, Blink = 3 } |
Vga device abstraction.
Definition at line 28 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Implements Vga.
Definition at line 77 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Implements Vga.
Definition at line 85 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Tests if the current video mode is the largest text mode.
Implements Vga.
Definition at line 69 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Tests the current video mode.
Implements Vga.
Definition at line 60 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Moves the cursor to the position specified by the parameters.
nX | The column to move to. |
nY | The row to move to. |
Implements Vga.
Definition at line 127 of file kernel/machine/arm_versatile/Vga.h.
Referenced by HostedVga::pokeBuffer().
|
inlinevirtual |
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).
A | pointer to the buffer. |
The | length of pBuffer. |
Implements Vga.
Definition at line 120 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
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).
A | pointer to the buffer to swap into video memory. |
The | length of pBuffer. |
Implements Vga.
Definition at line 110 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Stores the current video mode.
Implements Vga.
Definition at line 93 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Restores the saved video mode from a rememberMode() call.
Implements Vga.
Definition at line 98 of file kernel/machine/arm_versatile/Vga.h.
|
inlinevirtual |
Sets the largest possible text mode.
Implements Vga.
Definition at line 51 of file kernel/machine/arm_versatile/Vga.h.
|
virtual |
Changes the mode the VGA device is in.
nCols | The number of columns required. |
nRows | The number of rows required. |
bIsText | True if the caller requires a text mode, false if graphical. |
nBpp | Only applicable for graphics modes - the number of bits per pixel. |
Implements Vga.
Definition at line 36 of file kernel/machine/arm_versatile/Vga.cc.