App:Library:LVGL:docs:Widgets:Line meter (lv lmeter)
https://docs.lvgl.io/latest/en/html/widgets/linemeter.html
Line meter (lv_lmeter)
Overview
英文 | 自動翻訳 |
---|---|
The Line meter object consists of some radial lines which draw a scale.
Setting a value for the Line meter will change the color of the scale lines proportionally. |
ライン メーター オブジェクトは、スケールを描画するいくつかの放射状の線で構成されます。
ライン メーターの値を設定すると、スケール ラインの色が比例して変化します。 |
Parts and Styles
英文 | 自動翻訳 |
---|---|
The Line meter has only a main part, called LV_LINEMETER_PART_MAIN .
It uses all the typical background properties the draw a rectangle-like or circle background and the line and scale properties to draw the scale lines. The active lines (which are related to smaller values the the current value) are colored from line_color to scale_grad_color. The lines in the end (after the current value) are set to scale_end_color color. |
ライン メーターには、LV_LINEMETER_PART_MAIN というメイン パーツしかありません。
これは、すべての一般的な背景プロパティを使用して長方形または円形の背景を描画し、lineおよびscale プロパティを使用してscale linesを描画します。 アクティブな線 (現在の値よりも小さい値に関連付けられている) は、line_color から scale_grad_color に色付けされます。 最後 (現在の値の後) の行は、scale_end_color 色に設定されます。 |
Usage
Set value
英文 | 自動翻訳 |
---|---|
When setting a new value with lv_linemeter_set_value(linemeter, new_value) the proportional part of the scale will be recolored.
|
lv_linemeter_set_value(linemeter, new_value) で新しい値を設定すると、スケールの比例部分の色が変更されます。
|
Range and Angles
英文 | 自動翻訳 |
---|---|
The lv_linemeter_set_range(linemeter, min, max) function sets the range of the line meter.
The default angle is 240 and the default line number is 31. |
lv_linemeter_set_range(linemeter, min, max) 関数は、ライン メーターの範囲を設定します。
デフォルトの角度は 240 で、デフォルトの線数は 31 です。 |
Angle offset
英文 | 自動翻訳 |
---|---|
By default the scale angle is interpreted symmetrically to the y axis. It results in "standing" line meter.
With |
デフォルトでは、スケール角度は y 軸に対して対称的に解釈されます。 「立った」ラインメーターになります。
|
Mirror
英文 | 自動翻訳 |
---|---|
By default the Line meter's lines are activated clock-wise.
It can be changed using |
デフォルトでは、ラインメーターのラインは時計回りにアクティブになっています。
|
Events
英文 | 自動翻訳 |
---|---|
Only the Generic events are sent by the object type.
|
Generic eventsのみがオブジェクトタイプによって送信されます。
|
Keys
英文 | 自動翻訳 |
---|---|
No Keys are processed by the object type.
Learn more about Keys. |
オブジェクトタイプで処理されるキーはありません。
詳細はKeysをご覧ください。 |