From: Christian Heller Date: Sun, 25 Aug 2013 23:27:05 +0000 (+0200) Subject: Re-structured externally visible windows library structs to more visibly separate... X-Git-Tag: tce~1051 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/move_down?a=commitdiff_plain;h=f9274f0ef5edae9b1a2afcc0a4e739552d6d875a;p=plomrogue Re-structured externally visible windows library structs to more visibly separate internal from external members. --- diff --git a/src/windows.h b/src/windows.h index 4121137..ce6d7cb 100644 --- a/src/windows.h +++ b/src/windows.h @@ -55,9 +55,9 @@ struct Win struct Win * _prev; /* INTERNAL */ /* _prev == _next == 0 if */ struct Win * _next; /* INTERNAL */ /* Win is outside the chain */ struct yx_uint16 _start; /* INTERNAL: upper left corner of WINDOW */ - struct Frame frame; char * _title; /* INTERNAL: title for window title bar */ void (* _draw) (struct Win *); /* INTERNAL: how to draw window content */ + struct Frame frame; void * data; /* window content to be drawn by _draw() */ }; @@ -70,10 +70,10 @@ struct Win struct WinMeta { WINDOW * _screen; /* INTERNAL: terminal screen */ - uint16_t pad_offset; /* number of cells view is moved to the right */ - struct Frame padframe; /* virtual screen fitted into terminal screen */ struct Win * _chain_start; /* INTERNAL: first Win, ._prev to point to 0 */ struct Win * _chain_end; /* INTERNAL: last Win, ._next to point to 0 */ + uint16_t pad_offset; /* number of cells view is moved to the right */ + struct Frame padframe; /* virtual screen fitted into terminal screen */ struct Win * active; /* Win highlighted/selected for manipulation */ };