summaryrefslogtreecommitdiff
path: root/display.h
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2017-04-08 14:21:36 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2017-04-08 14:21:36 +0200
commitf2683a4b707cd714b7f540ebf6482563df83d51e (patch)
treede4941add99f0eb1642aa57c6af180b4ee70119a /display.h
parent78d309a97b782bd6ab2716fa7595bb3f409479e3 (diff)
Near complete rewrite.
Diffstat (limited to 'display.h')
-rw-r--r--display.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/display.h b/display.h
index adc08b7..c7003fd 100644
--- a/display.h
+++ b/display.h
@@ -1,6 +1,9 @@
1#pragma once 1#pragma once
2 2
3void display_init(int width, int height); 3void display_init(int screen_width, int screen_height, int harfe_width, int harfe_height);
4void display_getdimensions(int *width, int *height, int *fontsize);
5int display_scale_harfe_to_screen(int coord);
6int display_scale_screen_to_harfe(int coord);
4void display_redraw(); 7void display_redraw();
5 8
6void display_clear(); 9void display_clear();
@@ -8,10 +11,12 @@ void display_line(int x0, int y0, int x1, int y1);
8void display_line_color(int x0, int y0, int x1, int y1, int color); 11void display_line_color(int x0, int y0, int x1, int y1, int color);
9void display_circle(int x, int y, int w); 12void display_circle(int x, int y, int w);
10void display_circle_color(int x, int y, int w, int color); 13void display_circle_color(int x, int y, int w, int color);
11void display_rectangle(int x, int y, int w, int h); 14void display_rect_color(int x, int y, int width, int height, int color);
12 15
13void display_text(char *text, int x, int y, int color); 16void display_text(char *text, int x, int y, int color);
14void display_textbox(int min_x, int pos, int max_x, int max_pos, char *text, int color); 17void display_textbox(int min_x, int pos, int max_x, int max_pos, char *text, int color);
15int display_test_menu_click(int y, int max_pos); 18int display_test_menu_click(int y, int max_pos);
19void display_messagebox(char *title, char *info);
20int display_messagebox_yesno(char *title, char *info);
16 21
17void display_report(char *message, int line); 22void display_report(char *message, int line);