aboutsummaryrefslogtreecommitdiff
path: root/libgui/inc/gui.h
blob: 52fe80515848fc93aa4e0cc9a77edbc0abb0ff86 (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
// MIT License, Copyright (c) 2020 Marvin Borner
// Some GUI functions

#ifndef GUI_H
#define GUI_H

#include <def.h>
#include <vesa.h>

// Generalized font struct
struct font {
	char *chars;
	int height;
	int width;
	int char_size;
};

void gui_write(struct vbe *vbe, int x, int y, const u32 c[3], char *text);
void gui_term_write_char(struct vbe *vbe, char ch);
void gui_term_write(struct vbe *vbe, char *text);
void gui_init(char *font_path);

#endif