FDOSTUI
FreeDOS Text User Interface
|
screen drawing routines (no clipping) The draw.h module contians clipping routines. More...
Go to the source code of this file.
Typedefs | |
typedef unsigned short int | screen_block_t |
typedef unsigned char | screen_char_t |
Functions | |
int | screen_init () |
configures the display screen More... | |
void | screen_deinit () |
returns the screen to mode on entry More... | |
int | screen_set25lines () |
set 25 line screen mode More... | |
int | screen_set50lines () |
set 50 line screen mode More... | |
void | screen_changed_size () |
void | screen_fill (screen_char_t const i_char, enum foreground const i_fcolor, enum background const i_bcolor) |
fill entire screen display More... | |
void | screen_fill_area (int const i_col, int const i_row, unsigned int const i_columns, unsigned int const i_rows, screen_char_t const i_char, enum foreground const i_fcolor, enum background const i_bcolor) |
fill an area of the screen More... | |
void | screen_putc (int const i_col, int const i_row, screen_char_t const i_char, unsigned int const i_repeat_count, enum foreground const i_fcolor, enum background const i_bcolor) |
draw a character to the screen More... | |
void | screen_putvc (int const i_col, int const i_row, screen_char_t const i_char, unsigned int const i_repeat_count, enum foreground const i_fcolor, enum background const i_bcolor) |
draw a character to the screen More... | |
void | screen_puts (int const i_col, int const i_row, unsigned char const __FAR *i_string, unsigned int const i_length, enum foreground const i_fcolor, enum background const i_bcolor) |
draw a string to the screen More... | |
void | screen_set_color (int const i_col, int const i_row, unsigned int const i_repeat_count, enum foreground const i_fcolor, enum background const i_bcolor) |
sets the foreground and background color of a horizontal region More... | |
screen_block_t | screen_getc (int const i_col, int const i_row) |
reads a character and it's attribute from the screen More... | |
screen_block_t __FAR * | screen_read (screen_block_t __FAR *o_block, unsigned int const i_columns, int const i_col, int const i_row) |
read a line of screen memory More... | |
screen_block_t const __FAR * | screen_write (int const i_col, int const i_row, screen_block_t const __FAR *i_block, unsigned int const i_columns) |
write a line of screen memory More... | |
void | screen_push (int const i_copy) |
void | screen_pop () |
Variables | |
unsigned int | _video_cols |
unsigned int | _video_rows |
int | _video_has_color |
screen drawing routines (no clipping) The draw.h module contians clipping routines.
enum background |
background color
enum background |
enum background |
enum foreground |
foreground colors
enum foreground |
enum foreground |
void screen_deinit | ( | ) |
returns the screen to mode on entry
void screen_fill | ( | screen_char_t const | i_char, |
enum foreground const | i_fcolor, | ||
enum background const | i_bcolor | ||
) |
fill entire screen display
[in] | i_char | fill character |
[in] | i_color | foreground color |
[in] | i_bcolor | background color |
void screen_fill_area | ( | int const | i_col, |
int const | i_row, | ||
unsigned int const | i_columns, | ||
unsigned int const | i_rows, | ||
screen_char_t const | i_char, | ||
enum foreground const | i_fcolor, | ||
enum background const | i_bcolor | ||
) |
fill an area of the screen
[in] | i_col | column |
[in] | i_row | row |
[in] | i_columns | number of columns |
[in] | i_rows | number of rows |
[in] | i_char | fill character |
[in] | i_fcolor | foreground color |
[in] | i_bcolor | background color |
int screen_getc | ( | int const | i_col, |
int const | i_row | ||
) |
reads a character and it's attribute from the screen
[in] | i_col | column |
[in] | i_row | rwo |
int screen_init | ( | ) |
configures the display screen
void screen_putc | ( | int const | i_col, |
int const | i_row, | ||
screen_char_t const | i_char, | ||
unsigned int const | i_repeat_count, | ||
enum foreground const | i_fcolor, | ||
enum background const | i_bcolor | ||
) |
draw a character to the screen
[in] | i_col | column |
[in] | i_row | row |
[in] | i_repeat_count | number of times to repeat horizontally |
[in] | i_fcolor | foreground color |
[in] | i_bcolor | background color |
void screen_puts | ( | int const | i_col, |
int const | i_row, | ||
unsigned char const __FAR * | i_string, | ||
unsigned int const | i_length, | ||
enum foreground const | i_fcolor, | ||
enum background const | i_bcolor | ||
) |
draw a string to the screen
[in] | i_col | column |
[in] | i_row | row |
[in] | i_string | string to write |
[in] | i_length | length of string |
[in] | i_fcolor | foreground color |
[in] | i_bcolor | background color |
void screen_putvc | ( | int const | i_col, |
int const | i_row, | ||
screen_char_t const | i_char, | ||
unsigned int const | i_repeat_count, | ||
enum foreground const | i_fcolor, | ||
enum background const | i_bcolor | ||
) |
draw a character to the screen
[in] | i_col | column |
[in] | i_row | row |
[in] | i_repeat_count | number of times to repeat vertically |
[in] | i_fcolor | foreground color |
[in] | i_bcolor | background color |
screen_block_t __FAR * screen_read | ( | screen_block_t __FAR * | o_block, |
unsigned int const | i_columns, | ||
int const | i_col, | ||
int const | i_row | ||
) |
read a line of screen memory
[out] | o_block | memory block to place screen data (must be large enough) |
[in] | i_columns | number of columns to read |
[in] | i_col | column |
[in] | i_row | row |
curses version will add a null termination byte. Therefore, o_block must be i_columns+1 long. The return address will be the termination byte o_block+i_columns.
int screen_set25lines | ( | ) |
set 25 line screen mode
int screen_set50lines | ( | ) |
set 50 line screen mode
void screen_set_color | ( | int const | i_col, |
int const | i_row, | ||
unsigned int const | i_repeat_count, | ||
enum foreground const | i_fcolor, | ||
enum background const | i_bcolor | ||
) |
sets the foreground and background color of a horizontal region
[in] | i_col | column |
[in] | i_row | row |
[in] | i_repeat_count | number of times to repeat horizontally |
[in] | i_fcolor | foreground color |
[in] | i_bcolor | background color |
screen_block_t __FAR * screen_write | ( | int const | i_col, |
int const | i_row, | ||
screen_block_t const __FAR * | i_block, | ||
unsigned int const | i_columns | ||
) |
write a line of screen memory
[in] | i_col | column |
[in] | i_row | row |
[in] | i_block | block of memory containing data to write toscreen |
[in] | i_columns | number of columns to write |
_video_cols |
number of video columns
_video_rows |
number of video rows