Drawing
摘要:Drawing With LVGL, you don’t need to draw anything manually. Just create objects (like buttons, labels, arc, etc.), move and change them, and LVGL wil
阅读全文
posted @
2024-12-20 08:57
AtlasLapetos
阅读(33)
推荐(0) 编辑
定时器(Timers)
摘要:定时器(Timers) LVGL has a built-in timer system. You can register a function to have it be called periodically. The timers are handled and called in lv_t
阅读全文
posted @
2024-12-20 08:57
AtlasLapetos
阅读(39)
推荐(0) 编辑
动画(Animations)
摘要:动画(Animations) You can automatically change the value of a variable between a start and an end value using animations. Animation will happen by period
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(45)
推荐(0) 编辑
文件系统(File system)
摘要:文件系统(File system) LVGL has a ‘File system’ abstraction module that enables you to attach any type of file system. A file system is identified by an as
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(25)
推荐(0) 编辑
图像(Images)
摘要:图像(Images) 图像在系统中是存储位图数据和元数据的文件或变量 储存图像(Store images) 图像可以存储在两个地方 内部存储器(RAM 或 ROM)中的变量里 文件 变量(Variables) 存储在变量中的图像主要由具有以下字段的 lv_img_dsc_t 结构体组成: heade
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(30)
推荐(0) 编辑
字体(Fonts)
摘要:字体(Fonts) 在 LVGL 中,字体是渲染单个字母(字形)图像所需的位图和其他信息的集合,字体存储在 lv_font_t 变量中,可以在样式的 text_font 字段中设置。 例如: lv_style_set_text_font(&my_style, &lv_font_montserrat_
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(103)
推荐(0) 编辑
色彩(Colors)
摘要:色彩(Colors) The color module handles all color-related functions like changing color depth, creating colors from hex code, converting between color dep
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(31)
推荐(0) 编辑
输入设备(Input devices)
摘要:输入设备(Input devices) An input device usually means: Pointer-like input device like touchpad or mouse Keypads like a normal keyboard or simple numeric k
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(23)
推荐(0) 编辑
事件(Events)
摘要:事件(Events) 当对象被操作时,LVGL 中会触发事件,例如 当一个对象 被点击 滚动 改变值 重绘等 给对象添加事件(Add events to the object) 用户可以为对象分配回调函数以查看其事件,比如: lv_obj_t * btn = lv_btn_create(lv_scr
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(116)
推荐(0) 编辑
层(Layers)
摘要:层(Layers) 创建顺序(Order of creation) 默认情况下,LVGL在旧对象之上绘制新对象。 例如,假设我们将一个按钮添加到名为button1的父对象,然后再添加另一个名为button2的按钮。然后button1(及其子对象)将位于背景中,并且可以被button2及其子对象覆盖。
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(8)
推荐(0) 编辑
滚动(Scroll)
摘要:滚动(Scroll) 概览(Overview) 在 LVGL 中,滚动的工作非常直观:如果一个对象在其父内容区域(没有填充的大小)之外,则父对象变为可滚动并且会出现滚动条。 任何对象都可以滚动,包括 lv_obj_t, lv_img, lv_btn, lv_meter, 等等。 对象可以一次水平或垂
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(206)
推荐(0) 编辑
样式属性(Style properties)
摘要:样式属性(Style properties) 大小与位置(Size and position) Properties related to size, position, alignment and layout of the objects. 与对象的大小、位置、对齐方式和布局相关的属性。 宽度(
阅读全文
posted @
2024-12-20 08:56
AtlasLapetos
阅读(20)
推荐(0) 编辑
样式(Styles)
摘要:样式(Styles) Styles 用于设置对象的外观。 lvgl 中的样式很大程度上受到 CSS 的启发。 简而言之,其概念如下: 样式是一个 lv_style_t 变量,它可以保存边框宽度、文本颜色等属性。 它类似于 CSS 中的“类”。 可以将样式分配给对象以更改其外观。 在赋值时,可以指定目
阅读全文
posted @
2024-12-20 08:55
AtlasLapetos
阅读(22)
推荐(0) 编辑
位置、大小与布局(Positions, sizes, and layouts)
摘要:位置、大小与布局(Positions, sizes, and layouts) 概览(Overview) 与 LVGL 的许多其他部分类似,设置坐标的概念受到 CSS 的启发。 简单来说: 坐标显式地存储在样式(大小、位置、布局等)中 支持最小宽度、最大宽度、最小高度、最大高度 有像素、百分比和“内
阅读全文
posted @
2024-12-20 08:55
AtlasLapetos
阅读(58)
推荐(0) 编辑
对象(Objects)
摘要:对象(Objects) 在LVGL中,用户界面构建的基本单元 就是对象, 或者叫做 部件(Widgets)。 例如按钮 Button, 标签 Label, 图片 Image, 列表 List, 图标 Chart 或者 文本区域 Text area。 你可以在 对象类型 Object types 中查
阅读全文
posted @
2024-12-20 08:55
AtlasLapetos
阅读(81)
推荐(0) 编辑