Properties related to size, position, alignment and layout of the objects.
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.
Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.
Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.
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.
Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.
Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.
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.
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.
Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. The 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.
LV_ALIGN_DEFAULT
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.
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.
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.
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.
Zoom an objects. The value 256 (or LV_IMG_ZOOM_NONE
) means normal size, 128 half size, 512 double size, and so on
Rotate an objects. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg.
Set the pivot point's X coordinate for transformations. Relative to the object's top left corner'
Set the pivot point's Y coordinate for transformations. Relative to the object's top left corner'
Properties to describe spacing between the parent's sides and the children and among the children. Very similar to the padding properties in HTML.
Sets the padding on the top. It makes the content area smaller in this direction.
Sets the padding on the bottom. It makes the content area smaller in this direction.
Sets the padding on the left. It makes the content area smaller in this direction.
Sets the padding on the right. It makes the content area smaller in this direction.
Sets the padding between the rows. Used by the layouts.
Sets the padding between the columns. Used by the layouts.
Properties to describe the background color and image of the objects.
Set the background color of the object.
0xffffff
Set the 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.
LV_OPA_TRANSP
Set the gradient color of the background. Used only if grad_dir
is not LV_GRAD_DIR_NONE
0x000000
Set the direction of the gradient of the background. The possible values are LV_GRAD_DIR_NONE/HOR/VER
.
LV_GRAD_DIR_NONE
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
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
Set the gradient definition. The pointed instance must exist while the object 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 too.
NULL
Set the dithering mode of the gradient of the background. The possible values are LV_DITHER_NONE/ORDERED/ERR_DIFF
.
LV_DITHER_NONE
Set a background image. Can be a pointer to lv_img_dsc_t
, a path to a file or an LV_SYMBOL_...
NULL
Set the 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.
LV_OPA_COVER
Set a color to mix to the background image.
0x000000
Set the 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.
LV_OPA_TRANSP
If enabled the background image will be tiled. The possible values are true
or false
.
Properties to describe the borders
Set the color of the border
0x000000
Set the 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.
LV_OPA_COVER
Set the width of the border. Only pixel values can be used.
Set only which side(s) the border should be drawn. The 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
.
LV_BORDER_SIDE_NONE
Sets whether the border should be drawn before or after the children are drawn. true
: after children, false
: before children
Properties to describe the outline. It's like a border but drawn outside of the rectangles.
Set the width of the outline in pixels.
Set the color of the outline.
0x000000
Set the opacity of the 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.
LV_OPA_COVER
Set the padding of the outline, i.e. the gap between object and the outline.
Properties to describe the shadow drawn under the rectangles.
Set the width of the shadow in pixels. The value should be >= 0.
Set an offset on the shadow in pixels in X direction.
Set an offset on the shadow in pixels in Y direction.
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
Set the color of the shadow
0x000000
Set the opacity of the 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.
LV_OPA_COVER
Properties to describe the images
Set the 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.
LV_OPA_COVER
Set color to mixt to the image.
0x000000
Set the intensity of the 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.
Properties to describe line-like objects
Set the width of the lines in pixel.
Set the width of dashes in pixel. Note that dash works only on horizontal and vertical lines
Set the gap between dashes in pixel. Note that dash works only on horizontal and vertical lines
Make the end points of the lines rounded. true
: rounded, false
: perpendicular line ending
Set the color fo the lines.
0x000000
Set the opacity of the lines.
LV_OPA_COVER
TODO
Set the width (thickness) of the arcs in pixel.
Make the end points of the arcs rounded. true
: rounded, false
: perpendicular line ending
Set the color of the arc.
0x000000
Set the opacity of the arcs.
LV_OPA_COVER
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
NULL
Properties to describe the properties of text. All these properties are inherited.
Sets the color of the text.
0x000000
Set the opacity of the 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.
LV_OPA_COVER
Set the font of the text (a pointer lv_font_t *
).
LV_FONT_DEFAULT
Set the letter space in pixels
Set the line space in pixels.
Set decoration for the text. The possible values are LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH
. OR-ed values can be used as well.
LV_TEXT_DECOR_NONE
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
LV_TEXT_ALIGN_AUTO
Mixed properties for various purposes.
Set the radius on every corner. The value is interpreted in pixel (>= 0) or LV_RADIUS_CIRCLE
for max. radius
Enable to clip the overflowed content on the rounded corner. Can be true
or false
.
Scale down all opacity values of the object 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.
LV_OPA_COVER
First draw the object 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.
LV_OPA_COVER
Mix a color to all colors of the object.
NULL
The intensity of mixing of color filter.
LV_OPA_TRANSP
The animation template for the object'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 the widgets' documentation to learn more.
NULL
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.
The animation speed in pixel/sec. Its meaning is widget specific. E.g. scroll speed of label. See the widgets' documentation to learn more.
An initialized lv_style_transition_dsc_t
to describe a transition.
NULL
Describes how to blend the colors to the background. The possible values are LV_BLEND_MODE_NORMAL/ADDITIVE/SUBTRACTIVE/MULTIPLY
LV_BLEND_MODE_NORMAL
Set the layout of 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.
Set the base direction of the object. The possible values are LV_BIDI_DIR_LTR/RTL/AUTO
.
LV_BASE_DIR_AUTO