comparison dw.h @ 1190:76262040ed5f

Added DW_PERCENT_INDETERMINATE which can be passed to dw_percent_set_pos() to show a rotating or otherwise indeterminate percent bar on supported platforms. Platforms which don't support it will either show no progress or potentially growing and contracting progress in the future if that doesn't look too weird. Committed from Windows so may be fixes coming for the other platforms soon.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 28 Sep 2011 08:22:48 +0000
parents cef7400dcaba
children 39a5f5fc7628
comparison
equal deleted inserted replaced
1189:c5419ef79a77 1190:76262040ed5f
1387 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16) 1387 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16)
1388 #endif 1388 #endif
1389 1389
1390 #define DW_MENU_SEPARATOR "" 1390 #define DW_MENU_SEPARATOR ""
1391 #define DW_NOMENU 0 1391 #define DW_NOMENU 0
1392
1393 #define DW_PERCENT_INDETERMINATE ((unsigned int)-1)
1392 1394
1393 /* Return value error codes */ 1395 /* Return value error codes */
1394 #define DW_ERROR_NONE 0 1396 #define DW_ERROR_NONE 0
1395 #define DW_ERROR_GENERAL 1 1397 #define DW_ERROR_GENERAL 1
1396 #define DW_ERROR_TIMEOUT 2 1398 #define DW_ERROR_TIMEOUT 2