2021-02-05 16:52:51 +01:00
#!/usr/bin/env python3
2022-03-07 10:01:25 -05:00
import os
import re
import sys
2021-02-19 09:58:58 -05:00
2020-12-19 06:51:14 +01:00
props = [
2024-10-23 12:53:33 -06:00
{ ' section ' : ' Size and position ' , ' dsc ' : ' Properties related to size, position, alignment and layout of Widgets. ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' Widget dependent ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Sets width of Widget. Pixel, percentage and `LV_SIZE_CONTENT` values can be used. Percentage values are relative to the width of the parent ' s content area. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' MIN_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-19 20:55:44 +02:00
' dsc ' : " Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent ' s content area. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' MAX_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' LV_COORD_MAX ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-19 20:55:44 +02:00
' dsc ' : " Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent ' s content area. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' HEIGHT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' Widget dependent ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Sets height of Widget. Pixel, percentage and `LV_SIZE_CONTENT` can be used. Percentage values are relative to the height of the parent ' s content area. " } ,
2021-05-19 20:55:44 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' MIN_HEIGHT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-19 20:55:44 +02:00
' dsc ' : " Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent ' s content area. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' MAX_HEIGHT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' LV_COORD_MAX ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-19 20:55:44 +02:00
' 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. " } ,
2024-01-02 07:29:14 +01:00
{ ' name ' : ' LENGTH ' ,
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' 0 ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Its meaning depends on the type of Widget. For example in case of lv_scale it means the length of the ticks. " } ,
2024-01-02 07:29:14 +01:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' X ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set X coordinate of Widget considering the ``align`` setting. Pixel and percentage values can be used. Percentage values are relative to the width of the parent ' s content area. " } ,
2021-05-19 20:55:44 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' Y ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set Y coordinate of Widget considering the ``align`` setting. Pixel and percentage values can be used. Percentage values are relative to the height of the parent ' s content area. " } ,
2021-05-19 20:55:44 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' ALIGN ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_align_t ' , ' default ' : ' `LV_ALIGN_DEFAULT` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. Possible values are: `LV_ALIGN_DEFAULT`, `LV_ALIGN_TOP_LEFT/MID/RIGHT`, `LV_ALIGN_BOTTOM_LEFT/MID/RIGHT`, `LV_ALIGN_LEFT/RIGHT_MID`, `LV_ALIGN_CENTER`. `LV_ALIGN_DEFAULT` means `LV_ALIGN_TOP_LEFT` with LTR base direction and `LV_ALIGN_TOP_RIGHT` with RTL base direction. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TRANSFORM_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Make Widget wider on both sides with this value. Pixel and percentage (with `lv_pct(x)`) values can be used. Percentage values are relative to Widget ' s width. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TRANSFORM_HEIGHT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Make Widget higher on both sides with this value. Pixel and percentage (with `lv_pct(x)`) values can be used. Percentage values are relative to Widget ' s height. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TRANSLATE_X ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Move Widget with this value in X direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with `lv_pct(x)`) values can be used. Percentage values are relative to Widget ' s width. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TRANSLATE_Y ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Move Widget 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 Widget ' s height. " } ,
2021-04-23 10:35:36 +02:00
2024-10-23 07:28:25 +01:00
{ ' name ' : ' TRANSLATE_RADIAL ' ,
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Move object around the centre of the parent object (e.g. around the circumference of a scale) " } ,
2024-10-23 07:28:25 +01:00
2023-10-20 20:40:57 +02:00
{ ' name ' : ' TRANSFORM_SCALE_X ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Zoom Widget horizontally. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on " } ,
2023-10-20 20:40:57 +02:00
{ ' name ' : ' TRANSFORM_SCALE_Y ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Zoom Widget vertically. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on " } ,
2021-04-23 10:35:36 +02:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' TRANSFORM_ROTATION ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Rotate Widget. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. " } ,
2022-04-26 10:45:12 +02:00
{ ' name ' : ' TRANSFORM_PIVOT_X ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set pivot point ' s X coordinate for transformations. Relative to Widget ' s top left corner ' " } ,
2022-04-26 10:45:12 +02:00
{ ' name ' : ' TRANSFORM_PIVOT_Y ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set pivot point ' s Y coordinate for transformations. Relative to Widget ' s top left corner ' " } ,
2021-04-23 10:35:36 +02:00
2023-12-12 16:18:01 +08:00
{ ' name ' : ' TRANSFORM_SKEW_X ' ,
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Skew Widget horizontally. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. " } ,
2023-12-12 16:18:01 +08:00
{ ' name ' : ' TRANSFORM_SKEW_Y ' ,
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Skew Widget vertically. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. " } ,
2023-12-12 16:18:01 +08:00
2022-01-19 15:30:10 +01:00
{ ' section ' : ' Padding ' , ' dsc ' : " Properties to describe spacing between the parent ' s sides and the children and among the children. Very similar to the padding properties in HTML. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' PAD_TOP ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-14 15:37:35 +02:00
' dsc ' : " Sets the padding on the top. It makes the content area smaller in this direction. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' PAD_BOTTOM ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-14 15:37:35 +02:00
' dsc ' : " Sets the padding on the bottom. It makes the content area smaller in this direction. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' PAD_LEFT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-14 15:37:35 +02:00
' dsc ' : " Sets the padding on the left. It makes the content area smaller in this direction. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' PAD_RIGHT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-05-14 15:37:35 +02:00
' dsc ' : " Sets the padding on the right. It makes the content area smaller in this direction. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' PAD_ROW ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-04-23 10:35:36 +02:00
' dsc ' : " Sets the padding between the rows. Used by the layouts. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' PAD_COLUMN ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2021-04-23 10:35:36 +02:00
' dsc ' : " Sets the padding between the columns. Used by the layouts. " } ,
2024-10-23 07:28:25 +01:00
{ ' name ' : ' PAD_RADIAL ' ,
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-29 00:53:26 -06:00
' dsc ' : " Pad text labels away from the scale ticks/remainder of the ``LV_PART_`` " } ,
2024-10-23 07:28:25 +01:00
2024-10-23 12:53:33 -06:00
{ ' section ' : ' Margin ' , ' dsc ' : " Properties to describe spacing around a Widget. Very similar to the margin properties in HTML. " } ,
2023-01-18 16:52:30 +08:00
{ ' name ' : ' MARGIN_TOP ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-11-21 03:36:51 -07:00
' dsc ' : " Sets margin on the top. Widget will keep this space from its siblings in layouts. " } ,
2023-01-18 16:52:30 +08:00
{ ' name ' : ' MARGIN_BOTTOM ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Sets margin on the bottom. Widget will keep this space from its siblings in layouts. " } ,
2023-01-18 16:52:30 +08:00
{ ' name ' : ' MARGIN_LEFT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Sets margin on the left. Widget will keep this space from its siblings in layouts. " } ,
2023-01-18 16:52:30 +08:00
{ ' name ' : ' MARGIN_RIGHT ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Sets margin on the right. Widget will keep this space from its siblings in layouts. " } ,
2023-01-18 16:52:30 +08:00
2024-10-23 12:53:33 -06:00
{ ' section ' : ' Background ' , ' dsc ' : ' Properties to describe the background color and image of Widget. ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BG_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0xffffff` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set background color of Widget. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BG_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_TRANSP` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of the background. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BG_GRAD_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set gradient color of the background. Used only if `grad_dir` is not `LV_GRAD_DIR_NONE` " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BG_GRAD_DIR ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_grad_dir_t ' , ' default ' : ' `LV_GRAD_DIR_NONE` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set direction of the gradient of the background. Possible values are `LV_GRAD_DIR_NONE/HOR/VER`. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BG_MAIN_STOP ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set point from which background color should start for gradients. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BG_GRAD_STOP ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 255 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set point from which background ' s gradient color should start. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on " } ,
2021-04-23 10:35:36 +02:00
2023-10-25 13:38:37 +02:00
{ ' name ' : ' BG_MAIN_OPA ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : 255 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of the first gradient color " } ,
2023-10-25 13:38:37 +02:00
{ ' name ' : ' BG_GRAD_OPA ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : 255 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of the second gradient color " } ,
2023-10-25 13:38:37 +02:00
2022-01-24 15:47:47 +01:00
{ ' name ' : ' BG_GRAD ' ,
' style_type ' : ' ptr ' , ' var_type ' : ' const lv_grad_dsc_t * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set gradient definition. The pointed instance must exist while Widget is alive. NULL to disable. It wraps `BG_GRAD_COLOR`, `BG_GRAD_DIR`, `BG_MAIN_STOP` and `BG_GRAD_STOP` into one descriptor and allows creating gradients with more colors as well. If it ' s set other gradient related properties will be ignored ' " } ,
2022-01-11 12:38:30 +01:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' BG_IMAGE_SRC ' ,
2021-11-22 03:53:16 -06:00
' style_type ' : ' ptr ' , ' var_type ' : ' const void * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2023-09-14 20:12:31 +02:00
' dsc ' : " Set a background image. Can be a pointer to `lv_image_dsc_t`, a path to a file or an `LV_SYMBOL_...` " } ,
2021-04-23 10:35:36 +02:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' BG_IMAGE_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of the background image. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-04-23 10:35:36 +02:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' BG_IMAGE_RECOLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2021-04-23 10:35:36 +02:00
' dsc ' : " Set a color to mix to the background image. " } ,
2023-09-18 22:57:30 +02:00
{ ' name ' : ' BG_IMAGE_RECOLOR_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_TRANSP` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set intensity of background image recoloring. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means no mixing, 255, `LV_OPA_100` or `LV_OPA_COVER` means full recoloring, other values or LV_OPA_10, LV_OPA_20, etc are interpreted proportionally. " } ,
2021-04-23 10:35:36 +02:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' BG_IMAGE_TILED ' ,
2021-04-23 10:35:36 +02:00
' style_type ' : ' num ' , ' var_type ' : ' bool ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " If enabled the background image will be tiled. Possible values are `true` or `false`. " } ,
2021-04-23 10:35:36 +02:00
2021-08-12 14:26:21 +02:00
{ ' section ' : ' Border ' , ' dsc ' : ' Properties to describe the borders ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BORDER_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set color of the border " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BORDER_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of the border. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BORDER_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set width of the border. Only pixel values can be used. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BORDER_SIDE ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_border_side_t ' , ' default ' : ' `LV_BORDER_SIDE_NONE` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set only which side(s) the border should be drawn. Possible values are `LV_BORDER_SIDE_NONE/TOP/BOTTOM/LEFT/RIGHT/INTERNAL`. OR-ed values can be used as well, e.g. `LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_LEFT`. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BORDER_POST ' ,
2021-04-23 10:35:36 +02:00
' style_type ' : ' num ' , ' var_type ' : ' bool ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2022-01-17 14:10:23 +01:00
' dsc ' : " Sets whether the border should be drawn before or after the children are drawn. `true`: after children, `false`: before children " } ,
2021-04-23 10:35:36 +02:00
2021-08-12 14:26:21 +02:00
{ ' section ' : ' Outline ' , ' dsc ' : ' Properties to describe the outline. It \' s like a border but drawn outside of the rectangles. ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' OUTLINE_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-12-08 15:13:21 -07:00
' dsc ' : " Set width of outline in pixels. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' OUTLINE_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set color of outline. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' OUTLINE_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of outline. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' OUTLINE_PAD ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set padding of outline, i.e. the gap between Widget and the outline. " } ,
2021-04-23 10:35:36 +02:00
2021-08-12 14:26:21 +02:00
{ ' section ' : ' Shadow ' , ' dsc ' : ' Properties to describe the shadow drawn under the rectangles. ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' SHADOW_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set width of the shadow in pixels. The value should be >= 0. " } ,
2021-04-23 10:35:36 +02:00
2023-10-31 19:10:02 +01:00
{ ' name ' : ' SHADOW_OFFSET_X ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set an offset on the shadow in pixels in X direction. " } ,
2021-04-23 10:35:36 +02:00
2023-10-31 19:10:02 +01:00
{ ' name ' : ' SHADOW_OFFSET_Y ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set an offset on the shadow in pixels in Y direction. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' SHADOW_SPREAD ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Make shadow calculation to use a larger or smaller rectangle as base. The value can be in pixels to make the area larger/smaller " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' SHADOW_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set color of shadow " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' SHADOW_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of shadow. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' section ' : ' Image ' , ' dsc ' : ' Properties to describe the images ' } ,
2023-09-18 22:57:30 +02:00
{ ' name ' : ' IMAGE_OPA ' ,
2021-11-22 03:53:16 -06:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of an image. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-11-22 03:53:16 -06:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' IMAGE_RECOLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set color to mix with the image. " } ,
2021-11-22 03:53:16 -06:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' IMAGE_RECOLOR_OPA ' ,
2021-11-22 03:53:16 -06:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set intensity of color mixing. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-11-22 03:53:16 -06:00
2024-10-23 12:53:33 -06:00
{ ' section ' : ' Line ' , ' dsc ' : ' Properties to describe line-like Widgets ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LINE_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set width of lines in pixels. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LINE_DASH_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set width of dashes in pixels. Note that dash works only on horizontal and vertical lines " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LINE_DASH_GAP ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set gap between dashes in pixels. Note that dash works only on horizontal and vertical lines " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LINE_ROUNDED ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' bool ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-12-08 15:13:21 -07:00
' dsc ' : " Make end points of the lines rounded. `true`: rounded, `false`: perpendicular line ending " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LINE_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set color of lines. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LINE_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of lines. " } ,
2021-04-23 10:35:36 +02:00
2021-05-14 15:37:35 +02:00
{ ' section ' : ' Arc ' , ' dsc ' : ' TODO ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' ARC_WIDTH ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set width (thickness) of arcs in pixels. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' ARC_ROUNDED ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' bool ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-12-08 15:13:21 -07:00
' dsc ' : " Make end points of arcs rounded. `true`: rounded, `false`: perpendicular line ending " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' ARC_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set color of arc. " } ,
2021-04-23 10:35:36 +02:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' ARC_OPA ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of arcs. " } ,
2021-04-23 10:35:36 +02:00
2023-09-18 22:57:30 +02:00
{ ' name ' : ' ARC_IMAGE_SRC ' ,
2021-08-12 14:26:21 +02:00
' style_type ' : ' ptr ' , ' var_type ' : ' const void * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set an image from which arc will be masked out. It ' s useful to display complex effects on the arcs. Can be a pointer to `lv_image_dsc_t` or a path to a file " } ,
2021-11-22 03:53:16 -06:00
2022-01-17 14:10:23 +01:00
{ ' section ' : ' Text ' , ' dsc ' : ' Properties to describe the properties of text. All these properties are inherited. ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_COLOR ' ,
2022-03-07 10:01:25 -05:00
' style_type ' : ' color ' , ' var_type ' : ' lv_color_t ' , ' default ' : ' `0x000000` ' , ' inherited ' : 1 , ' layout ' : 0 , ' ext_draw ' : 0 , ' filtered ' : 1 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Sets color of text. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_OPA ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 1 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set opacity of text. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_FONT ' ,
' style_type ' : ' ptr ' , ' var_type ' : ' const lv_font_t * ' , ' default ' : ' `LV_FONT_DEFAULT` ' , ' inherited ' : 1 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-12-08 15:13:21 -07:00
' dsc ' : " Set font of text (a pointer `lv_font_t *`). " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_LETTER_SPACE ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 1 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set letter space in pixels " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_LINE_SPACE ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 1 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set line space in pixels. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_DECOR ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_text_decor_t ' , ' default ' : ' `LV_TEXT_DECOR_NONE` ' , ' inherited ' : 1 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set decoration for the text. Possible values are `LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH`. OR-ed values can be used as well. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TEXT_ALIGN ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_text_align_t ' , ' default ' : ' `LV_TEXT_ALIGN_AUTO` ' , ' inherited ' : 1 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set how to align the lines of the text. Note that it doesn ' t align the Widget itself, only the lines inside the Widget. Possible values are `LV_TEXT_ALIGN_LEFT/CENTER/RIGHT/AUTO`. `LV_TEXT_ALIGN_AUTO` detect the text base direction and uses left or right alignment accordingly " } ,
2021-11-22 03:53:16 -06:00
2022-01-17 14:10:23 +01:00
{ ' section ' : ' Miscellaneous ' , ' dsc ' : ' Mixed properties for various purposes. ' } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' RADIUS ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set radius on every corner. The value is interpreted in pixels (>= 0) or `LV_RADIUS_CIRCLE` for max. radius " } ,
2021-11-22 03:53:16 -06:00
2024-10-23 07:28:25 +01:00
{ ' name ' : ' RADIAL_OFFSET ' ,
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Move start point of object (e.g. scale tick) radially " } ,
2024-10-23 07:28:25 +01:00
2021-11-22 03:53:16 -06:00
{ ' name ' : ' CLIP_CORNER ' ,
' style_type ' : ' num ' , ' var_type ' : ' bool ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
' dsc ' : " Enable to clip the overflowed content on the rounded corner. Can be `true` or `false`. " } ,
{ ' name ' : ' OPA ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 1 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Scale down all opacity values of the Widget by this factor. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2023-08-14 13:57:19 +08:00
{ ' name ' : ' OPA_LAYERED ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_COVER` ' , ' inherited ' : 1 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " First draw Widget on the layer, then scale down layer opacity factor. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 255, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' COLOR_FILTER_DSC ' ,
' style_type ' : ' ptr ' , ' var_type ' : ' const lv_color_filter_dsc_t * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Mix a color with all colors of the Widget. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' COLOR_FILTER_OPA ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_opa_t ' , ' default ' : ' `LV_OPA_TRANSP` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
' dsc ' : " The intensity of mixing of color filter. " } ,
2022-02-25 11:54:27 +01:00
{ ' name ' : ' ANIM ' ,
' style_type ' : ' ptr ' , ' var_type ' : ' const lv_anim_t * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-12-08 15:13:21 -07:00
' dsc ' : " Animation template for Widget ' s animation. Should be a pointer to `lv_anim_t`. The animation parameters are widget specific, e.g. animation time could be the E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets ' documentation to learn more. " } ,
2022-02-25 11:54:27 +01:00
2024-01-15 17:59:18 +01:00
{ ' name ' : ' ANIM_DURATION ' ,
2021-11-22 03:53:16 -06:00
' style_type ' : ' num ' , ' var_type ' : ' uint32_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-12-08 15:13:21 -07:00
' dsc ' : " Animation duration in milliseconds. Its meaning is widget specific. E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets ' documentation to learn more. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' TRANSITION ' ,
' style_type ' : ' ptr ' , ' var_type ' : ' const lv_style_transition_dsc_t * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " An initialized ``lv_style_transition_dsc_t`` to describe a transition. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BLEND_MODE ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_blend_mode_t ' , ' default ' : ' `LV_BLEND_MODE_NORMAL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Describes how to blend the colors to the background. Possible values are `LV_BLEND_MODE_NORMAL/ADDITIVE/SUBTRACTIVE/MULTIPLY` " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' LAYOUT ' ,
' style_type ' : ' num ' , ' var_type ' : ' uint16_t ' , ' default ' : 0 , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set layout of Widget. Children will be repositioned and resized according to policies set for the layout. For possible values see documentation of the layouts. " } ,
2021-11-22 03:53:16 -06:00
{ ' name ' : ' BASE_DIR ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_base_dir_t ' , ' default ' : ' `LV_BASE_DIR_AUTO` ' , ' inherited ' : 1 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set base direction of Widget. Possible values are `LV_BIDI_DIR_LTR/RTL/AUTO`. " } ,
2023-08-19 01:42:37 +02:00
2024-02-10 20:57:46 +01:00
{ ' name ' : ' BITMAP_MASK_SRC ' ,
2024-03-26 10:28:09 +01:00
' style_type ' : ' ptr ' , ' var_type ' : ' const void * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " If set, a layer will be created for the widget and the layer will be masked with this A8 bitmap mask. " } ,
2023-08-19 01:42:37 +02:00
2024-03-19 03:10:28 +01:00
{ ' name ' : ' ROTARY_SENSITIVITY ' ,
' style_type ' : ' num ' , ' var_type ' : ' uint32_t ' , ' default ' : ' `256` ' , ' inherited ' : 1 , ' layout ' : 0 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Adjust sensitivity for rotary encoders in 1/256 unit. It means, 128: slow down the rotary to half, 512: speeds up to double, 256: no change " } ,
2024-03-19 03:10:28 +01:00
2024-01-12 03:41:14 +01:00
{ ' section ' : ' Flex ' , ' dsc ' : ' Flex layout properties. ' , ' guard ' : ' LV_USE_FLEX ' } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' FLEX_FLOW ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_flex_flow_t ' , ' default ' : ' `LV_FLEX_FLOW_NONE` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
' dsc ' : " Defines in which direct the flex layout should arrange the children " } ,
{ ' name ' : ' FLEX_MAIN_PLACE ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_flex_align_t ' , ' default ' : ' `LV_FLEX_ALIGN_NONE` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
' dsc ' : " Defines how to align the children in the direction of flex flow " } ,
{ ' name ' : ' FLEX_CROSS_PLACE ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_flex_align_t ' , ' default ' : ' `LV_FLEX_ALIGN_NONE` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
' dsc ' : " Defines how to align the children perpendicular to the direction of flex flow " } ,
{ ' name ' : ' FLEX_TRACK_PLACE ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_flex_align_t ' , ' default ' : ' `LV_FLEX_ALIGN_NONE` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
' dsc ' : " Defines how to align the tracks of the flow " } ,
{ ' name ' : ' FLEX_GROW ' ,
' style_type ' : ' num ' , ' var_type ' : ' uint8_t ' , ' default ' : ' `LV_FLEX_ALIGN_ROW` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Defines how much space to take proportionally from the free space of the Widget ' s track " } ,
2023-08-19 01:42:37 +02:00
2024-01-12 03:41:14 +01:00
{ ' section ' : ' Grid ' , ' dsc ' : ' Grid layout properties. ' , ' guard ' : ' LV_USE_GRID ' } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_COLUMN_DSC_ARRAY ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' ptr ' , ' var_type ' : ' const int32_t * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2023-08-19 01:42:37 +02:00
' dsc ' : " An array to describe the columns of the grid. Should be LV_GRID_TEMPLATE_LAST terminated " } ,
{ ' name ' : ' GRID_COLUMN_ALIGN ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_grid_align_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2023-08-21 03:03:24 +08:00
' dsc ' : " Defines how to distribute the columns " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_ROW_DSC_ARRAY ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' ptr ' , ' var_type ' : ' const int32_t * ' , ' default ' : ' `NULL` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2023-08-19 01:42:37 +02:00
' dsc ' : " An array to describe the rows of the grid. Should be LV_GRID_TEMPLATE_LAST terminated " } ,
{ ' name ' : ' GRID_ROW_ALIGN ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_grid_align_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2023-08-21 03:03:24 +08:00
' dsc ' : " Defines how to distribute the rows. " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_CELL_COLUMN_POS ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set column in which Widget should be placed. " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_CELL_X_ALIGN ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_grid_align_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set how to align Widget horizontally. " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_CELL_COLUMN_SPAN ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set how many columns Widget should span. Needs to be >= 1. " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_CELL_ROW_POS ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set row in which Widget should be placed. " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_CELL_Y_ALIGN ' ,
' style_type ' : ' num ' , ' var_type ' : ' lv_grid_align_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set how to align Widget vertically. " } ,
2023-08-19 01:42:37 +02:00
{ ' name ' : ' GRID_CELL_ROW_SPAN ' ,
2023-10-31 19:25:01 +01:00
' style_type ' : ' num ' , ' var_type ' : ' int32_t ' , ' default ' : ' `LV_GRID_ALIGN_START` ' , ' inherited ' : 0 , ' layout ' : 1 , ' ext_draw ' : 0 ,
2024-10-23 12:53:33 -06:00
' dsc ' : " Set how many rows Widget should span. Needs to be >= 1. " } ,
2020-12-19 06:51:14 +01:00
]
2021-11-22 03:53:16 -06:00
2021-03-31 12:31:56 -05:00
def style_get_cast ( style_type , var_type ) :
cast = " "
if style_type != ' color ' :
cast = " ( " + var_type + " ) "
return cast
2021-11-22 03:53:16 -06:00
2021-02-23 07:01:46 -08:00
def obj_style_get ( p ) :
2021-05-14 15:37:35 +02:00
if ' section ' in p : return
2021-11-22 03:53:16 -06:00
2021-03-31 12:31:56 -05:00
cast = style_get_cast ( p [ ' style_type ' ] , p [ ' var_type ' ] )
2024-04-30 05:00:05 -04:00
print ( " static inline " + p [ ' var_type ' ] + " lv_obj_get_style_ " + p [ ' name ' ] . lower ( ) + " (const lv_obj_t * obj, lv_part_t part) " )
2021-02-23 07:01:46 -08:00
print ( " { " )
print ( " lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ " + p [ ' name ' ] + " ); " )
print ( " return " + cast + " v. " + p [ ' style_type ' ] + " ; " )
print ( " } " )
print ( " " )
2022-03-07 10:01:25 -05:00
if ' filtered ' in p and p [ ' filtered ' ] :
2024-04-30 05:00:05 -04:00
print ( " static inline " + p [ ' var_type ' ] + " lv_obj_get_style_ " + p [ ' name ' ] . lower ( ) + " _filtered(const lv_obj_t * obj, lv_part_t part) " )
2022-03-07 10:01:25 -05:00
print ( " { " )
2024-08-02 01:46:42 -04:00
print ( " lv_style_value_t v = lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_ " + p [ ' name ' ] + " )); " )
2022-03-07 10:01:25 -05:00
print ( " return " + cast + " v. " + p [ ' style_type ' ] + " ; " )
print ( " } " )
print ( " " )
2021-11-22 03:53:16 -06:00
2021-03-31 12:31:56 -05:00
def style_set_cast ( style_type ) :
cast = " "
if style_type == ' num ' :
cast = " (int32_t) "
return cast
2021-02-20 01:51:03 -05:00
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
def style_set_c ( p ) :
2021-05-14 15:37:35 +02:00
if ' section ' in p : return
2021-11-22 03:53:16 -06:00
2021-03-31 12:31:56 -05:00
cast = style_set_cast ( p [ ' style_type ' ] )
2021-11-22 03:53:16 -06:00
print ( " " )
2021-05-31 19:27:23 +02:00
print ( " void lv_style_set_ " + p [ ' name ' ] . lower ( ) + " (lv_style_t * style, " + p [ ' var_type ' ] + " value) " )
2021-02-23 07:01:46 -08:00
print ( " { " )
2021-05-31 19:27:23 +02:00
print ( " lv_style_value_t v = { " )
print ( " . " + p [ ' style_type ' ] + " = " + cast + " value " )
print ( " }; " )
print ( " lv_style_set_prop(style, LV_STYLE_ " + p [ ' name ' ] + " , v); " )
2021-02-23 07:01:46 -08:00
print ( " } " )
2021-11-22 03:53:16 -06:00
2020-12-19 06:51:14 +01:00
2021-05-31 19:27:23 +02:00
def style_set_h ( p ) :
if ' section ' in p : return
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
print ( " void lv_style_set_ " + p [ ' name ' ] . lower ( ) + " (lv_style_t * style, " + p [ ' var_type ' ] + " value); " )
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
def local_style_set_c ( p ) :
2021-05-14 15:37:35 +02:00
if ' section ' in p : return
2021-11-22 03:53:16 -06:00
2021-03-31 12:31:56 -05:00
cast = style_set_cast ( p [ ' style_type ' ] )
2021-11-22 03:53:16 -06:00
print ( " " )
2024-01-04 04:44:36 +08:00
print ( " void lv_obj_set_style_ " + p [ ' name ' ] . lower ( ) + " (lv_obj_t * obj, " + p [ ' var_type ' ] + " value, lv_style_selector_t selector) " )
2021-02-23 07:01:46 -08:00
print ( " { " )
print ( " lv_style_value_t v = { " )
2021-03-31 12:31:56 -05:00
print ( " . " + p [ ' style_type ' ] + " = " + cast + " value " )
2021-02-23 07:01:46 -08:00
print ( " }; " )
2021-03-31 19:57:14 +02:00
print ( " lv_obj_set_local_style_prop(obj, LV_STYLE_ " + p [ ' name ' ] + " , v, selector); " )
2021-02-23 07:01:46 -08:00
print ( " } " )
2020-12-19 06:51:14 +01:00
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
def local_style_set_h ( p ) :
if ' section ' in p : return
2024-01-04 04:44:36 +08:00
print ( " void lv_obj_set_style_ " + p [ ' name ' ] . lower ( ) + " (lv_obj_t * obj, " + p [ ' var_type ' ] + " value, lv_style_selector_t selector); " )
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
2021-05-01 20:16:34 -04:00
def style_const_set ( p ) :
2021-05-14 15:37:35 +02:00
if ' section ' in p : return
2021-11-22 03:53:16 -06:00
2021-05-14 15:37:35 +02:00
cast = style_set_cast ( p [ ' style_type ' ] )
2021-11-22 03:53:16 -06:00
print ( " " )
2021-05-14 15:37:35 +02:00
print ( " #define LV_STYLE_CONST_ " + p [ ' name ' ] + " (val) \\ " )
print ( " { \\ " )
2024-08-02 01:46:42 -04:00
print ( " .prop = LV_STYLE_ " + p [ ' name ' ] + " , .value = { . " + p [ ' style_type ' ] + " = " + cast + " val } \\ " )
2021-05-14 15:37:35 +02:00
print ( " } " )
2021-04-23 11:34:59 +02:00
2021-04-23 10:35:36 +02:00
def docs ( p ) :
2021-05-14 15:37:35 +02:00
if " section " in p :
2021-11-22 03:53:16 -06:00
print ( " " )
2024-03-10 07:46:40 +01:00
print ( p [ ' section ' ] )
print ( " - " * len ( p [ ' section ' ] ) )
print ( " " )
2021-05-14 15:37:35 +02:00
print ( p [ ' dsc ' ] )
2021-11-22 03:53:16 -06:00
return
2021-05-14 15:37:35 +02:00
if " default " not in p : return
2021-11-22 03:53:16 -06:00
2021-04-23 10:35:36 +02:00
d = str ( p [ " default " ] )
2021-11-22 03:53:16 -06:00
2021-04-23 10:35:36 +02:00
i = " No "
if p [ " inherited " ] : i = " Yes "
2021-11-22 03:53:16 -06:00
2021-04-23 10:35:36 +02:00
l = " No "
if p [ " layout " ] : l = " Yes "
2021-11-22 03:53:16 -06:00
2021-04-23 10:35:36 +02:00
e = " No "
if p [ " ext_draw " ] : e = " Yes "
2021-11-22 03:53:16 -06:00
2024-03-10 07:46:40 +01:00
li_style = " style= ' display:inline-block; margin-right: 20px; margin-left: 0px "
2021-11-22 03:53:16 -06:00
dsc = p [ ' dsc ' ]
print ( " " )
2024-03-10 07:46:40 +01:00
print ( p [ " name " ] . lower ( ) )
print ( " ~ " * len ( p [ " name " ] . lower ( ) ) )
print ( " " )
2021-05-14 15:37:35 +02:00
print ( dsc )
2021-11-22 03:53:16 -06:00
2024-03-10 07:46:40 +01:00
print ( " " )
print ( " .. raw:: html " )
print ( " " )
print ( " <ul> " )
print ( " <li " + li_style + " ' ><strong>Default</strong> " + d + " </li> " )
print ( " <li " + li_style + " ' ><strong>Inherited</strong> " + i + " </li> " )
print ( " <li " + li_style + " ' ><strong>Layout</strong> " + l + " </li> " )
print ( " <li " + li_style + " ' ><strong>Ext. draw</strong> " + e + " </li> " )
print ( " </ul> " )
2021-11-22 03:53:16 -06:00
2024-01-12 03:41:14 +01:00
def guard_proc ( p ) :
global guard
if ' section ' in p :
if guard :
guard_close ( )
if ' guard ' in p :
guard = p [ ' guard ' ]
2024-03-10 07:46:40 +01:00
print ( f " #if { guard } " )
2024-01-12 03:41:14 +01:00
def guard_close ( ) :
global guard
if guard :
print ( f " #endif /* { guard } */ \n " )
guard = " "
2021-04-23 10:35:36 +02:00
2021-02-19 09:58:58 -05:00
base_dir = os . path . abspath ( os . path . dirname ( __file__ ) )
2021-03-23 23:19:14 +08:00
sys . stdout = open ( base_dir + ' /../src/core/lv_obj_style_gen.h ' , ' w ' )
2021-02-19 09:58:58 -05:00
2023-08-16 14:24:37 -06:00
HEADING = f '''
/ *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* DO NOT EDIT
* This file is automatically generated by " { os.path.split(__file__)[-1]} "
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* /
'''
print ( HEADING )
print ( ' #ifndef LV_OBJ_STYLE_GEN_H ' )
print ( ' #define LV_OBJ_STYLE_GEN_H ' )
print ( )
2024-03-13 20:38:25 -06:00
print ( ''' \
#ifdef __cplusplus
extern " C " {
#endif
''' )
2022-12-22 05:17:57 +08:00
print ( " #include \" ../misc/lv_area.h \" " )
print ( " #include \" ../misc/lv_style.h \" " )
print ( " #include \" ../core/lv_obj_style.h \" " )
2024-08-02 01:46:42 -04:00
print ( " #include \" ../misc/lv_types.h \" " )
2023-08-16 14:24:37 -06:00
print ( )
2024-01-12 03:41:14 +01:00
guard = " "
2021-02-23 07:01:46 -08:00
for p in props :
2024-01-12 03:41:14 +01:00
guard_proc ( p )
2021-02-23 07:01:46 -08:00
obj_style_get ( p )
2024-01-12 03:41:14 +01:00
guard_close ( )
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
for p in props :
2024-01-12 03:41:14 +01:00
guard_proc ( p )
2021-05-31 19:27:23 +02:00
local_style_set_h ( p )
2024-01-12 03:41:14 +01:00
guard_close ( )
2021-02-05 16:52:51 +01:00
2023-08-16 14:24:37 -06:00
print ( )
2024-03-13 20:38:25 -06:00
print ( ''' \
#ifdef __cplusplus
} / * extern " C " * /
#endif
''' )
2023-08-16 14:24:37 -06:00
print ( ' #endif /* LV_OBJ_STYLE_GEN_H */ ' )
2021-05-31 19:27:23 +02:00
sys . stdout = open ( base_dir + ' /../src/core/lv_obj_style_gen.c ' , ' w ' )
2023-08-16 14:24:37 -06:00
print ( HEADING )
2021-05-31 19:27:23 +02:00
print ( " #include \" lv_obj.h \" " )
2023-08-16 14:24:37 -06:00
print ( )
2024-01-12 03:41:14 +01:00
2021-02-23 07:01:46 -08:00
for p in props :
2024-01-12 03:41:14 +01:00
guard_proc ( p )
2021-05-31 19:27:23 +02:00
local_style_set_c ( p )
2024-01-12 03:41:14 +01:00
guard_close ( )
2021-05-31 19:27:23 +02:00
sys . stdout = open ( base_dir + ' /../src/misc/lv_style_gen.c ' , ' w ' )
2021-02-19 09:58:58 -05:00
2023-08-16 14:24:37 -06:00
print ( HEADING )
2021-05-31 19:27:23 +02:00
print ( " #include \" lv_style.h \" " )
2023-08-16 14:24:37 -06:00
print ( )
2024-01-12 03:41:14 +01:00
2021-05-31 19:27:23 +02:00
for p in props :
2024-01-12 03:41:14 +01:00
guard_proc ( p )
2021-05-31 19:27:23 +02:00
style_set_c ( p )
2024-01-12 03:41:14 +01:00
guard_close ( )
2021-11-22 03:53:16 -06:00
2021-03-23 23:19:14 +08:00
sys . stdout = open ( base_dir + ' /../src/misc/lv_style_gen.h ' , ' w ' )
2021-02-19 09:58:58 -05:00
2023-08-16 14:24:37 -06:00
print ( HEADING )
print ( ' #ifndef LV_STYLE_GEN_H ' )
print ( ' #define LV_STYLE_GEN_H ' )
print ( )
2024-03-13 20:38:25 -06:00
print ( ''' \
#ifdef __cplusplus
extern " C " {
#endif
''' )
2024-01-12 03:41:14 +01:00
2021-02-23 07:01:46 -08:00
for p in props :
2024-01-12 03:41:14 +01:00
guard_proc ( p )
2021-05-31 19:27:23 +02:00
style_set_h ( p )
2024-01-12 03:41:14 +01:00
guard_close ( )
2021-11-22 03:53:16 -06:00
2021-05-31 19:27:23 +02:00
for p in props :
2024-01-12 03:41:14 +01:00
guard_proc ( p )
2021-05-01 20:16:34 -04:00
style_const_set ( p )
2024-01-12 03:41:14 +01:00
guard_close ( )
2023-08-16 14:24:37 -06:00
print ( )
2024-03-13 20:38:25 -06:00
print ( ''' \
#ifdef __cplusplus
} / * extern " C " * /
#endif
''' )
2023-08-16 14:24:37 -06:00
print ( ' #endif /* LV_STYLE_GEN_H */ ' )
2024-10-23 12:53:33 -06:00
sys . stdout = open ( base_dir + ' /../docs/details/base-widget/styles/style-properties.rst ' , ' w ' )
2024-03-10 07:46:40 +01:00
2024-10-23 12:53:33 -06:00
print ( ' .. _style_properties: ' )
print ( )
2024-03-10 07:46:40 +01:00
print ( ' ================ ' )
2024-10-23 12:53:33 -06:00
print ( ' Style Properties ' )
2024-03-10 07:46:40 +01:00
print ( ' ================ ' )
2021-05-14 15:37:35 +02:00
2021-04-23 10:35:36 +02:00
for p in props :
docs ( p )