App:Library:LVGL:docs:Widgets:Line (lv line)
https://docs.lvgl.io/8.2/widgets/core/arc.html
Line (lv_line)
Overview
英文 | 自動翻訳 |
---|---|
The Line object is capable of drawing straight lines between a set of points. |
ラインオブジェクトは、一連の点間に直線を引くことができる。 |
Parts and Styles
英文 | 自動翻訳 |
---|---|
|
|
Usage
Set points
英文 | 自動翻訳 |
---|---|
The points have to be stored in an |
ポイントは lv_point_t の配列に格納し、 lv_line_set_points(lines, point_array, point_cnt) 関数でオブジェクトに渡さなければなりません。
|
Auto-size
英文 | 自動翻訳 |
---|---|
By default, the Line's width and height are set to This means it will automatically set its size to fit all the points. If the size is set explicitly, parts on the line may not be visible. |
デフォルトでは、Lineの幅と高さはLV_SIZE_CONTENT に設定されています。
これは、すべてのポイントにフィットするように自動的にサイズを設定することを意味します。 サイズを明示的に設定した場合、ライン上のパーツが見えなくなることがあります。 |
Invert y
英文 | 自動翻訳 |
---|---|
By default, the y == 0 point is in the top of the object. It might be counter-intuitive in some cases so the y coordinates can be inverted with In this case, y == 0 will be the bottom of the object. y invert is disabled by default. |
デフォルトでは、y==0点はオブジェクトの上部にあります。これは直感に反する場合があるので、lv_line_set_y_invert(line, true) で y 座標を反転させることができます。
この場合、y==0はオブジェクトの底になります。yの反転はデフォルトでは無効になっています。 |
Events
英文 | 自動翻訳 |
---|---|
Only the Generic events are sent by the object type. See the events of the Base object too. Learn more about Events. |
汎用イベントのみがオブジェクトタイプによって送信されます。
Baseオブジェクトのイベントも参照してください。 イベントの詳細を確認してください。 |
Keys
英文 | 自動翻訳 |
---|---|
No Keys are processed by the object type. Learn more about Keys. |
オブジェクトタイプによって処理されるキーはありません。
キーの詳細を確認してください。 |
Example
英文 | 自動翻訳 |
---|---|
Simple Line |
API
英文 | 自動翻訳 |
---|---|
Functions lv_obj_t *lv_line_create(lv_obj_t *parent)
void lv_line_set_points(lv_obj_t *obj, const lv_point_t points[], uint16_t point_num)
void lv_line_set_y_invert(lv_obj_t *obj, bool en)
bool lv_line_get_y_invert(const lv_obj_t *obj)
Variables const lv_obj_class_t lv_line_class struct lv_line_t
|
lv_obj_t * lv_line_create(lv_obj_t * parent)
void lv_line_set_points(lv_obj_t * obj、const lv_point_t points []、uint16_t point_num)
void lv_line_set_y_invert(lv_obj_t * obj、bool en)
bool lv_line_get_y_invert(const lv_obj_t * obj)
変数 const lv_obj_class_t lv_line_class struct lv_line_t
|