summaryrefslogtreecommitdiff
path: root/libterm/term_gui.h
blob: 408382e7ee6c6ffb34e24509f3dd5ec2e2df2aed (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
#ifndef __LIBTERM_TERM_GUI_H
#define __LIBTERM_TERM_GUI_H

#include "term.h"
#include "term_io.h"

typedef struct term_gui
{
	term_screen *ts;
	int w;
	int h;
	int abs_x;
	int abs_y;
} term_gui;

int term_gui_init( term_gui *tg, term_screen *ts );
int term_set_wh( term_screen *tg, int width, int height );
int term_gui_input_box( term_gui *ts, int x, int y, int w, int h, char *prompt, 
		char *str, size_t sz );
int term_gui_draw( term_gui *tg );
int term_gui_destroy( term_gui *tg );


#endif