X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=src%2Fwincontrol.h;h=c8dc83ba79b430a37d41076e9a18a114ed057912;hb=f8325a4ea617b15315183d7a8027c0b913c91034;hp=18ac01cc88606da188f94378eb040fefe816298f;hpb=e6dcab0e1261bc96d7754b24b798cc3a5f262335;p=plomrogue diff --git a/src/wincontrol.h b/src/wincontrol.h index 18ac01c..c8dc83b 100644 --- a/src/wincontrol.h +++ b/src/wincontrol.h @@ -12,6 +12,25 @@ #include /* for uint8_t */ struct Win; struct WinMeta; +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/windows/toggled_win_order, wherein each character may correspond to + * one hardcoded window. + */ +extern void sorted_wintoggle(struct World * world);