X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwindows.h;h=ce6d7cbc6d0645f5bf59435ea5f9709973bea5e1;hb=f9274f0ef5edae9b1a2afcc0a4e739552d6d875a;hp=41211371bde6ad8d848256d94608cb90b0120e6f;hpb=0dabaa36270dbe843f1da82e4d325b280e6d8e91;p=plomrogue 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 */ };