Style Properties

LVGL style property reference.

Edit on GitHub

Size and Position

Properties related to size, position, alignment and layout of Widgets.

width

Default: Widget dependentInherited: NoLayout: YesExt. Draw: No

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.

min_width

Default: 0Inherited: NoLayout: YesExt. Draw: No

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

Default: LV_COORD_MAXInherited: NoLayout: YesExt. Draw: No

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

Default: Widget dependentInherited: NoLayout: YesExt. Draw: No

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.

min_height

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.

max_height

Default: LV_COORD_MAXInherited: NoLayout: YesExt. Draw: No

Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.

length

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Its meaning depends on the type of Widget. For example in case of lv_scale it means the length of the ticks.

x

Default: 0Inherited: NoLayout: YesExt. Draw: No

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.

y

Default: 0Inherited: NoLayout: YesExt. Draw: No

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.

align

Default: `LV_ALIGN_DEFAULT`Inherited: NoLayout: YesExt. Draw: No

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.

transform_width

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

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.

transform_height

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

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.

translate_x

Default: 0Inherited: NoLayout: YesExt. Draw: No

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.

translate_y

Default: 0Inherited: NoLayout: YesExt. Draw: No

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.

translate_radial

Default: 0Inherited: NoLayout: YesExt. Draw: No

Move object around the centre of the parent object (e.g. around the circumference of a scale).

transform_scale_x

Default: 0Inherited: NoLayout: YesExt. Draw: Yes

Zoom Widget horizontally. The value 256 (or LV_SCALE_NONE) means normal size, 128 half size, 512 double size, and so on.

transform_scale_y

Default: 0Inherited: NoLayout: YesExt. Draw: Yes

Zoom Widget vertically. The value 256 (or LV_SCALE_NONE) means normal size, 128 half size, 512 double size, and so on.

transform_rotation

Default: 0Inherited: NoLayout: YesExt. Draw: Yes

Rotate Widget. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg.

transform_pivot_x

Default: 0Inherited: NoLayout: NoExt. Draw: No

Set pivot point's X coordinate for transformations. Relative to Widget's top left corner.

transform_pivot_y

Default: 0Inherited: NoLayout: NoExt. Draw: No

Set pivot point's Y coordinate for transformations. Relative to Widget's top left corner.

transform_skew_x

Default: 0Inherited: NoLayout: YesExt. Draw: Yes

Skew Widget horizontally. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg.

transform_skew_y

Default: 0Inherited: NoLayout: YesExt. Draw: Yes

Skew Widget vertically. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg.

Padding

Properties to describe spacing between the parent's sides and the children and among the children. Very similar to the padding properties in HTML.

pad_top

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets the padding on the top. It makes the content area smaller in this direction.

pad_bottom

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets the padding on the bottom. It makes the content area smaller in this direction.

pad_left

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets the padding on the left. It makes the content area smaller in this direction.

pad_right

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets the padding on the right. It makes the content area smaller in this direction.

pad_row

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets the padding between the rows. Used by the layouts.

pad_column

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets the padding between the columns. Used by the layouts.

pad_radial

Default: 0Inherited: NoLayout: NoExt. Draw: No

Pad text labels away from the scale ticks/remainder of the LV_PART_.

Margin

Properties to describe spacing around a Widget. Very similar to the margin properties in HTML.

margin_top

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets margin on the top. Widget will keep this space from its siblings in layouts.

margin_bottom

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets margin on the bottom. Widget will keep this space from its siblings in layouts.

margin_left

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets margin on the left. Widget will keep this space from its siblings in layouts.

margin_right

Default: 0Inherited: NoLayout: YesExt. Draw: No

Sets margin on the right. Widget will keep this space from its siblings in layouts.

Background

Properties to describe the background color and image of Widget.

bg_color

Default: `0xffffff`Inherited: NoLayout: NoExt. Draw: No

Set background color of Widget.

bg_opa

Default: `LV_OPA_TRANSP`Inherited: NoLayout: NoExt. Draw: No

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.

bg_grad_color

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set gradient color of the background. Used only if grad_dir is not LV_GRAD_DIR_NONE.

bg_grad_dir

Default: `LV_GRAD_DIR_NONE`Inherited: NoLayout: NoExt. Draw: No

Set direction of the gradient of the background. Possible values are LV_GRAD_DIR_NONE/HOR/VER.

bg_main_stop

Default: 0Inherited: NoLayout: NoExt. Draw: No

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.

bg_grad_stop

Default: 255Inherited: NoLayout: NoExt. Draw: No

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.

bg_main_opa

Default: 255Inherited: NoLayout: NoExt. Draw: No

Set opacity of the first gradient color.

bg_grad_opa

Default: 255Inherited: NoLayout: NoExt. Draw: No

Set opacity of the second gradient color.

bg_grad

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

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.

bg_image_src

Default: `NULL`Inherited: NoLayout: NoExt. Draw: Yes

Set a background image. Can be a pointer to lv_image_dsc_t, a path to a file or an LV_SYMBOL_....

bg_image_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: No

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.

bg_image_recolor

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set a color to mix to the background image.

bg_image_recolor_opa

Default: `LV_OPA_TRANSP`Inherited: NoLayout: NoExt. Draw: No

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.

bg_image_tiled

Default: 0Inherited: NoLayout: NoExt. Draw: No

If enabled the background image will be tiled. Possible values are true or false.

Border

Properties to describe the borders

border_color

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set color of the border.

border_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: No

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.

border_width

Default: 0Inherited: NoLayout: YesExt. Draw: No

Set width of the border. Only pixel values can be used.

border_side

Default: `LV_BORDER_SIDE_FULL`Inherited: NoLayout: NoExt. Draw: No

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.

border_post

Default: 0Inherited: NoLayout: NoExt. Draw: No

Sets whether the border should be drawn before or after the children are drawn. true: after children, false: before children.

Outline

Properties to describe the outline. It's like a border but drawn outside of the rectangles.

outline_width

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set width of outline in pixels.

outline_color

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set color of outline.

outline_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: Yes

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.

outline_pad

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set padding of outline, i.e. the gap between Widget and the outline.

Shadow

Properties to describe the shadow drawn under the rectangles.

shadow_width

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set width of the shadow in pixels. The value should be >= 0.

shadow_offset_x

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set an offset on the shadow in pixels in X direction.

shadow_offset_y

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set an offset on the shadow in pixels in Y direction.

shadow_spread

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Make shadow calculation to use a larger or smaller rectangle as base. The value can be in pixels to make the area larger/smaller.

shadow_color

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set color of shadow.

shadow_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: Yes

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.

Image

Properties to describe the images

image_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: No

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.

image_recolor

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set color to mix with the image.

image_recolor_opa

Default: 0Inherited: NoLayout: NoExt. Draw: No

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.

image_colorkey

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

Set image colorkey definition. The lv_image_colorkey_t contains two color values: high_color and low_color. the color of pixels ranging from low_color to high_color will be transparent.

Line

Properties to describe line-like Widgets

line_width

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set width of lines in pixels.

line_dash_width

Default: 0Inherited: NoLayout: NoExt. Draw: No

Set width of dashes in pixels. Note that dash works only on horizontal and vertical lines.

line_dash_gap

Default: 0Inherited: NoLayout: NoExt. Draw: No

Set gap between dashes in pixels. Note that dash works only on horizontal and vertical lines.

line_rounded

Default: 0Inherited: NoLayout: NoExt. Draw: No

Make end points of the lines rounded. true: rounded, false: perpendicular line ending.

line_color

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set color of lines.

line_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: No

Set opacity of lines.

Arc

Properties to describe the Arc Widget

arc_width

Default: 0Inherited: NoLayout: NoExt. Draw: Yes

Set width (thickness) of arcs in pixels.

arc_rounded

Default: 0Inherited: NoLayout: NoExt. Draw: No

Make end points of arcs rounded. true: rounded, false: perpendicular line ending.

arc_color

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set color of arc.

arc_opa

Default: `LV_OPA_COVER`Inherited: NoLayout: NoExt. Draw: No

Set opacity of arcs.

arc_image_src

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

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.

Text

Properties to describe the properties of text. All these properties are inherited.

text_color

Default: `0x000000`Inherited: YesLayout: NoExt. Draw: No

Sets color of text.

text_opa

Default: `LV_OPA_COVER`Inherited: YesLayout: NoExt. Draw: No

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.

text_font

Default: `LV_FONT_DEFAULT`Inherited: YesLayout: YesExt. Draw: No

Set font of text (a pointer lv_font_t *).

text_letter_space

Default: 0Inherited: YesLayout: YesExt. Draw: No

Set letter space in pixels.

text_line_space

Default: 0Inherited: YesLayout: YesExt. Draw: No

Set line space in pixels.

text_decor

Default: `LV_TEXT_DECOR_NONE`Inherited: YesLayout: NoExt. Draw: No

Set decoration for the text. Possible values are LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH. OR-ed values can be used as well.

text_align

Default: `LV_TEXT_ALIGN_AUTO`Inherited: YesLayout: YesExt. Draw: No

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.

text_outline_stroke_color

Default: `0x000000`Inherited: YesLayout: NoExt. Draw: No

Sets the color of letter outline stroke.

text_outline_stroke_width

Default: 0Inherited: YesLayout: YesExt. Draw: No

Set the letter outline stroke width in pixels.

text_outline_stroke_opa

Default: `LV_OPA_COVER`Inherited: YesLayout: NoExt. Draw: No

Set the opacity of the letter outline stroke. 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.

text_leading_trim

Default: `LV_TEXT_LEADING_TRIM_NONE`Inherited: YesLayout: YesExt. Draw: No

Set the text leading trim mode. Removes empty space above and/or below text based on font metrics (cap-height, x-height, baseline). Similar to CSS text-box-trim. Possible values are LV_TEXT_LEADING_TRIM_NONE/CAPITAL_BASELINE/LOWER_BASELINE/CAPITAL/LOWER.

Blur

Blur the widget or its background

blur_radius

Default: `0`Inherited: NoLayout: NoExt. Draw: No

Sets the intensity of blurring. Applied on each lv_part separately before the children are rendered.

blur_backdrop

Default: `false`Inherited: NoLayout: NoExt. Draw: No

If true the background of the widget will be blurred. The part should have less than 100% opacity to make it visible. If false the given part will be blurred when it's rendered but before drawing the children.

blur_quality

Default: `LV_BLUR_QUALITY_AUTO`Inherited: NoLayout: NoExt. Draw: No

Setting to LV_BLUR_QUALITY_SPEED the blurring algorithm will prefer speed over quality. LV_BLUR_QUALITY_PRECISION will force using higher quality but slower blur. With LV_BLUR_QUALITY_AUTO the quality will be selected automatically.

Drop Shadow

Take an A8 snapshot of the given part and blur it.

drop_shadow_radius

Default: `0`Inherited: NoLayout: NoExt. Draw: Yes

Sets the intensity of blurring. Applied on each lv_part separately before the children are rendered.

drop_shadow_offset_x

Default: `0`Inherited: NoLayout: NoExt. Draw: Yes

Set an offset on the shadow in pixels in X direction.

drop_shadow_offset_y

Default: `0`Inherited: NoLayout: NoExt. Draw: Yes

Set an offset on the shadow in pixels in Y direction.

drop_shadow_color

Default: `0`Inherited: NoLayout: NoExt. Draw: No

Set the color of the shadow.

drop_shadow_opa

Default: `0`Inherited: NoLayout: NoExt. Draw: No

Set the opacity of the shadow.

drop_shadow_quality

Default: `LV_BLUR_QUALITY_PRECISION`Inherited: NoLayout: NoExt. Draw: No

Setting to LV_BLUR_QUALITY_SPEED the blurring algorithm will prefer speed over quality. LV_BLUR_QUALITY_PRECISION will force using higher quality but slower blur. With LV_BLUR_QUALITY_AUTO the quality will be selected automatically.

Miscellaneous

Mixed properties for various purposes.

radius

Default: 0Inherited: NoLayout: NoExt. Draw: No

Set radius on every corner. The value is interpreted in pixels (>= 0) or LV_RADIUS_CIRCLE for max radius.

radial_offset

Default: 0Inherited: NoLayout: NoExt. Draw: No

Move start point of object (e.g. scale tick) radially.

clip_corner

Default: 0Inherited: NoLayout: NoExt. Draw: No

Enable clipping of content that overflows rounded corners of parent Widget. Can be true or false.

opa

Default: `LV_OPA_COVER`Inherited: YesLayout: NoExt. Draw: No

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.

opa_layered

Default: `LV_OPA_COVER`Inherited: YesLayout: NoExt. Draw: No

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.

color_filter_dsc

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

Mix a color with all colors of the Widget.

color_filter_opa

Default: `LV_OPA_TRANSP`Inherited: NoLayout: NoExt. Draw: No

The intensity of mixing of color filter.

recolor

Default: `0x000000`Inherited: NoLayout: NoExt. Draw: No

Set a color to mix to the obj.

recolor_opa

Default: `LV_OPA_TRANSP`Inherited: NoLayout: NoExt. Draw: No

Sets the intensity of color mixing. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent. A value of 255, LV_OPA_100 or LV_OPA_COVER means fully opaque. Intermediate values like LV_OPA_10, LV_OPA_20, etc result in semi-transparency.

anim

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

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.

anim_duration

Default: 0Inherited: NoLayout: NoExt. Draw: No

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.

transition

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

An initialized lv_style_transition_dsc_t to describe a transition.

blend_mode

Default: `LV_BLEND_MODE_NORMAL`Inherited: NoLayout: NoExt. Draw: No

Describes how to blend the colors to the background. Possible values are LV_BLEND_MODE_NORMAL/ADDITIVE/SUBTRACTIVE/MULTIPLY/DIFFERENCE.

layout

Default: 0Inherited: NoLayout: YesExt. Draw: No

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.

base_dir

Default: `LV_BASE_DIR_AUTO`Inherited: YesLayout: YesExt. Draw: No

Set base direction of Widget. Possible values are LV_BIDI_DIR_LTR/RTL/AUTO.

bitmap_mask_src

Default: `NULL`Inherited: NoLayout: NoExt. Draw: No

If set, a layer will be created for the widget and the layer will be masked with this A8 bitmap mask.

rotary_sensitivity

Default: `256`Inherited: YesLayout: NoExt. Draw: No

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.

Flex

Flex layout properties.

flex_flow

Default: `LV_FLEX_FLOW_NONE`Inherited: NoLayout: YesExt. Draw: No

Defines in which direction the flex layout should arrange the children.

flex_main_place

Default: `LV_FLEX_ALIGN_NONE`Inherited: NoLayout: YesExt. Draw: No

Defines how to align the children in the direction of flex flow.

flex_cross_place

Default: `LV_FLEX_ALIGN_NONE`Inherited: NoLayout: YesExt. Draw: No

Defines how to align the children perpendicular to the direction of flex flow.

flex_track_place

Default: `LV_FLEX_ALIGN_NONE`Inherited: NoLayout: YesExt. Draw: No

Defines how to align the tracks of the flow.

flex_grow

Default: `0`Inherited: NoLayout: YesExt. Draw: No

Defines how much space to take proportionally from the free space of the Widget's track.

Grid

Grid layout properties.

grid_column_dsc_array

Default: `NULL`Inherited: NoLayout: YesExt. Draw: No

An array to describe the columns of the grid. Should be LV_GRID_TEMPLATE_LAST terminated.

grid_column_align

Default: `LV_GRID_ALIGN_START`Inherited: NoLayout: YesExt. Draw: No

Defines how to distribute the columns.

grid_row_dsc_array

Default: `NULL`Inherited: NoLayout: YesExt. Draw: No

An array to describe the rows of the grid. Should be LV_GRID_TEMPLATE_LAST terminated.

grid_row_align

Default: `LV_GRID_ALIGN_START`Inherited: NoLayout: YesExt. Draw: No

Defines how to distribute the rows.

grid_cell_column_pos

Default: 0Inherited: NoLayout: YesExt. Draw: No

Set column in which Widget should be placed.

grid_cell_x_align

Default: `LV_GRID_ALIGN_START`Inherited: NoLayout: YesExt. Draw: No

Set how to align Widget horizontally.

grid_cell_column_span

Default: 1Inherited: NoLayout: YesExt. Draw: No

Set how many columns Widget should span. Needs to be >= 1.

grid_cell_row_pos

Default: 0Inherited: NoLayout: YesExt. Draw: No

Set row in which Widget should be placed.

grid_cell_y_align

Default: `LV_GRID_ALIGN_START`Inherited: NoLayout: YesExt. Draw: No

Set how to align Widget vertically.

grid_cell_row_span

Default: 1Inherited: NoLayout: YesExt. Draw: No

Set how many rows Widget should span. Needs to be >= 1.

Last updated on

On this page