X-Git-Url: https://plomlompom.com/repos/todo?a=blobdiff_plain;f=src%2Fwincontrol.h;h=33c3b76f397296f1fd2774245c2b7d297c3bd749;hb=f6aaf0667ee0f1ab62342ff7becca2beb6cabc9c;hp=017c18b677e7224b8c87d4fb80a849ce823dd61e;hpb=3b2c82991c9ab169b33248c7be840a9bcd351e6d;p=plomrogue diff --git a/src/wincontrol.h b/src/wincontrol.h index 017c18b..33c3b76 100644 --- a/src/wincontrol.h +++ b/src/wincontrol.h @@ -16,6 +16,16 @@ 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.