App:Library:LVGL:docs:Widgets:Line meter (lv lmeter)

提供: robot-jp wiki
ナビゲーションに移動検索に移動

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.

ライン メーター オブジェクトは、スケールを描画するいくつかの放射状の線で構成されます。

ライン メーターの値を設定すると、スケール ラインの色が比例して変化します。

戻る : Previous


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 色に設定されます。

戻る : Previous


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) で新しい値を設定すると、スケールの比例部分の色が変更されます。
戻る : Previous


Range and Angles

英文 自動翻訳
The lv_linemeter_set_range(linemeter, min, max) function sets the range of the line meter.


You can set the angle of the scale and the number of the lines by: lv_linemeter_set_scale(linemeter, angle, line_num).

The default angle is 240 and the default line number is 31.

lv_linemeter_set_range(linemeter, min, max) 関数は、ライン メーターの範囲を設定します。


スケールの角度と線の数は、lv_linemeter_set_scale(linemeter, angle, line_num) で設定できます。

デフォルトの角度は 240 で、デフォルトの線数は 31 です。

戻る : Previous


Angle offset

英文 自動翻訳
By default the scale angle is interpreted symmetrically to the y axis. It results in "standing" line meter.

With lv_linemeter_set_angle_offset an offset can be added the scale angle. It can used e.g to put a quarter line meter into a corner or a half line meter to the right or left side.

デフォルトでは、スケール角度は y 軸に対して対称的に解釈されます。 「立った」ラインメーターになります。

lv_linemeter_set_angle_offset を使用すると、スケール角度にオフセットを追加できます。 たとえば、1/4 ライン メートルをコーナーに配置したり、1/2 ライン メートルを右側または左側に配置したりするために使用できます。

戻る : Previous


Mirror

英文 自動翻訳
By default the Line meter's lines are activated clock-wise.

It can be changed using lv_linemeter_set_mirror(linemeter, true/false).

デフォルトでは、ラインメーターのラインは時計回りにアクティブになっています。

lv_linemeter_set_mirror(linemeter, true/false) を使用して変更できます。

戻る : Previous


Events

英文 自動翻訳
Only the Generic events are sent by the object type.


Learn more about Events.

Generic eventsのみがオブジェクトタイプによって送信されます。


詳細はEventsをご覧ください。

戻る : Previous

Keys

英文 自動翻訳
No Keys are processed by the object type.

Learn more about Keys.

オブジェクトタイプで処理されるキーはありません。

詳細はKeysをご覧ください。

戻る : Previous


Example

Simple Line meter

LVGL Lib docs SimpleLineMeter.png
戻る : Previous

API

戻る : Previous