main uint/cterm / include / draw.h
 1#ifndef DRAW_H
 2#define DRAW_H
 3
 4#include <stdint.h>
 5
 6#include "font.h"
 7
 8/* clear a buffer size wxh */
 9void draw_clear(uint32_t* dst, int w, int h, uint32_t col);
10
11/* draw a run of properties (look: vvvv) to screen */
12void draw_rune(uint32_t* dst, int w, int h, int cl, int rw, int cw, int ch,
13               uint32_t bg);
14
15/* fill the background of a rune
16   (TODO: runes) */
17void draw_caret(uint32_t* dst, int w, int h, int cl, int rw, int cw, int ch,
18                 uint32_t fg);
19
20/* draw one codepoint to buffer */
21void draw_codepoint(Fontface* face, uint32_t* dst, int w, int h, int x,
22                    int baseline, uint32_t cp, uint32_t fg);
23
24#endif /* DRAW_H */
25