#include <video_cga.h>
It can be attached to current console to "show" the screen at any time, or be used as offline text render buffer.
Definition at line 14 of file video_cga.h.
Public Member Functions | |
ScreenBuffer () | |
Creates new blank screen buffer. | |
~ScreenBuffer () | |
Destroys screen buffer. | |
int | get_width () const |
Return width. | |
int | get_height () const |
Return height. | |
void | show () |
Makes screen buffer visible on "default" console of the current process. | |
void | hide () |
Switch display to the original (stdout) screen buffer (become "offline buffer"). | |
void | set_cursor_pos (int x, int y) |
Set cursor position (0-based). | |
void | set_title (std::string title) |
Set title for the console. | |
void | put_char (int x, int y, uint8 ch) |
Place character in given cell. | |
void | put_attr (int x, int y, uint8 attr) |
Place color attribute in given cell. |
ScreenBuffer::ScreenBuffer | ( | ) |
ScreenBuffer::~ScreenBuffer | ( | ) |
int ScreenBuffer::get_width | ( | ) | const |
int ScreenBuffer::get_height | ( | ) | const |
void ScreenBuffer::show | ( | ) |
Makes screen buffer visible on "default" console of the current process.
Definition at line 33 of file video_cga.cpp.
Referenced by IBMPC::VDD_Video_CGA_6845::init(), and IBMPC::VDD_Video_CGA_6845::show().
void ScreenBuffer::hide | ( | ) |
Switch display to the original (stdout) screen buffer (become "offline buffer").
Definition at line 38 of file video_cga.cpp.
Referenced by IBMPC::VDD_Video_CGA_6845::hide().
void ScreenBuffer::set_cursor_pos | ( | int | x, | |
int | y | |||
) |
Set cursor position (0-based).
Definition at line 43 of file video_cga.cpp.
Referenced by IBMPC::VDD_Video_CGA_6845::init(), and IBMPC::VDD_Video_CGA_6845::port_write8().
void ScreenBuffer::set_title | ( | std::string | title | ) |
Set title for the console.
Definition at line 51 of file video_cga.cpp.
Referenced by IBMPC::VDD_Video_CGA_6845::init().
void ScreenBuffer::put_char | ( | int | x, | |
int | y, | |||
uint8 | ch | |||
) |
Place character in given cell.
Definition at line 56 of file video_cga.cpp.
Referenced by IBMPC::VDD_Video_CGA_6845::mem_write8().
void ScreenBuffer::put_attr | ( | int | x, | |
int | y, | |||
uint8 | attr | |||
) |
Place color attribute in given cell.
Definition at line 66 of file video_cga.cpp.
Referenced by IBMPC::VDD_Video_CGA_6845::mem_write8().