]> git.lizzy.rs Git - nothing.git/blob - src/ui/log.h
Merge pull request #371 from tsoding/log
[nothing.git] / src / ui / log.h
1 #ifndef LOG_H_
2 #define LOG_H_
3
4 #include "math/point.h"
5
6 typedef struct Log Log;
7
8 Log *create_log(const Sprite_font *font,
9                 Vec font_size,
10                 Color font_color,
11                 size_t capacity);
12 void destroy_log(Log *log);
13
14 int log_render(const Log *log,
15                SDL_Renderer *renderer,
16                Point position);
17
18 int log_push_line(Log *log, const char *line);
19
20 #endif  // LOG_H_