diff options
author | erdgeist <erdgeist@bauklotz.fritz.box> | 2017-04-08 14:21:36 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2017-04-08 14:21:36 +0200 |
commit | f2683a4b707cd714b7f540ebf6482563df83d51e (patch) | |
tree | de4941add99f0eb1642aa57c6af180b4ee70119a /display.h | |
parent | 78d309a97b782bd6ab2716fa7595bb3f409479e3 (diff) |
Near complete rewrite.
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,9 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | void display_init(int width, int height); | 3 | void display_init(int screen_width, int screen_height, int harfe_width, int harfe_height); |
4 | void display_getdimensions(int *width, int *height, int *fontsize); | ||
5 | int display_scale_harfe_to_screen(int coord); | ||
6 | int display_scale_screen_to_harfe(int coord); | ||
4 | void display_redraw(); | 7 | void display_redraw(); |
5 | 8 | ||
6 | void display_clear(); | 9 | void display_clear(); |
@@ -8,10 +11,12 @@ void display_line(int x0, int y0, int x1, int y1); | |||
8 | void display_line_color(int x0, int y0, int x1, int y1, int color); | 11 | void display_line_color(int x0, int y0, int x1, int y1, int color); |
9 | void display_circle(int x, int y, int w); | 12 | void display_circle(int x, int y, int w); |
10 | void display_circle_color(int x, int y, int w, int color); | 13 | void display_circle_color(int x, int y, int w, int color); |
11 | void display_rectangle(int x, int y, int w, int h); | 14 | void display_rect_color(int x, int y, int width, int height, int color); |
12 | 15 | ||
13 | void display_text(char *text, int x, int y, int color); | 16 | void display_text(char *text, int x, int y, int color); |
14 | void display_textbox(int min_x, int pos, int max_x, int max_pos, char *text, int color); | 17 | void display_textbox(int min_x, int pos, int max_x, int max_pos, char *text, int color); |
15 | int display_test_menu_click(int y, int max_pos); | 18 | int display_test_menu_click(int y, int max_pos); |
19 | void display_messagebox(char *title, char *info); | ||
20 | int display_messagebox_yesno(char *title, char *info); | ||
16 | 21 | ||
17 | void display_report(char *message, int line); | 22 | void display_report(char *message, int line); |