widget_attributes.hpp
Go to the documentation of this file.
00001 /* 00002 Copyright 2006-2007 Adobe Systems Incorporated 00003 Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt 00004 or a copy at http://stlab.adobe.com/licenses.html) 00005 */ 00006 00007 /*************************************************************************************************/ 00008 00009 #ifndef ADOBE_WIDGET_ATTRIBUTES_HPP 00010 #define ADOBE_WIDGET_ATTRIBUTES_HPP 00011 00012 #include <adobe/config.hpp> 00013 00014 #include <adobe/enum_ops.hpp> 00015 00016 #include <climits> 00017 00018 /*************************************************************************************************/ 00019 00020 namespace adobe { 00021 00022 /*************************************************************************************************/ 00023 00040 enum theme_t 00041 { 00043 theme_none_s = 0, 00044 00046 theme_large_s = 1, 00048 theme_normal_s = 2, 00050 theme_small_s = 3, 00052 theme_mini_s = 4, 00053 00055 theme_adornment_label_s = 1L << 29, 00057 theme_adornment_number_s = 1L << 30, 00059 theme_adornment_mono_s = 1L << 31, 00060 00062 theme_mask_s = theme_large_s | 00063 theme_normal_s | 00064 theme_small_s | 00065 theme_mini_s, 00066 00068 theme_adornment_mask_s = theme_adornment_mono_s | 00069 theme_adornment_number_s | 00070 theme_adornment_label_s, 00071 00073 theme_default_s = theme_normal_s 00074 }; 00075 00076 /*************************************************************************************************/ 00077 00078 ADOBE_DEFINE_BITSET_OPS(theme_t) 00079 00080 /*************************************************************************************************/ 00081 00082 00093 enum modifiers_t 00094 { 00096 modifiers_none_s = 0, 00097 00099 modifiers_left_shift_s = 1 << 0, 00100 00102 modifiers_right_shift_s = 1 << 1, 00103 00105 modifiers_left_option_s = 1 << 2, 00106 00108 modifiers_right_option_s = 1 << 3, 00109 00111 modifiers_left_control_s = 1 << 4, 00112 00114 modifiers_right_control_s = 1 << 5, 00115 00117 modifiers_caps_lock_s = 1 << 6, 00118 00119 00121 modifiers_any_command_s = 1 << 7, 00122 00124 modifiers_any_shift_s = modifiers_left_shift_s | modifiers_right_shift_s, 00125 00127 modifiers_any_option_s = modifiers_left_option_s | modifiers_right_option_s, 00128 00130 modifiers_any_control_s = modifiers_left_control_s | modifiers_right_control_s, 00131 00132 modifiers_all_s = UINT_MAX 00133 }; 00134 00135 /*************************************************************************************************/ 00136 00137 ADOBE_DEFINE_BITSET_OPS(modifiers_t) 00138 00139 /*************************************************************************************************/ 00140 00141 } // namepspace adobe 00142 00143 /*************************************************************************************************/ 00144 00145 #endif 00146 00147 /*************************************************************************************************/ |