From b0b0e97aa5a06b22768bb9c9ea5e8caf383d78a4 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 27 Dec 2018 20:50:39 +0100 Subject: split into multiple files --- alf/alfpriv.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 alf/alfpriv.h (limited to 'alf/alfpriv.h') diff --git a/alf/alfpriv.h b/alf/alfpriv.h new file mode 100644 index 0000000..08f3832 --- /dev/null +++ b/alf/alfpriv.h @@ -0,0 +1,67 @@ +#include "alf.h" + +#include +#include +#include +#include +#include + +#ifdef _MSC_VER +// MSVC6 for scoping hack +# define for if(0){}else for +#endif + +#include "alflist.h" + +typedef struct { + ALFListHeader list; + HWND hwnd; + UINT x; + UINT y; + UINT cptWidth; + UINT cptHeight; + UINT cptMarginTop; + UINT cptMarginRight; + UINT cptMarginBottom; + UINT cptMarginLeft; + DWORD flags; +} ALFWidgetPriv; + +typedef struct { + int minWidth; + int allocatedWidth; + int allocatedPosition; + int expand : 1; +} ALFRowOrColumn; + +typedef struct { + ALFRowOrColumn *columns; + ALFRowOrColumn *rows; + int nColumns; + int nRows; + int totalMinWidth; + int totalMinHeight; + int occupiedColumnCount; + int occupiedRowCount; +} ALFLayout; + +typedef struct { + ALFAPP app; + ALFWindowVTable *vtbl; + void *closure; + ALFWindowFonts fonts; + ALFListHeader widgets; + int modalResult; + ALFLayout layout; + WORD defid; + HWND hwndFocus; +} ALFWindowPriv; + +struct ALFAppPriv { + HINSTANCE hInstance; + ALFCompatFunctions *compatFn; +}; + +ALFCompatFunctions * +ALF_CreateCompatFuncTable(void); + -- cgit v1.2.3