diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-09-08 02:05:57 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-09-08 02:09:51 +0200 |
commit | 58b7930167ecccbe138bbfc7c6c7f44f9dd09107 (patch) | |
tree | 6fe98a2ad6c7fe17ff48215f0cb32fb9031db5c4 /crawl-ref/source/libgui.h | |
parent | f15db1b054f390612b74db98a4b15159f038ca56 (diff) | |
download | crawl-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/libgui.h')
-rw-r--r-- | crawl-ref/source/libgui.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/crawl-ref/source/libgui.h b/crawl-ref/source/libgui.h index 48d2ec83ff..ed49c26b30 100644 --- a/crawl-ref/source/libgui.h +++ b/crawl-ref/source/libgui.h @@ -11,9 +11,7 @@ #include <stdio.h> -#include "defines.h" - -void set_mouse_enabled(bool enabled); +#include "libconsole.h" struct coord_def; struct crawl_view_geometry; @@ -23,37 +21,5 @@ void gui_init_view_params(crawl_view_geometry &geom); // If mouse on dungeon map, returns true and sets gc. // Otherwise, it just returns false. bool gui_get_mouse_grid_pos(coord_def &gc); - -/* text display */ -void textcolor(int color); -int wherex(); -int wherey(); -int cprintf(const char *format,...); -void clear_to_end_of_line(void); -void clear_to_end_of_screen(void); -int get_number_of_lines(void); -int get_number_of_cols(void); -void _setcursortype(int curstype); -void textbackground(int bg); -void textcolor(int col); -int putwch(ucs_t chr); -void put_colour_ch(int colour, ucs_t ch); - -#define textattr(x) textcolor(x) -void set_cursor_enabled(bool enabled); -bool is_cursor_enabled(); -inline void enable_smart_cursor(bool) { } -inline bool is_smart_cursor_enabled() { return false; } - - -extern "C" int getchk(); -int getch_ck(); -int clrscr(); -void cgotoxy(int x, int y, GotoRegion region = GOTO_CRT); -coord_def cgetpos(GotoRegion region = GOTO_CRT); -GotoRegion get_cursor_region(); -void delay(int ms); -void update_screen(); -bool kbhit(); #endif // USE_TILE #endif // LIBGUI_H |