render: break out rendering functions to render.{c,h}

This commit is contained in:
Daniel Eklöf 2019-07-05 10:16:56 +02:00
parent 3ba1721c0f
commit 1947d33868
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 707 additions and 744 deletions

10
render.h Normal file
View file

@ -0,0 +1,10 @@
#pragma once
#include "terminal.h"
cairo_scaled_font_t *attrs_to_font(
struct terminal *term, const struct attributes *attrs);
void grid_render(struct terminal *term);
void render_resize(struct terminal *term, int width, int height);
void render_set_title(struct terminal *term, const char *title);