summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-09-08 02:05:57 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-09-08 02:09:51 +0200
commit58b7930167ecccbe138bbfc7c6c7f44f9dd09107 (patch)
tree6fe98a2ad6c7fe17ff48215f0cb32fb9031db5c4 /crawl-ref/source/libw32c.h
parentf15db1b054f390612b74db98a4b15159f038ca56 (diff)
downloadcrawl-ref-58b7930167ecccbe138bbfc7c6c7f44f9dd09107.tar.gz
crawl-ref-58b7930167ecccbe138bbfc7c6c7f44f9dd09107.zip
Combine common parts of lib*.h
Having different prototypes for different ports without a good reason is bad. After unification, it's easier to have, for example, two ports at once.
Diffstat (limited to 'crawl-ref/source/libw32c.h')
-rw-r--r--crawl-ref/source/libw32c.h48
1 files changed, 1 insertions, 47 deletions
diff --git a/crawl-ref/source/libw32c.h b/crawl-ref/source/libw32c.h
index b9dec4f327..64cccd2e03 100644
--- a/crawl-ref/source/libw32c.h
+++ b/crawl-ref/source/libw32c.h
@@ -3,55 +3,9 @@
#ifndef USE_TILE
-#include "defines.h"
-#include <string>
-#include <stdarg.h>
-#include <stdio.h>
+#include "libconsole.h"
-class crawl_view_buffer;
-
-void init_libw32c(void);
-void deinit_libw32c(void);
-
-int get_number_of_lines();
-int get_number_of_cols();
-
-void set_cursor_enabled(bool enabled);
-bool is_cursor_enabled();
-
-void clrscr(void);
-void clear_to_end_of_line();
-void gotoxy_sys(int x, int y);
-void textcolor(int c);
-void textattr(int c);
-void cprintf(const char *format, ...);
-// void cprintf(const char *s);
-void set_string_input(bool value);
bool set_buffering(bool value);
-int get_console_string(char *buf, int maxlen);
-void print_timings(void);
-
-int wherex(void);
-int wherey(void);
-void putwch(ucs_t c);
-int getchk(void);
-int getch_ck(void);
-bool kbhit(void);
-void delay(int ms);
-void textbackground(int c);
-void puttext(int x, int y, const crawl_view_buffer &vbuf);
-void update_screen();
-
-void enable_smart_cursor(bool cursor);
-bool is_smart_cursor_enabled();
-void set_mouse_enabled(bool enabled);
-
-inline void put_colour_ch(int colour, unsigned ch)
-{
- textattr(colour);
- putwch(ch);
-}
-
#endif
#endif