FDOSTUI
FreeDOS Text User Interface
Functions
draw.h File Reference

drawing routines that applies clipping More...

Go to the source code of this file.

Functions

void draw_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 draw_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 draw_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 draw_puts (int const i_col, int const i_row, unsigned char const *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 draw_frame (struct box const *const i_box, struct skin_frame const *const i_skin, enum foreground const i_fcolor, enum background const i_bcolor)
 draw a frame to the screen More...
 

Detailed Description

drawing routines that applies clipping

Function Documentation

◆ draw_fill_area()

void draw_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

Parameters
[in]i_colcolumn
[in]i_rowrow
[in]i_columnsnumber of columns
[in]i_rowsnumber of rows
[in]i_charfill character
[in]i_fcolorforeground color
[in]i_bcolorbackground color
Returns
none

◆ draw_frame()

void draw_frame ( struct box const *const  i_box,
struct skin_frame const *const  i_skin,
enum foreground const  i_fcolor,
enum background const  i_bcolor 
)

draw a frame to the screen

Parameters
[in]i_boxrectangular area to draw
[in]i_skinframe properties
[in]i_fcolorforeground color
[in]i_bcolorbackground color
Returns
none

◆ draw_putc()

void draw_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

Parameters
[in]i_colcolumn
[in]i_rowrow
[in]i_repeat_countnumber of times to repeat horizontally
[in]i_fcolorforeground color
[in]i_bcolorbackground color
Returns
none

◆ draw_puts()

void draw_puts ( int const  i_col,
int const  i_row,
unsigned char const *  i_string,
unsigned int const  i_length,
enum foreground const  i_fcolor,
enum background const  i_bcolor 
)

draw a string to the screen

Parameters
[in]i_colcolumn
[in]i_rowrow
[in]i_stringstring to write
[in]i_lengthlength of string
[in]i_fcolorforeground color
[in]i_bcolorbackground color
Returns
none

◆ draw_putvc()

void draw_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

Parameters
[in]i_colcolumn
[in]i_rowrow
[in]i_repeat_countnumber of times to repeat vertically
[in]i_fcolorforeground color
[in]i_bcolorbackground color
Returns
none