summaryrefslogtreecommitdiff
path: root/alf/alflayout.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-01 19:00:24 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-01 19:00:24 +0200
commitfa2220862856936839a4023fdb6e000f3c93d86f (patch)
tree7bf06e85490246b661c825d005551aaa76abbea3 /alf/alflayout.h
parent3e069b70cf30a69ea2a3f71233b8f258f54284bc (diff)
groupbox first implementation
only classic theme for now, will do uxtheme soon
Diffstat (limited to 'alf/alflayout.h')
-rw-r--r--alf/alflayout.h7
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