-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(simulator): upgrade to use lvgl's property API
Signed-off-by: Neo Xu <[email protected]>
- Loading branch information
Showing
15 changed files
with
223 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
lvgl.Object{ | ||
w = 10, | ||
h = 10, | ||
bg_color = "#c00", | ||
align = { | ||
type = lvgl.ALIGN.BOTTOM_MID, | ||
x_ofs = 10, | ||
y_ofs = -200, | ||
}, | ||
} | ||
|
||
lvgl.Object{ | ||
w = 10, | ||
h = 10, | ||
align = lvgl.ALIGN.CENTER, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local root = lvgl.Object{ | ||
bg_color = "#c00", | ||
align = { | ||
type = lvgl.ALIGN.BOTTOM_MID, | ||
x_ofs = 10, | ||
y_ofs = -200, | ||
}, | ||
} | ||
|
||
local t = { | ||
|
||
} | ||
|
||
t.x = 123 | ||
|
||
print("root.x", root.x) | ||
root.y = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
/** | ||
* GENERATED FILE, DO NOT EDIT IT! | ||
* @file lv_analog_time_properties.c | ||
*/ | ||
|
||
#include "lv_analog_time.h" | ||
|
||
#if LV_USE_OBJ_PROPERTY && LV_USE_OBJ_PROPERTY_NAME | ||
|
||
#if LV_USE_ANALOG_TIME | ||
/** | ||
* Analog_time widget property names, name must be in order. | ||
* Generated code from properties.py | ||
*/ | ||
/* *INDENT-OFF* */ | ||
const lv_property_name_t lv_analog_time_property_names[1] = { | ||
{"period", LV_PROPERTY_ANALOG_TIME_PERIOD,}, | ||
}; | ||
#endif /*LV_USE_ANALOG_TIME*/ | ||
|
||
/* *INDENT-ON* */ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
/** | ||
* @file lv_obj_property_names.h | ||
* GENERATED FILE, DO NOT EDIT IT! | ||
*/ | ||
#ifndef _LV_OBJ_PROPERTY_NAMES_H | ||
#define _LV_OBJ_PROPERTY_NAMES_H | ||
|
||
#include "lvgl.h" | ||
|
||
#if LV_USE_OBJ_PROPERTY && LV_USE_OBJ_PROPERTY_NAME | ||
|
||
extern const lv_property_name_t lv_analog_time_property_names[1]; | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.