ScreenBuffer Class Reference

#include <video_cga.h>

List of all members.


Detailed Description

Screen buffer which one can render text onto.

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.


Constructor & Destructor Documentation

ScreenBuffer::ScreenBuffer (  ) 

Creates new blank screen buffer.

Definition at line 8 of file video_cga.cpp.

ScreenBuffer::~ScreenBuffer (  ) 

Destroys screen buffer.

Definition at line 18 of file video_cga.cpp.


Member Function Documentation

int ScreenBuffer::get_width (  )  const

Return width.

Definition at line 23 of file video_cga.cpp.

int ScreenBuffer::get_height (  )  const

Return height.

Definition at line 28 of file video_cga.cpp.

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().


The documentation for this class was generated from the following files:
Generated on Sat Sep 9 03:50:53 2006 for Openem APIs by  doxygen 1.4.7