# Style properties ## Size and position TODO ### width Sets the width of object. Pixel, percentage and `LV_SIZE_CONTENT` values can be used. Percentage values are relative to the width of the parent's content area. ### min_width Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. ### max_width Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. ### height Sets the height of object. Pixel, percentage and `LV_SIZE_CONTENT` can be used. Percentage values are relative to the height of the parent's content area. ### min_height Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. ### max_height Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. ### x 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. ### y Set the Y coordinate of the object considering the set `align`. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. ### align Set the alignment which determines from which point of the parent the X and Y coordinates should be interpreted. The possible values are: `LV_ALIGN_TOP_LEFT/MID/RIGHT`, `LV_ALIGN_BOTTOM_LEFT/MID/RIGHT`, `LV_ALIGN_LEFT/RIGHT_MID`, `LV_ALIGN_CENTER` ### transform_width Make the object wider on both sides with this value. Pixel and percentage (with `lv_pct(x)`) values can be used. Percentage values are relative to the object's width. ### transform_height Make the object higher on both sides with this value. Pixel and percentage (with `lv_pct(x)`) values can be used. Percentage values are relative to the object's height. ### translate_x Move the object 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 the object's width. ### translate_y 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. ### transform_zoom Zoom image-like objects. Multiplied with the zoom set on the object. The value 256 (or `LV_IMG_ZOOM_NONE`) means normal size, 128 half size, 512 double size, and so on ### transform_angle Rotate image-like objects. Added to the rotation set on the object. The value is interpreted in 0.1 degree unit. E.g. 45 deg. = 450 ## Padding TODO ### pad_top Sets the padding on the top. It makes the content area smaller in this direction. ### pad_bottom Sets the padding on the bottom. It makes the content area smaller in this direction. ### pad_left Sets the padding on the left. It makes the content area smaller in this direction. ### pad_right Sets the padding on the right. It makes the content area smaller in this direction. ### pad_row Sets the padding between the rows. Used by the layouts. ### pad_column Sets the padding between the columns. Used by the layouts. ## Miscellaneous TODO ### radius Set the radius on every corner. The value is interpreted in pixel (>= 0) or `LV_RADIUS_CIRCLE` for max. radius ### clip_corner Enable to clip the overflowed content on the rounded corner. Can be `true` or `false`. ### opa Scale down all opacity values of the object by this factor. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### color_filter_dsc Mix a color to all colors of the object. ### color_filter_opa The intensity of mixing of color filter. ### anim_time The animation time 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 the widgets' documentation to learn more. ### anim_speed The animation speed in pixel/sec. Its meaning is widget specific. E.g. scroll speed of label. See the widgets' documentation to learn more. ### transition An initialized `lv_style_transition_dsc_t` to describe a transition. ### blend_mode Describes how to blend the colors to the background. The possible values are `LV_BLEND_MODE_NORMAL/ADDITIVE/SUBTRACTIVE` ### layout Set the layout if the object. The children will be repositioned and resized according to the policies set for the layout. For the possible values see the documentation of the layouts. ### base_dir Set the base direction of the object. The possible values are `LV_BIDI_DIR_LTR/RTL/AUTO`. ## Background TODO ### bg_color Set the background color of the object. ### bg_opa Set the opacity of the background. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### bg_grad_color Set the gradient color of the background. Used only if `grad_dir` is not `LV_GRAD_DIR_NONE` ### bg_grad_dir Set the direction of the gradient of the background. The possible values are `LV_GRAD_DIR_NONE/HOR/VER`. ### bg_main_stop Set the point from which the background color should start for gradients. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on ### bg_grad_stop Set the point from which the background's gradient color should start. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on ### bg_img_src Set a background image. Can be a pointer to `lv_img_dsc_t`, a path to a file or an `LV_SYMBOL_...` ### bg_img_opa Set the opacity of the background image. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### bg_img_recolor Set a color to mix to the background image. ### bg_img_recolor_opa Set the intensity of background image recoloring. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means no mixing, 256, `LV_OPA_100` or `LV_OPA_COVER` means full recoloring, other values or LV_OPA_10, LV_OPA_20, etc are interpreted proportionally. ### bg_img_tiled If enabled the background image will be tiled. The possible values are `true` or `false`. ## Border TODO ### border_color Set the color of the border ### border_opa Set the opcitiy of the border. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### border_width Set the width of the border. Only pixel values can be used. ### border_side Set which side(s) the border should be drawn. The possible values are `LV_BORDER_SIDE_NONE/TOP/BOTTOM/LEFT/RIGHT/INTERNAL`. OR-ed calues an be used as well, e.g. `LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_LEFT`. ### border_post Sets wheter the border should be drawn before or after the children ar drawn. `true`: after children, `false`: before children ## Text TODO ### text_color Sets the color of the text. ### text_opa Set the opacity of the text. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### text_font Set the font of the text (a pointer `lv_font_t *`). ### text_letter_space Set the letter space in pixels ### text_line_space Set the line space in pixels. ### text_decor Set decoration for the text. The possible values are `LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH`. OR-ed values can be used as well. ### text_align Set how to align the lines of the text. Note that it doesn't align the object itself, only the lines inside the object. The 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 ## Image TODO ### img_opa Set the opacity of an image. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### img_recolor Set color to mix to the image. ### img_recolor_opa Set the intensity of the color mixing. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ## Outline TODO ### outline_width Set the width of the outline in pixels. ### outline_color Set the color of the outline. ### outline_opa Set the opacity of the outline. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ### outline_pad Set the padding of the outline, i.e. the gap between object and the outline. ## Shadow TODO ### shadow_width Set the width of the shadow in pixels. The value should be >= 0. ### shadow_ofs_x Set an offset on the shadow in pixels in X direction. ### shadow_ofs_y Set an offset on the shadow in pixels in Y direction. ### shadow_spread Make the shadow calculation to use a larger or smaller rectangle as base. The value can be in pixel to make the area larger/smaller ### shadow_color Set the color of the shadow ### shadow_opa Set the opacity of the shadow. Value 0, `LV_OPA_0` or `LV_OPA_TRANSP` means fully transparent, 256, `LV_OPA_100` or `LV_OPA_COVER` means fully covering, other values or LV_OPA_10, LV_OPA_20, etc indicate semi-transparency. ## Line TODO ### line_width Set the width of the lines in pixel. ### line_dash_width Set the width of dashes in pixel. Note that dash works only on horizontal and vertical lines ### line_dash_gap Set the gap between dashes in pixel. Note that dash works only on horizontal and vertical lines ### line_rounded Make the end points of the lines rounded. `true`: rounded, `false`: perpendicular line ending ### line_color Set the color fo the lines. ### line_opa Set the opacity of the lines. ## Arc TODO ### arc_width Set the width (thickness) of the arcs in pixel. ### arc_rounded Make the end points of the arcs rounded. `true`: rounded, `false`: perpendicular line ending ### arc_color Set the color of the arc. ### arc_opa Set the opacity of the arcs. ### arc_img_src Set an image from which the arc will be masked out. It's useful to display complex effects on the arcs. Can be a pointer to `lv_img_dsc_t` or a path to a file