summaryrefslogtreecommitdiff
path: root/new/ui_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 03:39:47 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 03:39:47 -0400
commit54dd1f40017dc31cc5f302cf67cd15ecb562daa1 (patch)
tree10da4eb50f3dd26dfd4e1f01f1c9aa4bc1067c68 /new/ui_windows.h
parentc4045909606cbc7733846ef7ca482d27bddd2e30 (diff)
Hooked up resizing. Now to make a control that uses this.
Diffstat (limited to 'new/ui_windows.h')
-rw-r--r--new/ui_windows.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/new/ui_windows.h b/new/ui_windows.h
index 330b7cb..6186a61 100644
--- a/new/ui_windows.h
+++ b/new/ui_windows.h
@@ -33,4 +33,8 @@ struct uiWindowsNewControlParams {
};
uiControl *uiWindowsNewControl(uiWindowsNewControlParams *);
+// use these in your preferredSize() implementation with baseX and baseY
+#define uiDlgUnitToX(dlg, baseX) MulDiv((dlg), baseX, 4)
+#define uiDlgUnitToY(dlg, baseY) MulDiv((dlg), baseY, 8)
+
#endif