mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-26 11:07:34 +08:00
chore(docs): fix some outdated information (#5144)
This commit is contained in:
@@ -440,9 +440,13 @@ the given layout.
|
||||
Built-in layout
|
||||
---------------
|
||||
|
||||
LVGL comes with two very powerful layouts: - Flexbox - Grid
|
||||
LVGL comes with two very powerful layouts:
|
||||
|
||||
* Flexbox: arrange objects into rows or columns, with support for wrapping and expanding items.
|
||||
* Grid: arrange objects into fixed positions in 2D table.
|
||||
|
||||
Both are heavily inspired by the CSS layouts with the same name.
|
||||
Layouts are described in detail in their own section of documentation.
|
||||
|
||||
Flags
|
||||
-----
|
||||
|
||||
@@ -78,8 +78,7 @@ types are `Base object </widgets/obj>`__ and `Image </widgets/img>`__
|
||||
(to create a wallpaper).
|
||||
|
||||
To create a screen, use
|
||||
``lv_obj_t * scr = lv_<type>_create(NULL, copy)``. ``copy`` can be an
|
||||
existing screen copied into the new screen.
|
||||
``lv_obj_t * scr = lv_<type>_create(NULL)``. `NULL` indicates no parent.
|
||||
|
||||
To load a screen, use :cpp:expr:`lv_screen_load(scr)`. To get the active screen,
|
||||
use :cpp:expr:`lv_screen_active()`. These functions work on the default display. If
|
||||
|
||||
Reference in New Issue
Block a user