diff options
author | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2023-10-20 20:40:57 +0200 |
---|---|---|
committer | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2023-10-20 23:29:22 +0200 |
commit | 85798af3cdb08ebb5c1332b9b307703d8e97a545 (patch) | |
tree | b73b525a84fffc9d3903fa6a63d29776531f56b8 /scripts/style_api_gen.py | |
parent | 8f57f12a4417ed3dc0e9519b012544e008959833 (diff) | |
download | lvgl-85798af3cdb08ebb5c1332b9b307703d8e97a545.tar.gz lvgl-85798af3cdb08ebb5c1332b9b307703d8e97a545.zip |
feat(draw): add non uniform scale (scale_x and scale_y)
Diffstat (limited to 'scripts/style_api_gen.py')
-rwxr-xr-x | scripts/style_api_gen.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py index ea689a55d..017056321 100755 --- a/scripts/style_api_gen.py +++ b/scripts/style_api_gen.py @@ -58,9 +58,13 @@ props = [ 'style_type': 'num', 'var_type': 'lv_coord_t', 'default':0, 'inherited': 0, 'layout': 1, 'ext_draw': 0, 'dsc': "Move the object with this value in Y direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with `lv_pct(x)`) values can be used. Percentage values are relative to the object's height." }, -{'name': 'TRANSFORM_SCALE', +{'name': 'TRANSFORM_SCALE_X', 'style_type': 'num', 'var_type': 'lv_coord_t', 'default':0, 'inherited': 0, 'layout': 1, 'ext_draw': 1, - 'dsc': "Zoom an objects. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on" }, + 'dsc': "Zoom an objects horizontally. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on" }, + +{'name': 'TRANSFORM_SCALE_Y', + 'style_type': 'num', 'var_type': 'lv_coord_t', 'default':0, 'inherited': 0, 'layout': 1, 'ext_draw': 1, + 'dsc': "Zoom an objects vertically. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on" }, {'name': 'TRANSFORM_ROTATION', 'style_type': 'num', 'var_type': 'lv_coord_t', 'default':0, 'inherited': 0, 'layout': 1, 'ext_draw': 1, |