aboutsummaryrefslogtreecommitdiff
path: root/scripts/style_api_gen.py
diff options
context:
space:
mode:
authorGabor Kiss-Vamosi <kisvegabor@gmail.com>2024-01-02 07:29:14 +0100
committerGitHub <noreply@github.com>2024-01-02 14:29:14 +0800
commit3664f353640dfdb198aa21c9d020d600cf549bd7 (patch)
tree6df68837f7d5dac554881c134d5c94826b2fab63 /scripts/style_api_gen.py
parenta0e75077d8c1c845bb90f919eb80888027af362f (diff)
downloadlvgl-3664f353640dfdb198aa21c9d020d600cf549bd7.tar.gz
lvgl-3664f353640dfdb198aa21c9d020d600cf549bd7.zip
feat(style): add length style property (#5135)
Diffstat (limited to 'scripts/style_api_gen.py')
-rwxr-xr-xscripts/style_api_gen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py
index 0cd4d78c6..86a519e9e 100755
--- a/scripts/style_api_gen.py
+++ b/scripts/style_api_gen.py
@@ -30,6 +30,10 @@ props = [
'style_type': 'num', 'var_type': 'int32_t' , 'default':'LV_COORD_MAX', 'inherited': 0, 'layout': 1, 'ext_draw': 0,
'dsc': "Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area."},
+{'name': 'LENGTH',
+ 'style_type': 'num', 'var_type': 'int32_t' , 'default':'0', 'inherited': 0, 'layout': 0, 'ext_draw': 1,
+ 'dsc': "Its meaning depends on the type of the widget. For example in case of lv_scale it means the length of the ticks."},
+
{'name': 'X',
'style_type': 'num', 'var_type': 'int32_t' , 'default':0, 'inherited': 0, 'layout': 1, 'ext_draw': 0,
'dsc': "Set the X coordinate of the object considering the set `align`. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area."},