aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
blob: f36628375dda427b8515bfcf695940352b364361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <unistd.h>

#include "runes.h"

int main (int argc, char *argv[])
{
    RunesTerm *t;

    t = runes_term_create();

    cairo_select_font_face(t->cr, "7x14", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size(t->cr, 14.0);
    cairo_set_source_rgb(t->cr, 0.0, 0.0, 1.0);
    cairo_move_to(t->cr, 10.0, 50.0);
    cairo_show_text(t->cr, "Hello, world");

    runes_term_flush(t);

    sleep(2);

    runes_term_destroy(t);

    return 0;
}