diff options
Diffstat (limited to 'alf/alflayout.h')
| -rw-r--r-- | alf/alflayout.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/alf/alflayout.h b/alf/alflayout.h index 9170db7..183c336 100644 --- a/alf/alflayout.h +++ b/alf/alflayout.h @@ -57,9 +57,12 @@ typedef struct tagALFLayout { int dpi; HFONT font; ALFColor bgcolor; - RECT containerMargins; - void (*calculateContainerMetrics)(struct tagALFLayout *layout, HWND hwnd, RECT *margins, SIZE *minSize); + RECT containerMargins; // may be written to by the following functions + void (*beginCalcSizes)(struct tagALFLayout *layout, HWND hwnd); + void (*handleContainerWidgetSize)(struct tagALFLayout *layout, HWND hwnd, HWND hwndContainerWidget, SIZE *s); + void (*endCalcSizes)(struct tagALFLayout *layout, HWND hwnd, SIZE *minSize); RECT allocatedWidgetRect; + void (*preApplyLayoutToContainerWidget)(struct tagALFLayout *layout, HWND hwnd, HWND hwndContainerWidget, RECT *pos); // should modify pos } ALFLayout; void |
