FDOSTUI
FreeDOS Text User Interface
draw.h
Go to the documentation of this file.
1 /*
2  DRAW.H
3 
4  License CC0 PUBLIC DOMAIN
5 
6  To the extent possible under law, Mark J. Olesen has waived all copyright
7  and related or neighboring rights to FDOSTUI Library. This work is published
8  from: United States.
9 */
10 #ifndef __draw_h__
11 
12 #include "screen.h"
13 #include "skin.h"
14 #include "box.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 extern void
22  int const i_col,
23  int const i_row,
24  unsigned int const i_columns,
25  unsigned int const i_rows,
26  screen_char_t const i_char,
27  enum foreground const i_fcolor,
28  enum background const i_bcolor);
29 
30 extern void
31 draw_putc(
32  int const i_col,
33  int const i_row,
34  screen_char_t const i_char,
35  unsigned int const i_repeat_count,
36  enum foreground const i_fcolor,
37  enum background const i_bcolor);
38 
39 extern void
41  int const i_col,
42  int const i_row,
43  screen_char_t const i_char,
44  unsigned int const i_repeat_count,
45  enum foreground const i_fcolor,
46  enum background const i_bcolor);
47 
48 extern void
49 draw_puts(
50  int const i_col,
51  int const i_row,
52  unsigned char const* i_string,
53  unsigned int const i_length,
54  enum foreground const i_fcolor,
55  enum background const i_bcolor);
56 
57 extern void
59  struct box const*const i_box,
60  struct skin_frame const*const i_skin,
61  enum foreground const i_fcolor,
62  enum background const i_bcolor);
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #define __draw_h__
69 #endif
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
Definition: draw.c:15
screen drawing routines (no clipping) The draw.h module contians clipping routines.
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
Definition: draw.c:98
frame theme
Definition: skin.h:14
a rectanglular region
simple theme
background
background color
Definition: screen.h:117
foreground
foreground colors
Definition: screen.h:43
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
Definition: draw.c:57
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
Definition: draw.c:139
defines a rectangular region
Definition: box.h:12
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
Definition: draw.c:185