diff dw.h @ 2740:9be24001d288

Style update. Add DW_SIZE_AUTO (-1) for passing automatic sizing to packing. Also convert SIZEEXPAND/STATIC and TYPEBOX/ITEM to the new format based on our new style guidelines. as _DW_SIZE_EXPAND/STATIC and _DW_TYPE_BOX/ITEM.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 19 Dec 2021 15:39:43 +0000
parents 3a7dcc0ae08b
children 0b1030337dd3
line wrap: on
line diff
--- a/dw.h	Sat Dec 18 19:31:57 2021 +0000
+++ b/dw.h	Sun Dec 19 15:39:43 2021 +0000
@@ -133,13 +133,16 @@
 #endif
 
 /* Used internally */
-#define TYPEBOX  0
-#define TYPEITEM 1
+#define _DW_TYPE_BOX  0
+#define _DW_TYPE_ITEM 1
+
+#define _DW_SPLITBAR_WIDTH 4
 
-#define SIZESTATIC 0
-#define SIZEEXPAND 1
+#define _DW_SIZE_STATIC 0
+#define _DW_SIZE_EXPAND 1
 
-#define SPLITBAR_WIDTH 4
+/* Control size constants */
+#define DW_SIZE_AUTO    -1
 
 typedef struct _user_data
 {