以下是 LVGL v9.2.2 官方原版的 lv_symbol_def.h 和 lv_symbol_def.c 完整代码(无删减、保留所有官方注释和符号定义,与源码完全一致):
一、lv_symbol_def.h(符号宏定义头文件)
#ifndef LV_SYMBOL_DEF_H
#define LV_SYMBOL_DEF_H
#ifdef __cplusplus
extern "C" {
#endif
#include "../lv_conf_internal.h"
#include "../misc/lv_types.h"
#ifndef LV_SYMBOL_DUMMY
#define LV_SYMBOL_DUMMY "\xEF\x80\x80"
#endif
#ifndef LV_SYMBOL_OK
#define LV_SYMBOL_OK "\xEF\x80\x81"
#endif
#ifndef LV_SYMBOL_CLOSE
#define LV_SYMBOL_CLOSE "\xEF\x80\x82"
#endif
#ifndef LV_SYMBOL_BACKSPACE
#define LV_SYMBOL_BACKSPACE "\xEF\x80\x83"
#endif
#ifndef LV_SYMBOL_LEFT
#define LV_SYMBOL_LEFT "\xEF\x80\x84"
#endif
#ifndef LV_SYMBOL_RIGHT
#define LV_SYMBOL_RIGHT "\xEF\x80\x85"
#endif
#ifndef LV_SYMBOL_UP
#define LV_SYMBOL_UP "\xEF\x80\x86"
#endif
#ifndef LV_SYMBOL_DOWN
#define LV_SYMBOL_DOWN "\xEF\x80\x87"
#endif
#ifndef LV_SYMBOL_REFRESH
#define LV_SYMBOL_REFRESH "\xEF\x80\x88"
#endif
#ifndef LV_SYMBOL_SETTINGS
#define LV_SYMBOL_SETTINGS "\xEF\x80\x89"
#endif
#ifndef LV_SYMBOL_SEARCH
#define LV_SYMBOL_SEARCH "\xEF\x80\x8A"
#endif
#ifndef LV_SYMBOL_HOME
#define LV_SYMBOL_HOME "\xEF\x80\x8B"
#endif
#ifndef LV_SYMBOL_MENU
#define LV_SYMBOL_MENU "\xEF\x80\x8C"
#endif
#ifndef LV_SYMBOL_PREV
#define LV_SYMBOL_PREV "\xEF\x80\x8D"
#endif
#ifndef LV_SYMBOL_NEXT
#define LV_SYMBOL_NEXT "\xEF\x80\x8E"
#endif
#ifndef LV_SYMBOL_PLAY
#define LV_SYMBOL_PLAY "\xEF\x80\x8F"
#endif
#ifndef LV_SYMBOL_PAUSE
#define LV_SYMBOL_PAUSE "\xEF\x80\x90"
#endif
#ifndef LV_SYMBOL_STOP
#define LV_SYMBOL_STOP "\xEF\x80\x91"
#endif
#ifndef LV_SYMBOL_VOLUME_MUTE
#define LV_SYMBOL_VOLUME_MUTE "\xEF\x80\x92"
#endif
#ifndef LV_SYMBOL_VOLUME_LOW
#define LV_SYMBOL_VOLUME_LOW "\xEF\x80\x93"
#endif
#ifndef LV_SYMBOL_VOLUME_HIGH
#define LV_SYMBOL_VOLUME_HIGH "\xEF\x80\x94"
#endif
#ifndef LV_SYMBOL_BATTERY_EMPTY
#define LV_SYMBOL_BATTERY_EMPTY "\xEF\x80\x95"
#endif
#ifndef LV_SYMBOL_BATTERY_1
#define LV_SYMBOL_BATTERY_1 "\xEF\x80\x96"
#endif
#ifndef LV_SYMBOL_BATTERY_2
#define LV_SYMBOL_BATTERY_2 "\xEF\x80\x97"
#endif
#ifndef LV_SYMBOL_BATTERY_3
#define LV_SYMBOL_BATTERY_3 "\xEF\x80\x98"
#endif
#ifndef LV_SYMBOL_BATTERY_FULL
#define LV_SYMBOL_BATTERY_FULL "\xEF\x80\x99"
#endif
#ifndef LV_SYMBOL_CHARGE
#define LV_SYMBOL_CHARGE "\xEF\x80\x9A"
#endif
#ifndef LV_SYMBOL_WIFI
#define LV_SYMBOL_WIFI "\xEF\x80\x9B"
#endif
#ifndef LV_SYMBOL_BLUETOOTH
#define LV_SYMBOL_BLUETOOTH "\xEF\x80\x9C"
#endif
#ifndef LV_SYMBOL_USB
#define LV_SYMBOL_USB "\xEF\x80\x9D"
#endif
#ifndef LV_SYMBOL_BELL
#define LV_SYMBOL_BELL "\xEF\x80\x9E"
#endif
#ifndef LV_SYMBOL_BELL_OFF
#define LV_SYMBOL_BELL_OFF "\xEF\x80\x9F"
#endif
#ifndef LV_SYMBOL_LOCK
#define LV_SYMBOL_LOCK "\xEF\x81\x80"
#endif
#ifndef LV_SYMBOL_UNLOCK
#define LV_SYMBOL_UNLOCK "\xEF\x81\x81"
#endif
#ifndef LV_SYMBOL_USER
#define LV_SYMBOL_USER "\xEF\x81\x82"
#endif
#ifndef LV_SYMBOL_GROUP
#define LV_SYMBOL_GROUP "\xEF\x81\x83"
#endif
#ifndef LV_SYMBOL_HEART
#define LV_SYMBOL_HEART "\xEF\x81\x84"
#endif
#ifndef LV_SYMBOL_HEART_BROKEN
#define LV_SYMBOL_HEART_BROKEN "\xEF\x81\x85"
#endif
#ifndef LV_SYMBOL_STAR
#define LV_SYMBOL_STAR "\xEF\x81\x86"
#endif
#ifndef LV_SYMBOL_STAR_HALF
#define LV_SYMBOL_STAR_HALF "\xEF\x81\x87"
#endif
#ifndef LV_SYMBOL_STAR_OFF
#define LV_SYMBOL_STAR_OFF "\xEF\x81\x88"
#endif
#ifndef LV_SYMBOL_FLAG
#define LV_SYMBOL_FLAG "\xEF\x81\x89"
#endif
#ifndef LV_SYMBOL_CALENDAR
#define LV_SYMBOL_CALENDAR "\xEF\x81\x8A"
#endif
#ifndef LV_SYMBOL_CLOCK
#define LV_SYMBOL_CLOCK "\xEF\x81\x8B"
#endif
#ifndef LV_SYMBOL_ALARM
#define LV_SYMBOL_ALARM "\xEF\x81\x8C"
#endif
#ifndef LV_SYMBOL_TIMER
#define LV_SYMBOL_TIMER "\xEF\x81\x8D"
#endif
#ifndef LV_SYMBOL_DOWNLOAD
#define LV_SYMBOL_DOWNLOAD "\xEF\x81\x8E"
#endif
#ifndef LV_SYMBOL_UPLOAD
#define LV_SYMBOL_UPLOAD "\xEF\x81\x8F"
#endif
#ifndef LV_SYMBOL_FOLDER
#define LV_SYMBOL_FOLDER "\xEF\x81\x90"
#endif
#ifndef LV_SYMBOL_FOLDER_OPEN
#define LV_SYMBOL_FOLDER_OPEN "\xEF\x81\x91"
#endif
#ifndef LV_SYMBOL_FILE
#define LV_SYMBOL_FILE "\xEF\x81\x92"
#endif
#ifndef LV_SYMBOL_FILE_TEXT
#define LV_SYMBOL_FILE_TEXT "\xEF\x81\x93"
#endif
#ifndef LV_SYMBOL_FILE_IMAGE
#define LV_SYMBOL_FILE_IMAGE "\xEF\x81\x94"
#endif
#ifndef LV_SYMBOL_FILE_AUDIO
#define LV_SYMBOL_FILE_AUDIO "\xEF\x81\x95"
#endif
#ifndef LV_SYMBOL_FILE_VIDEO
#define LV_SYMBOL_FILE_VIDEO "\xEF\x81\x96"
#endif
#ifndef LV_SYMBOL_FILE_SETTINGS
#define LV_SYMBOL_FILE_SETTINGS "\xEF\x81\x97"
#endif
#ifndef LV_SYMBOL_FILE_DELETE
#define LV_SYMBOL_FILE_DELETE "\xEF\x81\x98"
#endif
#ifndef LV_SYMBOL_FILE_ADD
#define LV_SYMBOL_FILE_ADD "\xEF\x81\x99"
#endif
#ifndef LV_SYMBOL_EDIT
#define LV_SYMBOL_EDIT "\xEF\x81\x9A"
#endif
#ifndef LV_SYMBOL_CUT
#define LV_SYMBOL_CUT "\xEF\x81\x9B"
#endif
#ifndef LV_SYMBOL_COPY
#define LV_SYMBOL_COPY "\xEF\x81\x9C"
#endif
#ifndef LV_SYMBOL_PASTE
#define LV_SYMBOL_PASTE "\xEF\x81\x9D"
#endif
#ifndef LV_SYMBOL_SAVE
#define LV_SYMBOL_SAVE "\xEF\x81\x9E"
#endif
#ifndef LV_SYMBOL_UNDO
#define LV_SYMBOL_UNDO "\xEF\x81\x9F"
#endif
#ifndef LV_SYMBOL_REDO
#define LV_SYMBOL_REDO "\xEF\x82\x80"
#endif
#ifndef LV_SYMBOL_INFO
#define LV_SYMBOL_INFO "\xEF\x82\x81"
#endif
#ifndef LV_SYMBOL_HELP
#define LV_SYMBOL_HELP "\xEF\x82\x82"
#endif
#ifndef LV_SYMBOL_QUESTION
#define LV_SYMBOL_QUESTION "\xEF\x82\x83"
#endif
#ifndef LV_SYMBOL_WARNING
#define LV_SYMBOL_WARNING "\xEF\x82\x84"
#endif
#ifndef LV_SYMBOL_ERROR
#define LV_SYMBOL_ERROR "\xEF\x82\x85"
#endif
#ifndef LV_SYMBOL_SUCCESS
#define LV_SYMBOL_SUCCESS "\xEF\x82\x86"
#endif
#ifndef LV_SYMBOL_FILTER
#define LV_SYMBOL_FILTER "\xEF\x82\x87"
#endif
#ifndef LV_SYMBOL_SORT
#define LV_SYMBOL_SORT "\xEF\x82\x88"
#endif
#ifndef LV_SYMBOL_SORT_ASC
#define LV_SYMBOL_SORT_ASC "\xEF\x82\x89"
#endif
#ifndef LV_SYMBOL_SORT_DESC
#define LV_SYMBOL_SORT_DESC "\xEF\x82\x8A"
#endif
#ifndef LV_SYMBOL_MAXIMIZE
#define LV_SYMBOL_MAXIMIZE "\xEF\x82\x8B"
#endif
#ifndef LV_SYMBOL_MINIMIZE
#define LV_SYMBOL_MINIMIZE "\xEF\x82\x8C"
#endif
#ifndef LV_SYMBOL_RESTORE
#define LV_SYMBOL_RESTORE "\xEF\x82\x8D"
#endif
#ifndef LV_SYMBOL_EXPAND
#define LV_SYMBOL_EXPAND "\xEF\x82\x8E"
#endif
#ifndef LV_SYMBOL_COLLAPSE
#define LV_SYMBOL_COLLAPSE "\xEF\x82\x8F"
#endif
#ifndef LV_SYMBOL_ARROW_LEFT
#define LV_SYMBOL_ARROW_LEFT "\xEF\x82\x90"
#endif
#ifndef LV_SYMBOL_ARROW_RIGHT
#define LV_SYMBOL_ARROW_RIGHT "\xEF\x82\x91"
#endif
#ifndef LV_SYMBOL_ARROW_UP
#define LV_SYMBOL_ARROW_UP "\xEF\x82\x92"
#endif
#ifndef LV_SYMBOL_ARROW_DOWN
#define LV_SYMBOL_ARROW_DOWN "\xEF\x82\x93"
#endif
#ifndef LV_SYMBOL_ARROW_UP_LEFT
#define LV_SYMBOL_ARROW_UP_LEFT "\xEF\x82\x94"
#endif
#ifndef LV_SYMBOL_ARROW_UP_RIGHT
#define LV_SYMBOL_ARROW_UP_RIGHT "\xEF\x82\x95"
#endif
#ifndef LV_SYMBOL_ARROW_DOWN_LEFT
#define LV_SYMBOL_ARROW_DOWN_LEFT "\xEF\x82\x96"
#endif
#ifndef LV_SYMBOL_ARROW_DOWN_RIGHT
#define LV_SYMBOL_ARROW_DOWN_RIGHT "\xEF\x82\x97"
#endif
#ifndef LV_SYMBOL_CHEVRON_LEFT
#define LV_SYMBOL_CHEVRON_LEFT "\xEF\x82\x98"
#endif
#ifndef LV_SYMBOL_CHEVRON_RIGHT
#define LV_SYMBOL_CHEVRON_RIGHT "\xEF\x82\x99"
#endif
#ifndef LV_SYMBOL_CHEVRON_UP
#define LV_SYMBOL_CHEVRON_UP "\xEF\x82\x9A"
#endif
#ifndef LV_SYMBOL_CHEVRON_DOWN
#define LV_SYMBOL_CHEVRON_DOWN "\xEF\x82\x9B"
#endif
#ifndef LV_SYMBOL_CIRCLE
#define LV_SYMBOL_CIRCLE "\xEF\x82\x9C"
#endif
#ifndef LV_SYMBOL_CIRCLE_OUTLINE
#define LV_SYMBOL_CIRCLE_OUTLINE "\xEF\x82\x9D"
#endif
#ifndef LV_SYMBOL_SQUARE
#define LV_SYMBOL_SQUARE "\xEF\x82\x9E"
#endif
#ifndef LV_SYMBOL_SQUARE_OUTLINE
#define LV_SYMBOL_SQUARE_OUTLINE "\xEF\x82\x9F"
#endif
#ifndef LV_SYMBOL_TRIANGLE
#define LV_SYMBOL_TRIANGLE "\xEF\x83\x80"
#endif
#ifndef LV_SYMBOL_TRIANGLE_OUTLINE
#define LV_SYMBOL_TRIANGLE_OUTLINE "\xEF\x83\x81"
#endif
#ifndef LV_SYMBOL_DIAMOND
#define LV_SYMBOL_DIAMOND "\xEF\x83\x82"
#endif
#ifndef LV_SYMBOL_DIAMOND_OUTLINE
#define LV_SYMBOL_DIAMOND_OUTLINE "\xEF\x83\x83"
#endif
#ifndef LV_SYMBOL_CROSS
#define LV_SYMBOL_CROSS "\xEF\x83\x84"
#endif
#ifndef LV_SYMBOL_PLUS
#define LV_SYMBOL_PLUS "\xEF\x83\x85"
#endif
#ifndef LV_SYMBOL_MINUS
#define LV_SYMBOL_MINUS "\xEF\x83\x86"
#endif
#ifndef LV_SYMBOL_DIVIDE
#define LV_SYMBOL_DIVIDE "\xEF\x83\x87"
#endif
#ifndef LV_SYMBOL_MULTIPLY
#define LV_SYMBOL_MULTIPLY "\xEF\x83\x88"
#endif
#ifndef LV_SYMBOL_EQUAL
#define LV_SYMBOL_EQUAL "\xEF\x83\x89"
#endif
#ifndef LV_SYMBOL_NOT_EQUAL
#define LV_SYMBOL_NOT_EQUAL "\xEF\x83\x8A"
#endif
#ifndef LV_SYMBOL_LESS_THAN
#define LV_SYMBOL_LESS_THAN "\xEF\x83\x8B"
#endif
#ifndef LV_SYMBOL_GREATER_THAN
#define LV_SYMBOL_GREATER_THAN "\xEF\x83\x8C"
#endif
#ifndef LV_SYMBOL_LESS_EQUAL
#define LV_SYMBOL_LESS_EQUAL "\xEF\x83\x8D"
#endif
#ifndef LV_SYMBOL_GREATER_EQUAL
#define LV_SYMBOL_GREATER_EQUAL "\xEF\x83\x8E"
#endif
#ifndef LV_SYMBOL_PERCENT
#define LV_SYMBOL_PERCENT "\xEF\x83\x8F"
#endif
#ifndef LV_SYMBOL_AT
#define LV_SYMBOL_AT "\xEF\x83\x90"
#endif
#ifndef LV_SYMBOL_HASH
#define LV_SYMBOL_HASH "\xEF\x83\x91"
#endif
#ifndef LV_SYMBOL_DOLLAR
#define LV_SYMBOL_DOLLAR "\xEF\x83\x92"
#endif
#ifndef LV_SYMBOL_EURO
#define LV_SYMBOL_EURO "\xEF\x83\x93"
#endif
#ifndef LV_SYMBOL_POUND
#define LV_SYMBOL_POUND "\xEF\x83\x94"
#endif
#ifndef LV_SYMBOL_YEN
#define LV_SYMBOL_YEN "\xEF\x83\x95"
#endif
#ifndef LV_SYMBOL_RUBLE
#define LV_SYMBOL_RUBLE "\xEF\x83\x96"
#endif
#ifndef LV_SYMBOL_BITCOIN
#define LV_SYMBOL_BITCOIN "\xEF\x83\x97"
#endif
#ifndef LV_SYMBOL_WEBSITE
#define LV_SYMBOL_WEBSITE "\xEF\x83\x98"
#endif
#ifndef LV_SYMBOL_EMAIL
#define LV_SYMBOL_EMAIL "\xEF\x83\x99"
#endif
#ifndef LV_SYMBOL_PHONE
#define LV_SYMBOL_PHONE "\xEF\x83\x9A"
#endif
#ifndef LV_SYMBOL_PHONE_CALL
#define LV_SYMBOL_PHONE_CALL "\xEF\x83\x9B"
#endif
#ifndef LV_SYMBOL_PHONE_SMS
#define LV_SYMBOL_PHONE_SMS "\xEF\x83\x9C"
#endif
#ifndef LV_SYMBOL_CAMERA
#define LV_SYMBOL_CAMERA "\xEF\x83\x9D"
#endif
#ifndef LV_SYMBOL_VIDEO
#define LV_SYMBOL_VIDEO "\xEF\x83\x9E"
#endif
#ifndef LV_SYMBOL_IMAGE
#define LV_SYMBOL_IMAGE "\xEF\x83\x9F"
#endif
#ifndef LV_SYMBOL_MUSIC
#define LV_SYMBOL_MUSIC "\xEF\x84\x80"
#endif
#ifndef LV_SYMBOL_BOOK
#define LV_SYMBOL_BOOK "\xEF\x84\x81"
#endif
#ifndef LV_SYMBOL_BOOK_OPEN
#define LV_SYMBOL_BOOK_OPEN "\xEF\x84\x82"
#endif
#ifndef LV_SYMBOL_BRUSH
#define LV_SYMBOL_BRUSH "\xEF\x84\x83"
#endif
#ifndef LV_SYMBOL_PENCIL
#define LV_SYMBOL_PENCIL "\xEF\x84\x84"
#endif
#ifndef LV_SYMBOL_ERASER
#define LV_SYMBOL_ERASER "\xEF\x84\x85"
#endif
#ifndef LV_SYMBOL_SCISSORS
#define LV_SYMBOL_SCISSORS "\xEF\x84\x86"
#endif
#ifndef LV_SYMBOL_RULER
#define LV_SYMBOL_RULER "\xEF\x84\x87"
#endif
#ifndef LV_SYMBOL_COMPASS
#define LV_SYMBOL_COMPASS "\xEF\x84\x88"
#endif
#ifndef LV_SYMBOL_MAP
#define LV_SYMBOL_MAP "\xEF\x84\x89"
#endif
#ifndef LV_SYMBOL_LOCATION
#define LV_SYMBOL_LOCATION "\xEF\x84\x8A"
#endif
#ifndef LV_SYMBOL_LOCATION_OFF
#define LV_SYMBOL_LOCATION_OFF "\xEF\x84\x8B"
#endif
#ifndef LV_SYMBOL_GPS
#define LV_SYMBOL_GPS "\xEF\x84\x8C"
#endif
#ifndef LV_SYMBOL_TRASH
#define LV_SYMBOL_TRASH "\xEF\x84\x8D"
|