diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 04:02:21 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 04:02:21 -0400 |
| commit | a7293951f75d92a80d4d986ec7dda3fa25ab640b (patch) | |
| tree | bf62429cdf82a14d955eaf6c080fa8d415cb2fa7 /new/ui_windows.h | |
| parent | 54dd1f40017dc31cc5f302cf67cd15ecb562daa1 (diff) | |
Wrote up the initial uiButton implementation. It (mostly; just needs text and for that I need to add a uiControlHandle()) works!
Diffstat (limited to 'new/ui_windows.h')
| -rw-r--r-- | new/ui_windows.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/new/ui_windows.h b/new/ui_windows.h index 6186a61..22b0a14 100644 --- a/new/ui_windows.h +++ b/new/ui_windows.h @@ -30,8 +30,12 @@ struct uiWindowsNewControlParams { // baseX and baseY are the base units used to convert between dialog units and pixels. // internalLeading is the internal leading of the control font. void (*preferredSize)(uiControl *c, int baseX, int baseY, LONG internalLeading, intmax_t *width, intmax_t *height); + + // Data you can get with uiWindowsControlData() + void *data; }; uiControl *uiWindowsNewControl(uiWindowsNewControlParams *); +void *uiWindowsControlData(uiControl *); // use these in your preferredSize() implementation with baseX and baseY #define uiDlgUnitToX(dlg, baseX) MulDiv((dlg), baseX, 4) |
