1 #ifndef LV_SYMBOL_DEF_H 2 #define LV_SYMBOL_DEF_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include "../lv_conf_internal.h" 9 10 /*------------------------------- 11 * Symbols from "normal" font 12 *-----------------------------*/ 13 #if !defined LV_SYMBOL_BULLET 14 #define LV_SYMBOL_BULLET "\xE2\x80\xA2" /*20042, 0x2022*/ 15 #endif 16 17 /*------------------------------- 18 * Symbols from FontAwesome font 19 *-----------------------------*/ 20 21 /*In the font converter use this list as range: 22 61441, 61448, 61451, 61452, 61453, 61457, 61459, 61461, 61465, 61468, 23 61473, 61478, 61479, 61480, 61502, 61507, 61512, 61515, 61516, 61517, 24 61521, 61522, 61523, 61524, 61543, 61544, 61550, 61552, 61553, 61556, 25 61559, 61560, 61561, 61563, 61587, 61589, 61636, 61637, 61639, 61641, 26 61664, 61671, 61674, 61683, 61724, 61732, 61787, 61931, 62016, 62017, 27 62018, 62019, 62020, 62087, 62099, 62189, 62212, 62810, 63426, 63650 28 */ 29 30 /* These symbols can be prefined in the lv_conf.h file. 31 * If they are not predefined, they will use the following values 32 */ 33 34 #if !defined LV_SYMBOL_AUDIO 35 #define LV_SYMBOL_AUDIO "\xEF\x80\x81" /*61441, 0xF001*/ 36 #endif 37 38 #if !defined LV_SYMBOL_VIDEO 39 #define LV_SYMBOL_VIDEO "\xEF\x80\x88" /*61448, 0xF008*/ 40 #endif 41 42 #if !defined LV_SYMBOL_LIST 43 #define LV_SYMBOL_LIST "\xEF\x80\x8B" /*61451, 0xF00B*/ 44 #endif 45 46 #if !defined LV_SYMBOL_OK 47 #define LV_SYMBOL_OK "\xEF\x80\x8C" /*61452, 0xF00C*/ 48 #endif 49 50 #if !defined LV_SYMBOL_CLOSE 51 #define LV_SYMBOL_CLOSE "\xEF\x80\x8D" /*61453, 0xF00D*/ 52 #endif 53 54 #if !defined LV_SYMBOL_POWER 55 #define LV_SYMBOL_POWER "\xEF\x80\x91" /*61457, 0xF011*/ 56 #endif 57 58 #if !defined LV_SYMBOL_SETTINGS 59 #define LV_SYMBOL_SETTINGS "\xEF\x80\x93" /*61459, 0xF013*/ 60 #endif 61 62 #if !defined LV_SYMBOL_HOME 63 #define LV_SYMBOL_HOME "\xEF\x80\x95" /*61461, 0xF015*/ 64 #endif 65 66 #if !defined LV_SYMBOL_DOWNLOAD 67 #define LV_SYMBOL_DOWNLOAD "\xEF\x80\x99" /*61465, 0xF019*/ 68 #endif 69 70 #if !defined LV_SYMBOL_DRIVE 71 #define LV_SYMBOL_DRIVE "\xEF\x80\x9C" /*61468, 0xF01C*/ 72 #endif 73 74 #if !defined LV_SYMBOL_REFRESH 75 #define LV_SYMBOL_REFRESH "\xEF\x80\xA1" /*61473, 0xF021*/ 76 #endif 77 78 #if !defined LV_SYMBOL_MUTE 79 #define LV_SYMBOL_MUTE "\xEF\x80\xA6" /*61478, 0xF026*/ 80 #endif 81 82 #if !defined LV_SYMBOL_VOLUME_MID 83 #define LV_SYMBOL_VOLUME_MID "\xEF\x80\xA7" /*61479, 0xF027*/ 84 #endif 85 86 #if !defined LV_SYMBOL_VOLUME_MAX 87 #define LV_SYMBOL_VOLUME_MAX "\xEF\x80\xA8" /*61480, 0xF028*/ 88 #endif 89 90 #if !defined LV_SYMBOL_IMAGE 91 #define LV_SYMBOL_IMAGE "\xEF\x80\xBE" /*61502, 0xF03E*/ 92 #endif 93 94 #if !defined LV_SYMBOL_TINT 95 #define LV_SYMBOL_TINT "\xEF\x81\x83" /*61507, 0xF043*/ 96 #endif 97 98 #if !defined LV_SYMBOL_PREV 99 #define LV_SYMBOL_PREV "\xEF\x81\x88" /*61512, 0xF048*/ 100 #endif 101 102 #if !defined LV_SYMBOL_PLAY 103 #define LV_SYMBOL_PLAY "\xEF\x81\x8B" /*61515, 0xF04B*/ 104 #endif 105 106 #if !defined LV_SYMBOL_PAUSE 107 #define LV_SYMBOL_PAUSE "\xEF\x81\x8C" /*61516, 0xF04C*/ 108 #endif 109 110 #if !defined LV_SYMBOL_STOP 111 #define LV_SYMBOL_STOP "\xEF\x81\x8D" /*61517, 0xF04D*/ 112 #endif 113 114 #if !defined LV_SYMBOL_NEXT 115 #define LV_SYMBOL_NEXT "\xEF\x81\x91" /*61521, 0xF051*/ 116 #endif 117 118 #if !defined LV_SYMBOL_EJECT 119 #define LV_SYMBOL_EJECT "\xEF\x81\x92" /*61522, 0xF052*/ 120 #endif 121 122 #if !defined LV_SYMBOL_LEFT 123 #define LV_SYMBOL_LEFT "\xEF\x81\x93" /*61523, 0xF053*/ 124 #endif 125 126 #if !defined LV_SYMBOL_RIGHT 127 #define LV_SYMBOL_RIGHT "\xEF\x81\x94" /*61524, 0xF054*/ 128 #endif 129 130 #if !defined LV_SYMBOL_PLUS 131 #define LV_SYMBOL_PLUS "\xEF\x81\xA7" /*61543, 0xF067*/ 132 #endif 133 134 #if !defined LV_SYMBOL_MINUS 135 #define LV_SYMBOL_MINUS "\xEF\x81\xA8" /*61544, 0xF068*/ 136 #endif 137 138 #if !defined LV_SYMBOL_EYE_OPEN 139 #define LV_SYMBOL_EYE_OPEN "\xEF\x81\xAE" /*61550, 0xF06E*/ 140 #endif 141 142 #if !defined LV_SYMBOL_EYE_CLOSE 143 #define LV_SYMBOL_EYE_CLOSE "\xEF\x81\xB0" /*61552, 0xF070*/ 144 #endif 145 146 #if !defined LV_SYMBOL_WARNING 147 #define LV_SYMBOL_WARNING "\xEF\x81\xB1" /*61553, 0xF071*/ 148 #endif 149 150 #if !defined LV_SYMBOL_SHUFFLE 151 #define LV_SYMBOL_SHUFFLE "\xEF\x81\xB4" /*61556, 0xF074*/ 152 #endif 153 154 #if !defined LV_SYMBOL_UP 155 #define LV_SYMBOL_UP "\xEF\x81\xB7" /*61559, 0xF077*/ 156 #endif 157 158 #if !defined LV_SYMBOL_DOWN 159 #define LV_SYMBOL_DOWN "\xEF\x81\xB8" /*61560, 0xF078*/ 160 #endif 161 162 #if !defined LV_SYMBOL_LOOP 163 #define LV_SYMBOL_LOOP "\xEF\x81\xB9" /*61561, 0xF079*/ 164 #endif 165 166 #if !defined LV_SYMBOL_DIRECTORY 167 #define LV_SYMBOL_DIRECTORY "\xEF\x81\xBB" /*61563, 0xF07B*/ 168 #endif 169 170 #if !defined LV_SYMBOL_UPLOAD 171 #define LV_SYMBOL_UPLOAD "\xEF\x82\x93" /*61587, 0xF093*/ 172 #endif 173 174 #if !defined LV_SYMBOL_CALL 175 #define LV_SYMBOL_CALL "\xEF\x82\x95" /*61589, 0xF095*/ 176 #endif 177 178 #if !defined LV_SYMBOL_CUT 179 #define LV_SYMBOL_CUT "\xEF\x83\x84" /*61636, 0xF0C4*/ 180 #endif 181 182 #if !defined LV_SYMBOL_COPY 183 #define LV_SYMBOL_COPY "\xEF\x83\x85" /*61637, 0xF0C5*/ 184 #endif 185 186 #if !defined LV_SYMBOL_SAVE 187 #define LV_SYMBOL_SAVE "\xEF\x83\x87" /*61639, 0xF0C7*/ 188 #endif 189 190 #if !defined LV_SYMBOL_BARS 191 #define LV_SYMBOL_BARS "\xEF\x83\x89" /*61641, 0xF0C9*/ 192 #endif 193 194 #if !defined LV_SYMBOL_ENVELOPE 195 #define LV_SYMBOL_ENVELOPE "\xEF\x83\xA0" /*61664, 0xF0E0*/ 196 #endif 197 198 #if !defined LV_SYMBOL_CHARGE 199 #define LV_SYMBOL_CHARGE "\xEF\x83\xA7" /*61671, 0xF0E7*/ 200 #endif 201 202 #if !defined LV_SYMBOL_PASTE 203 #define LV_SYMBOL_PASTE "\xEF\x83\xAA" /*61674, 0xF0EA*/ 204 #endif 205 206 #if !defined LV_SYMBOL_BELL 207 #define LV_SYMBOL_BELL "\xEF\x83\xB3" /*61683, 0xF0F3*/ 208 #endif 209 210 #if !defined LV_SYMBOL_KEYBOARD 211 #define LV_SYMBOL_KEYBOARD "\xEF\x84\x9C" /*61724, 0xF11C*/ 212 #endif 213 214 #if !defined LV_SYMBOL_GPS 215 #define LV_SYMBOL_GPS "\xEF\x84\xA4" /*61732, 0xF124*/ 216 #endif 217 218 #if !defined LV_SYMBOL_FILE 219 #define LV_SYMBOL_FILE "\xEF\x85\x9B" /*61787, 0xF158*/ 220 #endif 221 222 #if !defined LV_SYMBOL_WIFI 223 #define LV_SYMBOL_WIFI "\xEF\x87\xAB" /*61931, 0xF1EB*/ 224 #endif 225 226 #if !defined LV_SYMBOL_BATTERY_FULL 227 #define LV_SYMBOL_BATTERY_FULL "\xEF\x89\x80" /*62016, 0xF240*/ 228 #endif 229 230 #if !defined LV_SYMBOL_BATTERY_3 231 #define LV_SYMBOL_BATTERY_3 "\xEF\x89\x81" /*62017, 0xF241*/ 232 #endif 233 234 #if !defined LV_SYMBOL_BATTERY_2 235 #define LV_SYMBOL_BATTERY_2 "\xEF\x89\x82" /*62018, 0xF242*/ 236 #endif 237 238 #if !defined LV_SYMBOL_BATTERY_1 239 #define LV_SYMBOL_BATTERY_1 "\xEF\x89\x83" /*62019, 0xF243*/ 240 #endif 241 242 #if !defined LV_SYMBOL_BATTERY_EMPTY 243 #define LV_SYMBOL_BATTERY_EMPTY "\xEF\x89\x84" /*62020, 0xF244*/ 244 #endif 245 246 #if !defined LV_SYMBOL_USB 247 #define LV_SYMBOL_USB "\xEF\x8a\x87" /*62087, 0xF287*/ 248 #endif 249 250 #if !defined LV_SYMBOL_BLUETOOTH 251 #define LV_SYMBOL_BLUETOOTH "\xEF\x8a\x93" /*62099, 0xF293*/ 252 #endif 253 254 #if !defined LV_SYMBOL_TRASH 255 #define LV_SYMBOL_TRASH "\xEF\x8B\xAD" /*62189, 0xF2ED*/ 256 #endif 257 258 #if !defined LV_SYMBOL_EDIT 259 #define LV_SYMBOL_EDIT "\xEF\x8C\x84" /*62212, 0xF304*/ 260 #endif 261 262 #if !defined LV_SYMBOL_BACKSPACE 263 #define LV_SYMBOL_BACKSPACE "\xEF\x95\x9A" /*62810, 0xF55A*/ 264 #endif 265 266 #if !defined LV_SYMBOL_SD_CARD 267 #define LV_SYMBOL_SD_CARD "\xEF\x9F\x82" /*63426, 0xF7C2*/ 268 #endif 269 270 #if !defined LV_SYMBOL_NEW_LINE 271 #define LV_SYMBOL_NEW_LINE "\xEF\xA2\xA2" /*63650, 0xF8A2*/ 272 #endif 273 274 #if !defined LV_SYMBOL_DUMMY 275 /** Invalid symbol at (U+F8FF). If written before a string then `lv_img` will show it as a label*/ 276 #define LV_SYMBOL_DUMMY "\xEF\xA3\xBF" 277 #endif 278 279 /* 280 * The following list is generated using 281 * cat src/font/lv_symbol_def.h | sed -E -n 's/^#define\s+LV_(SYMBOL_\w+).*".*$/ _LV_STR_\1,/p' 282 */ 283 enum { 284 _LV_STR_SYMBOL_BULLET, 285 _LV_STR_SYMBOL_AUDIO, 286 _LV_STR_SYMBOL_VIDEO, 287 _LV_STR_SYMBOL_LIST, 288 _LV_STR_SYMBOL_OK, 289 _LV_STR_SYMBOL_CLOSE, 290 _LV_STR_SYMBOL_POWER, 291 _LV_STR_SYMBOL_SETTINGS, 292 _LV_STR_SYMBOL_HOME, 293 _LV_STR_SYMBOL_DOWNLOAD, 294 _LV_STR_SYMBOL_DRIVE, 295 _LV_STR_SYMBOL_REFRESH, 296 _LV_STR_SYMBOL_MUTE, 297 _LV_STR_SYMBOL_VOLUME_MID, 298 _LV_STR_SYMBOL_VOLUME_MAX, 299 _LV_STR_SYMBOL_IMAGE, 300 _LV_STR_SYMBOL_TINT, 301 _LV_STR_SYMBOL_PREV, 302 _LV_STR_SYMBOL_PLAY, 303 _LV_STR_SYMBOL_PAUSE, 304 _LV_STR_SYMBOL_STOP, 305 _LV_STR_SYMBOL_NEXT, 306 _LV_STR_SYMBOL_EJECT, 307 _LV_STR_SYMBOL_LEFT, 308 _LV_STR_SYMBOL_RIGHT, 309 _LV_STR_SYMBOL_PLUS, 310 _LV_STR_SYMBOL_MINUS, 311 _LV_STR_SYMBOL_EYE_OPEN, 312 _LV_STR_SYMBOL_EYE_CLOSE, 313 _LV_STR_SYMBOL_WARNING, 314 _LV_STR_SYMBOL_SHUFFLE, 315 _LV_STR_SYMBOL_UP, 316 _LV_STR_SYMBOL_DOWN, 317 _LV_STR_SYMBOL_LOOP, 318 _LV_STR_SYMBOL_DIRECTORY, 319 _LV_STR_SYMBOL_UPLOAD, 320 _LV_STR_SYMBOL_CALL, 321 _LV_STR_SYMBOL_CUT, 322 _LV_STR_SYMBOL_COPY, 323 _LV_STR_SYMBOL_SAVE, 324 _LV_STR_SYMBOL_BARS, 325 _LV_STR_SYMBOL_ENVELOPE, 326 _LV_STR_SYMBOL_CHARGE, 327 _LV_STR_SYMBOL_PASTE, 328 _LV_STR_SYMBOL_BELL, 329 _LV_STR_SYMBOL_KEYBOARD, 330 _LV_STR_SYMBOL_GPS, 331 _LV_STR_SYMBOL_FILE, 332 _LV_STR_SYMBOL_WIFI, 333 _LV_STR_SYMBOL_BATTERY_FULL, 334 _LV_STR_SYMBOL_BATTERY_3, 335 _LV_STR_SYMBOL_BATTERY_2, 336 _LV_STR_SYMBOL_BATTERY_1, 337 _LV_STR_SYMBOL_BATTERY_EMPTY, 338 _LV_STR_SYMBOL_USB, 339 _LV_STR_SYMBOL_BLUETOOTH, 340 _LV_STR_SYMBOL_TRASH, 341 _LV_STR_SYMBOL_EDIT, 342 _LV_STR_SYMBOL_BACKSPACE, 343 _LV_STR_SYMBOL_SD_CARD, 344 _LV_STR_SYMBOL_NEW_LINE, 345 _LV_STR_SYMBOL_DUMMY, 346 }; 347 348 #ifdef __cplusplus 349 } /*extern "C"*/ 350 #endif 351 352 #endif /*LV_SYMBOL_DEF_H*/ 353