summaryrefslogtreecommitdiff
path: root/new/ui_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 19:32:16 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 19:32:16 -0400
commit42204af0865cd6c712b1f9b1e20694c1fc971503 (patch)
tree6e398429026632df2067a281c14dbe57970fec3a /new/ui_windows.h
parent38eecd3fc3538c597a032c940519ffdb78cffd82 (diff)
Implemented uiButton.preferredSize() on Windows. This includes adding a function to get the width of text in a control.
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 22b0a14..cbbe859 100644
--- a/new/ui_windows.h
+++ b/new/ui_windows.h
@@ -41,4 +41,8 @@ void *uiWindowsControlData(uiControl *);
#define uiDlgUnitToX(dlg, baseX) MulDiv((dlg), baseX, 4)
#define uiDlgUnitToY(dlg, baseY) MulDiv((dlg), baseY, 8)
+// and use this if you need the text of the window width
+// TODO really export?
+extern intmax_t uiWindowsWindowTextWidth(HWND hwnd);
+
#endif