lvgl.hline

Display a horizontal line.

Syntax

lvgl.hline([parent], {settings})

parent:hline({settings})

Parameters

See the API page for parameter description and common settings.

The 'w' setting determinse the length of the line.

The 'h' setting determines the thickness of the line.

Hline specific settings:

Name
Type
Description
Default if not set

rounded

Boolean

If true then the end caps of the line are rounded.

false

opacity

Number or Function

Sets the opacity. Note: range is 0 (transparent) to 255 (opaque)

255 (opaque)

dashGap

Number

Sets the gap size for drawing dashed lines.

0

dashWidth

Number

Sets the dash size for drawing dashed lines. Note: both dashGap and dashWidth must be > 0 in order to draw dashed lines.

0

Return values

LVGL object

API Status

Avail
Status
Comment

BW radios

Color radios

active

Change log

EdgeTX version
Change

2.11.0

Introduced

Last updated

Was this helpful?