X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fwindows.h;h=7cca04d706b879cba336ec0246a8d241938938a5;hb=ae9f20cf3a5ae71498d1f6bac4f92cc64d9e7ad6;hp=af84228ef454059debf78ba8eb7627cab5cffce4;hpb=f99786b7ced5d2c79473ce9c57c683f74c706da0;p=plomrogue diff --git a/src/windows.h b/src/windows.h index af84228..7cca04d 100644 --- a/src/windows.h +++ b/src/windows.h @@ -8,8 +8,8 @@ * (in a bizarre fashion, see below) automatically. * * Windows can be almost any width (number has to fit into 16 bits); the virtual - * screen grows with them as needed -- but only horizontally. Their height is - * limited by the height of the terminal screen. + * screen grows with them as needed -- but only horizontally and only up to 2^16 + * cells. Their height is limited by the height of the terminal screen. * * Positioning of windows can only indirectly be influenced: by resizing them, * and by shifting their relative position inside the (currently invisible) @@ -22,7 +22,7 @@ * Functions that return uint8_t return these error codes: * 0 - success * 1 - memory allocation error (of ncurses' pads/windows, or scroll hint texts) - * 2 - activity makes virtual screen grow beyond uint16 height/width confines + * 2 - activity forces virtual screen to grow beyond width of 2^16 cells * * TODO: Think up a more intuitive window positioning algorithm or at least make * the chain that windows are positioned by visible. @@ -38,12 +38,13 @@ #include "yx_uint16.h" /* for yx_uint16 coordinates */ -/* Individual windows consist of potential (real if window is visible) ncurses - * WINDOWs wrapped inside Frame structs (that keep a window's designated size - * even when it is invisible) wrapped inside metadata-rich Win structs. Win - * structs are chained into a linked list of all the windows visible on the - * virtual screen and also contain pointers to what content is to be drawn - * inside the window, and by use of what method. + +/* Individual windows consist of potential (real only if window is visible + * inside the virtual screen) ncurses WINDOWs wrapped inside Frame structs (that + * keep a window's designated size even when it is invisible) wrapped inside + * metadata-rich Win structs. Win structs are chained into a linked list of all + * the windows visible on the virtual screen and also contain pointers to what + * content is to be drawn inside the window, and by use of what method. */ struct Frame