From f9274f0ef5edae9b1a2afcc0a4e739552d6d875a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 26 Aug 2013 01:27:05 +0200 Subject: [PATCH] Re-structured externally visible windows library structs to more visibly separate internal from external members. --- src/windows.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ }; -- 2.30.2