X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fwincontrol.h;h=29a6ddfef472cb3da1fae9594b9da786c0674d9f;hb=c1a7e6cdb13cd7d883424afdf0fe08e9a10fbc28;hp=017c18b677e7224b8c87d4fb80a849ce823dd61e;hpb=385ac8287af0e5e5b5ab0539b47cda9b8dcbec58;p=plomrogue diff --git a/src/wincontrol.h b/src/wincontrol.h index 017c18b..29a6ddf 100644 --- a/src/wincontrol.h +++ b/src/wincontrol.h @@ -16,9 +16,19 @@ struct World; +/* Wrapper around init_win() that reads the desired window size and title from a + * file at the path prefixing the provided win name "w_name" with + * "config/windows/". "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. + * config/windows/toggled_win_order, wherein each character may correspond to + * one hardcoded window. */ extern void sorted_wintoggle(struct World * world);