summaryrefslogtreecommitdiff
path: root/libterm/term_gui.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-02-17 15:15:26 +0900
committerFreeArtMan <dos21h@gmail.com>2015-02-17 15:15:26 +0900
commitc1e6c1341ace1f61569e6d1d0dbfb36cb192113c (patch)
tree9fc23f173342a680333825bc8300cad422ba99a5 /libterm/term_gui.h
parent3090282601248d3ce5f91cbddeb450d744b27472 (diff)
downloadmicrobbs-c1e6c1341ace1f61569e6d1d0dbfb36cb192113c.tar.gz
microbbs-c1e6c1341ace1f61569e6d1d0dbfb36cb192113c.zip
Updated libterm. Updated config headers
Diffstat (limited to 'libterm/term_gui.h')
-rw-r--r--libterm/term_gui.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libterm/term_gui.h b/libterm/term_gui.h
new file mode 100644
index 0000000..408382e
--- /dev/null
+++ b/libterm/term_gui.h
@@ -0,0 +1,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 \ No newline at end of file