摘要:
字体(Fonts) 在 LVGL 中,字体是渲染单个字母(字形)图像所需的位图和其他信息的集合,字体存储在 lv_font_t 变量中,可以在样式的 text_font 字段中设置。 例如: lv_style_set_text_font(&my_style, &lv_font_montserrat_ 阅读全文
posted @ 2024-12-20 08:56
AtlasLapetos
阅读(429)
评论(0)
推荐(0)
摘要:
色彩(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
阅读(80)
评论(0)
推荐(0)
摘要:
显示器(Displays) 重要 The basic concept of a display in LVGL is explained in the Porting section. So before reading further, please read the Porting sectio 阅读全文
posted @ 2024-12-20 08:56
AtlasLapetos
阅读(56)
评论(0)
推荐(0)
摘要:
输入设备(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
阅读(51)
评论(0)
推荐(0)
摘要:
事件(Events) 当对象被操作时,LVGL 中会触发事件,例如 当一个对象 被点击 滚动 改变值 重绘等 给对象添加事件(Add events to the object) 用户可以为对象分配回调函数以查看其事件,比如: lv_obj_t * btn = lv_btn_create(lv_scr 阅读全文
posted @ 2024-12-20 08:56
AtlasLapetos
阅读(296)
评论(0)
推荐(0)
摘要:
层(Layers) 创建顺序(Order of creation) 默认情况下,LVGL在旧对象之上绘制新对象。 例如,假设我们将一个按钮添加到名为button1的父对象,然后再添加另一个名为button2的按钮。然后button1(及其子对象)将位于背景中,并且可以被button2及其子对象覆盖。 阅读全文
posted @ 2024-12-20 08:56
AtlasLapetos
阅读(65)
评论(0)
推荐(0)
摘要:
滚动(Scroll) 概览(Overview) 在 LVGL 中,滚动的工作非常直观:如果一个对象在其父内容区域(没有填充的大小)之外,则父对象变为可滚动并且会出现滚动条。 任何对象都可以滚动,包括 lv_obj_t, lv_img, lv_btn, lv_meter, 等等。 对象可以一次水平或垂 阅读全文
posted @ 2024-12-20 08:56
AtlasLapetos
阅读(609)
评论(0)
推荐(0)
摘要:
样式属性(Style properties) 大小与位置(Size and position) Properties related to size, position, alignment and layout of the objects. 与对象的大小、位置、对齐方式和布局相关的属性。 宽度( 阅读全文
posted @ 2024-12-20 08:56
AtlasLapetos
阅读(51)
评论(0)
推荐(0)
摘要:
样式(Styles) Styles 用于设置对象的外观。 lvgl 中的样式很大程度上受到 CSS 的启发。 简而言之,其概念如下: 样式是一个 lv_style_t 变量,它可以保存边框宽度、文本颜色等属性。 它类似于 CSS 中的“类”。 可以将样式分配给对象以更改其外观。 在赋值时,可以指定目 阅读全文
posted @ 2024-12-20 08:55
AtlasLapetos
阅读(126)
评论(0)
推荐(0)
摘要:
位置、大小与布局(Positions, sizes, and layouts) 概览(Overview) 与 LVGL 的许多其他部分类似,设置坐标的概念受到 CSS 的启发。 简单来说: 坐标显式地存储在样式(大小、位置、布局等)中 支持最小宽度、最大宽度、最小高度、最大高度 有像素、百分比和“内 阅读全文
posted @ 2024-12-20 08:55
AtlasLapetos
阅读(272)
评论(0)
推荐(0)
浙公网安备 33010602011771号