2 Star 1 Fork 1

ssda/LVGLBuilder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LVGLFontData.h 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef LVGLFONTDATA_H
#define LVGLFONTDATA_H
#include <lvgl/lvgl.h>
#include <QString>
#include <QJsonObject>
class LVGLFontData
{
public:
LVGLFontData(const QString &name, const QString &codeName, uint8_t size, const lv_font_t *font);
~LVGLFontData();
static LVGLFontData *parse(const QString &fileName, uint8_t size, uint8_t bpp, uint32_t unicodeFirst, uint32_t unicodeLast);
static LVGLFontData *parse(QJsonObject object);
const lv_font_t *font() const;
QString name() const;
QString codeName() const;
bool saveAsCode(const QString &fileName) const;
bool isCustomFont() const;
QString fileName() const;
QJsonObject toJson() const;
uint8_t size() const;
private:
lv_font_t *m_font;
QString m_fileName;
QString m_name;
QString m_codeName;
uint8_t m_size;
bool m_customFont;
};
#endif // LVGLFONTDATA_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shaoshunda/LVGLBuilder.git
git@gitee.com:shaoshunda/LVGLBuilder.git
shaoshunda
LVGLBuilder
LVGLBuilder
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385