X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fdraw_wins.h;h=8801f13fe8978d4fd977edfce14d872b6d102606;hb=96cc2077a4b491df2f13e71215db01ed7261cb84;hp=d3a8b9dcc2f8d568e5b091acb4c7eb0685464d3b;hpb=f222ace2f2441b21a3c29741483d8018294820a4;p=plomrogue
diff --git a/src/draw_wins.h b/src/draw_wins.h
index d3a8b9d..8801f13 100644
--- a/src/draw_wins.h
+++ b/src/draw_wins.h
@@ -1,11 +1,52 @@
+/* draw_wins.h
+ *
+ * Routnes for drawing the game's windows' contents.
+ */
+
#ifndef DRAW_WINS_H
#define DRAW_WINS_H
-void draw_with_linebreaks (struct Win *, char *, uint16_t);
-void draw_text_from_bottom (struct Win *, char *);
-void draw_log_win (struct Win *);
-void draw_map_win (struct Win *);
-void draw_info_win (struct Win *);
-void draw_keys_win (struct Win *);
+
+
+#include /* for uint16_t */
+struct Win;
+
+
+/* Write "text" into window "win" as far as possible. Start on row "start_y".
+ *
+ * TODO: Why is this external?
+ */
+extern void draw_with_linebreaks(struct Win * win, char * text,
+ uint16_t start_y);
+
+
+
+/* Write "text" not starting from the top but from the bottom of "win".
+ *
+ * TODO: Why is this external?
+ */
+extern void draw_text_from_bottom(struct Win * win, char * text);
+
+
+
+/* Write game log text into "win" from bottom to top. */
+extern void draw_log_win(struct Win * win);
+
+
+
+/* Draw game map and actors/objects on it into "win". Respect scroll offset. */
+extern void draw_map_win(struct Win * win);
+
+
+
+/* Draw into "win" the game / player status infos. */
+extern void draw_info_win(struct Win * win);
+
+
+
+/* Draw keybindings selection/manipulation menu. */
+extern void draw_keys_win(struct Win * win);
+
+
#endif