home · contact · privacy
Read in initial window sizes from files below config/.
[plomrogue] / src / wincontrol.h
index 18ac01cc88606da188f94378eb040fefe816298f..33c3b76f397296f1fd2774245c2b7d297c3bd749 100644 (file)
 #include <stdint.h> /* for uint8_t */
 struct Win;
 struct WinMeta;
+struct World;
+
+
+
+/* Wrapper around init_win() that reads the desired window size from a file
+ * at the path prefixing the provided win name "w_name" with "config/Win_".
+ * "f" is the window drawing function (Win._draw()).
+ */
+extern struct Win init_win_from_file(struct World * world, char * w_name,
+                                     void (* f) (struct Win *));
+
+
+
+
+/* Toggle windows in world->wins in the order desribed by the first line of
+ * config/toggled_win_order, wherein each character may correspond to one
+ * hardcoded window.
+ */
+extern void sorted_wintoggle(struct World * world);