mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 00:51:49 +08:00
minor fixes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_FLEX
|
||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* A simple row and a column layout with flexbox
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_FLEX
|
||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Arrange items in rows with wrap and place the items to get even space around them.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_FLEX
|
||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Use a built in flex layout and demonstrate flex grow.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_FLEX
|
||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Reverse the order of flex items
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_FLEX
|
||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
static void row_gap_anim(lv_obj_t * obj, lv_anim_value_t v)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_FLEX
|
||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* RTL base direction changes order of the items.
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_GRID
|
||||
|
||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* A simple grid
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_GRID
|
||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_GRID
|
||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Demonstrate grid's "free unit"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_GRID
|
||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Demonstrate track placement
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_GRID
|
||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||
|
||||
static void row_gap_anim(lv_obj_t * obj, lv_anim_value_t v)
|
||||
{
|
||||
@@ -12,7 +11,7 @@ static void column_gap_anim(lv_obj_t * obj, lv_anim_value_t v)
|
||||
lv_obj_set_style_pad_column(obj, LV_PART_MAIN, LV_STATE_DEFAULT, v);
|
||||
}
|
||||
/**
|
||||
* Demonstrate margin in grid
|
||||
* Demonstrate column and row gap
|
||||
*/
|
||||
void lv_example_grid_5(void)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
#if LV_USE_GRID
|
||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Demonstrate RTL direction on grid
|
||||
|
||||
Reference in New Issue
Block a user