「App:Library:LVGL:docs:Widgets:Gauge (lv gauge)」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
19行目: 19行目:
 
!自動翻訳
 
!自動翻訳
 
|-
 
|-
|The Gauge's main part is called <code>LV_GAUGE_PART_MAIN</code>. It draws a background using the typical background style properties and "minor" scale lines using the ''line'' and ''scale'' style properties.  
+
|The Gauge's main part is called <code style="color: #bb0000;">LV_GAUGE_PART_MAIN</code>. It draws a background using the typical background style properties and "minor" scale lines using the ''line'' and ''scale'' style properties.  
  
 
It also uses the ''text'' properties to set the style of the scale labels. ''pad_inner'' is used to set space between the scale lines and the scale labels.
 
It also uses the ''text'' properties to set the style of the scale labels. ''pad_inner'' is used to set space between the scale lines and the scale labels.
  
  
<code>LV_GAUGE_PART_MAJOR</code> is a virtual part which describes the major scale lines (where labels are added) using the ''line'' and ''scale'' style properties.
+
<code style="color: #bb0000;">LV_GAUGE_PART_MAJOR</code> is a virtual part which describes the major scale lines (where labels are added) using the ''line'' and ''scale'' style properties.
  
  
<code>LV_GAUGE_PART_NEEDLE</code> is also virtual part and it describes the needle(s) via the ''line'' style properties.  
+
<code style="color: #bb0000;">LV_GAUGE_PART_NEEDLE</code> is also virtual part and it describes the needle(s) via the ''line'' style properties.  
  
 
The ''size'' and the typical background properties are used to describe a rectangle (or circle) in the pivot point of the needle(s).  
 
The ''size'' and the typical background properties are used to describe a rectangle (or circle) in the pivot point of the needle(s).  
  
 
''pad_inner'' is used to to make the needle(s) smaller than the outer radius of the scale lines.
 
''pad_inner'' is used to to make the needle(s) smaller than the outer radius of the scale lines.
|ゲージの主要部分は、<code>'''LV_GAUGE_PART_MAIN'''</code>と呼ばれます。 典型的なバックグラウンドスタイルのプロパティと、ラインおよびスケールスタイルのプロパティを使用して「マイナー」スケールラインを使用して背景を描画します。
+
|ゲージの主要部分は、<code style="color: #bb0000;">'''LV_GAUGE_PART_MAIN'''</code>と呼ばれます。 典型的なバックグラウンドスタイルのプロパティと、ラインおよびスケールスタイルのプロパティを使用して「マイナー」スケールラインを使用して背景を描画します。
  
 
また、テキストプロパティを使用して、スケールラベルのスタイルを設定します。 PAD_INNERは、スケールラインとスケールラベルの間にスペースを設定するために使用されます。
 
また、テキストプロパティを使用して、スケールラベルのスタイルを設定します。 PAD_INNERは、スケールラインとスケールラベルの間にスペースを設定するために使用されます。
  
  
<code>LV_GAUGE_PART_MAJOR</code>は、ラインおよびスケールスタイルのプロパティを使用して、主要なスケールライン(ラベルが追加されている場所)を説明する仮想部品です。
+
<code style="color: #bb0000;">LV_GAUGE_PART_MAJOR</code>は、ラインおよびスケールスタイルのプロパティを使用して、主要なスケールライン(ラベルが追加されている場所)を説明する仮想部品です。
  
  
<code>LV_GAUGE_PART_NEEDLE</code>も仮想部品であり、ラインスタイルのプロパティを介して針を説明しています。
+
<code style="color: #bb0000;">LV_GAUGE_PART_NEEDLE</code>も仮想部品であり、ラインスタイルのプロパティを介して針を説明しています。
  
 
サイズと典型的な背景特性は、針のピボットポイントの長方形(または円)を記述するために使用されます。
 
サイズと典型的な背景特性は、針のピボットポイントの長方形(または円)を記述するために使用されます。
47行目: 47行目:
 
|}
 
|}
 
:[[App:Library:LVGL:docs:Widgets|戻る : Previous]]
 
:[[App:Library:LVGL:docs:Widgets|戻る : Previous]]
 
  
 
== Usage ==
 
== Usage ==

2022年8月31日 (水) 15:35時点における版

https://docs.lvgl.io/latest/en/html/widgets/gauge.html

Gauge (lv_gauge)

Overview

英文 自動翻訳

The gauge is a meter with scale labels and one or more needles.

ゲージは、スケールラベルと1つ以上の針を備えたメーターです。
戻る : Previous


Parts and Styles

英文 自動翻訳
The Gauge's main part is called LV_GAUGE_PART_MAIN. It draws a background using the typical background style properties and "minor" scale lines using the line and scale style properties.

It also uses the text properties to set the style of the scale labels. pad_inner is used to set space between the scale lines and the scale labels.


LV_GAUGE_PART_MAJOR is a virtual part which describes the major scale lines (where labels are added) using the line and scale style properties.


LV_GAUGE_PART_NEEDLE is also virtual part and it describes the needle(s) via the line style properties.

The size and the typical background properties are used to describe a rectangle (or circle) in the pivot point of the needle(s).

pad_inner is used to to make the needle(s) smaller than the outer radius of the scale lines.

ゲージの主要部分は、LV_GAUGE_PART_MAINと呼ばれます。 典型的なバックグラウンドスタイルのプロパティと、ラインおよびスケールスタイルのプロパティを使用して「マイナー」スケールラインを使用して背景を描画します。

また、テキストプロパティを使用して、スケールラベルのスタイルを設定します。 PAD_INNERは、スケールラインとスケールラベルの間にスペースを設定するために使用されます。


LV_GAUGE_PART_MAJORは、ラインおよびスケールスタイルのプロパティを使用して、主要なスケールライン(ラベルが追加されている場所)を説明する仮想部品です。


LV_GAUGE_PART_NEEDLEも仮想部品であり、ラインスタイルのプロパティを介して針を説明しています。

サイズと典型的な背景特性は、針のピボットポイントの長方形(または円)を記述するために使用されます。

PAD_INNERは、スケールラインの外側半径よりも針を小さくするために使用されます。

戻る : Previous

Usage

Set value and needles

英文 自動翻訳
戻る : Previous


Scale

英文 自動翻訳
戻る : Previous


Range

英文 自動翻訳
戻る : Previous


Needle image

英文 自動翻訳
戻る : Previous


Critical value

英文 自動翻訳
戻る : Previous


Events

英文 自動翻訳
戻る : Previous

Keys

英文 自動翻訳
戻る : Previous


Example

Simple Gauge

英文 自動翻訳
戻る : Previous


API

英文 自動翻訳
戻る : Previous