version 1.4.44b
[polyglot.git] / option.h
index a4cff3b..aa3190c 100644 (file)
--- a/option.h
+++ b/option.h
 #define PG       (1<<2)\r
 #define OptionNb 256\r
 \r
+#define IS_BUTTON(opt) (my_string_case_equal(opt->type,"button") ||      \\r
+                        my_string_case_equal(opt->type,"save")   ||      \\r
+                        my_string_case_equal(opt->type,"reset"))         \\r
+\r
+#define IS_SPIN(opt)   (my_string_case_equal(opt->type,"spin") ||        \\r
+                        my_string_case_equal(opt->type,"slider"))        \\r
+\r
 // types\r
 \r
 typedef struct {   // TODO: put back in more logical order\r