「App:Library:LVGL:docs:Widgets:Base object」の版間の差分
23行目: | 23行目: | ||
The Base object can be directly used as a simple widget: it's nothing more than a rectangle. In HTML terms, think of it as a <code style="color: #bb0000;"><nowiki><div></nowiki></code>. | The Base object can be directly used as a simple widget: it's nothing more than a rectangle. In HTML terms, think of it as a <code style="color: #bb0000;"><nowiki><div></nowiki></code>. | ||
− | | | + | |ベースオブジェクト」は、画面上のウィジェットの基本的なプロパティを実装したもので、次のようなものです。 |
* 座標 | * 座標 | ||
31行目: | 31行目: | ||
* <font class="goog-text-highlight">「ベースオブジェクト」は、次のようなウィジェットの基本的なプロパティを画面に実装します。</font>''Clickable''、''Scrollable''などの属性。 | * <font class="goog-text-highlight">「ベースオブジェクト」は、次のようなウィジェットの基本的なプロパティを画面に実装します。</font>''Clickable''、''Scrollable''などの属性。 | ||
− | |||
− | + | オブジェクト指向の考え方では、LVGL内の他のすべてのオブジェクトの継承元となる基本クラスです。 | |
− | + | Baseオブジェクトの関数と機能は、他のウィジェットでも使用できます。例:<code style="color: #bb0000;">lv_obj_set_width(slider, 100)</code> | |
+ | |||
+ | |||
+ | Baseオブジェクトは単純なウィジェットとして直接使用できます。これは単なる四角形です。HTMLの用語では、 | ||
+ | |||
+ | <nowiki><div>です。</nowiki> | ||
|} | |} | ||
57行目: | 61行目: | ||
| | | | ||
The object size can be modified on individual axes with <code style="color: #bb0000;">lv_obj_set_width(obj, new_width)</code> and <code style="color: #bb0000;">lv_obj_set_height(obj, new_height)</code>, or both axes can be modified at the same time with <code style="color: #bb0000;">lv_obj_set_size(obj, new_width, new_height)</code>. | The object size can be modified on individual axes with <code style="color: #bb0000;">lv_obj_set_width(obj, new_width)</code> and <code style="color: #bb0000;">lv_obj_set_height(obj, new_height)</code>, or both axes can be modified at the same time with <code style="color: #bb0000;">lv_obj_set_size(obj, new_width, new_height)</code>. | ||
− | | | + | |オブジェクトのサイズは、<code style="color: #bb0000;">lv_obj_set_width(obj, new_width)</code>および<code style="color: #bb0000;">lv_obj_set_height(obj, new_height)</code>を使用して個々の軸上で変更することも、<code style="color: #bb0000;">lv_obj_set_size(obj, new_width, new_height)</code>を使用して両方の軸を同時に変更することもできます。 |
|} | |} | ||
68行目: | 72行目: | ||
| | | | ||
You can set the position relative to the parent with <code style="color: #bb0000;">lv_obj_set_x(obj, new_x)</code> and <code style="color: #bb0000;">lv_obj_set_y(obj, new_y)</code>, or both axes at the same time with <code style="color: #bb0000;">lv_obj_set_pos(obj, new_x, new_y)</code>. | You can set the position relative to the parent with <code style="color: #bb0000;">lv_obj_set_x(obj, new_x)</code> and <code style="color: #bb0000;">lv_obj_set_y(obj, new_y)</code>, or both axes at the same time with <code style="color: #bb0000;">lv_obj_set_pos(obj, new_x, new_y)</code>. | ||
− | |<code style="color: #bb0000;">lv_obj_set_x(obj, new_x)</code> | + | |親からの相対位置は、<code style="color: #bb0000;">lv_obj_set_x(obj, new_x)</code>と<code style="color: #bb0000;">lv_obj_set_y(obj, new_y)</code>、または<code style="color: #bb0000;">lv_obj_set_pos(obj, new_x, new_y)</code>を使用して同時に設定できます。 |
|} | |} | ||
78行目: | 82行目: | ||
|- | |- | ||
| | | | ||
− | You can align the object on its parent with <code style="color: #bb0000;">lv_obj_set_align(obj, LV_ALIGN_...)</code>. After this every x and y setting will be relative to the set alignment mode. For example, this will shift the object by 10;20 px from the center of its parent: | + | You can align the object on its parent with <code style="color: #bb0000;">lv_obj_set_align(obj, LV_ALIGN_...)</code>. |
+ | |||
+ | After this every x and y setting will be relative to the set alignment mode. | ||
+ | |||
+ | For example, this will shift the object by 10;20 px from the center of its parent: | ||
<syntaxhighlight lang="C++" style="border: 1px dashed gray;"> | <syntaxhighlight lang="C++" style="border: 1px dashed gray;"> | ||
lv_obj_set_align(obj, LV_ALIGN_CENTER); | lv_obj_set_align(obj, LV_ALIGN_CENTER); | ||
93行目: | 101行目: | ||
The following align types exist: | The following align types exist: | ||
[[file:LVGL docs widgets obj 01.png|link=https://docs.lvgl.io/8.2/widgets/obj.html#alignment|500px]] | [[file:LVGL docs widgets obj 01.png|link=https://docs.lvgl.io/8.2/widgets/obj.html#alignment|500px]] | ||
− | | | + | |<code style="color: #bb0000;">lv_obj_set_align(obj, LV_ALIGN_...)</code>で、オブジェクトをその親に位置合わせすることができます。 |
+ | この後、すべての x と y の設定は、設定されたアライメントモードに対する相対的なものになります。 | ||
+ | |||
+ | 例えば、これはオブジェクトをその親の中心から 10;20 px ずらすことになります。 | ||
− | + | ||
− | + | あるオブジェクトを他のオブジェクトに合わせるには、次のようにします:<code style="color: #bb0000;">lv_obj_align_to(obj_to_align, obj_referece, LV_ALIGN_..., x, y)</code> | |
− | + | ||
− | |||
− | |||
− | |||
− | + | 例えば、画像の下にテキストを配置する場合: <code style="color: #bb0000;">lv_obj_align_to(text, image, LV_ALIGN_OUT_BOTTOM_MID, 0, 10)</code>となります。 | |
− | + | 以下のアラインタイプが存在します。 | |
(絵) | (絵) | ||
115行目: | 123行目: | ||
|- | |- | ||
| | | | ||
− | You can set a new parent for an object with <code style="color: #bb0000;">lv_obj_set_parent(obj, new_parent)</code>. To get the current parent, use <code style="color: #bb0000;">lv_obj_get_parent(obj)</code>. | + | You can set a new parent for an object with <code style="color: #bb0000;">lv_obj_set_parent(obj, new_parent)</code>. |
+ | |||
+ | To get the current parent, use <code style="color: #bb0000;">lv_obj_get_parent(obj)</code>. | ||
+ | |||
+ | To get a specific child of a parent use <code style="color: #bb0000;">lv_obj_get_child(parent, idx)</code>. | ||
− | + | Some examples for <code style="color: #bb0000;">idx</code>: | |
* <code style="color: #bb0000;">0</code> get the child created first | * <code style="color: #bb0000;">0</code> get the child created first | ||
142行目: | 154行目: | ||
You can swap the position of two objects with <code style="color: #bb0000;">lv_obj_swap(obj1, obj2)</code>. | You can swap the position of two objects with <code style="color: #bb0000;">lv_obj_swap(obj1, obj2)</code>. | ||
− | | | + | |オブジェクトに新しい親を設定するには、 <code style="color: #bb0000;">lv_obj_set_parent(obj, new_parent)</code> を使います。 |
+ | 現在の親を取得するには、 <code style="color: #bb0000;">lv_obj_get_parent(obj)</code> を使用します。 | ||
− | |||
− | + | 親の特定の子を取得するには、<code style="color: #bb0000;">lv_obj_get_child(parent, idx)</code> を使用します。 | |
− | |||
− | |||
− | + | <code style="color: #bb0000;">idx</code> のいくつかの例: | |
+ | |||
+ | *<code style="color: #bb0000;">0</code>子を最初に作成する | ||
+ | *<code style="color: #bb0000;">1</code>子を2番目に作成する | ||
+ | *<code style="color: #bb0000;">-1</code>最後に作成された子を取得します | ||
+ | |||
+ | |||
+ | 子たちはこれを繰り返すことができます: | ||
uint32_t i ; | uint32_t i ; | ||
for (i = 0 i < lv_obj_get_child_cnt (parent )i ++ ) { | for (i = 0 i < lv_obj_get_child_cnt (parent )i ++ ) { | ||
156行目: | 173行目: | ||
/*子供と何かをする*/ | /*子供と何かをする*/ | ||
} | } | ||
− | <code style="color: #bb0000;">lv_obj_get_index(obj)</code> | + | <code style="color: #bb0000;">lv_obj_get_index(obj)</code> は、その親の中のオブジェクトのインデックスを返します。これは、親の中の若い子の数に相当します。 |
+ | |||
+ | |||
+ | <code style="color: #bb0000;">lv_obj_move_foreground(obj)</code> や <code style="color: #bb0000;">lv_obj_move_background(obj)</code> を使えば、オブジェクトを前景に出したり、背景に送ったりすることができます。 | ||
− | + | <code style="color: #bb0000;">lv_obj_move_to_index(obj, index)</code>を用いると、親オブジェクトのインデックスを変更することができます。 | |
− | |||
− | + | <code style="color: #bb0000;">lv_obj_swap(obj1, obj2)</code> を用いると、2つのオブジェクトの位置を入れ替えることができます。 | |
|} | |} | ||
175行目: | 194行目: | ||
− | When you have created a screen like <code style="color: #bb0000;">lv_obj_t * screen = lv_obj_create(NULL)</code>, you can make it active with <code style="color: #bb0000;">lv_scr_load(screen)</code>. The <code style="color: #bb0000;">lv_scr_act()</code> function gives you a pointer to the active screen. | + | When you have created a screen like <code style="color: #bb0000;">lv_obj_t * screen = lv_obj_create(NULL)</code>, you can make it active with <code style="color: #bb0000;">lv_scr_load(screen)</code>. |
+ | |||
+ | The <code style="color: #bb0000;">lv_scr_act()</code> function gives you a pointer to the active screen. | ||
If you have multiple displays, it's important to know that the screen functions operate on the most recently created display or the one explicitly selected with <code style="color: #bb0000;">lv_disp_set_default</code>. | If you have multiple displays, it's important to know that the screen functions operate on the most recently created display or the one explicitly selected with <code style="color: #bb0000;">lv_disp_set_default</code>. | ||
181行目: | 202行目: | ||
To get an object's screen use the <code style="color: #bb0000;">lv_obj_get_screen(obj)</code> function. | To get an object's screen use the <code style="color: #bb0000;">lv_obj_get_screen(obj)</code> function. | ||
− | | | + | |LVGLオブジェクト階層の最上位レベルには、ディスプレイデバイス (物理ディスプレイまたはシミュレータ) のドライバを表すディスプレイがあります。ディスプレイには、1つまたは複数の画面を関連付けることができます。各画面には、表示全体をカバーするレイアウトを表すグラフィカルウィジェットのオブジェクトの階層が含まれています。 |
+ | |||
+ | |||
+ | <code style="color: #bb0000;">lv_obj_t * screen = lv_obj_create(NULL)</code> のようなスクリーンを作成したら、<code style="color: #bb0000;">lv_scr_load(screen)</code> を使ってそれをアクティブにできます。<code style="color: #bb0000;">lv_scr_act()</code>関数は、アクティブなスクリーンへのポインタを返します。 | ||
+ | |||
+ | 複数のディスプレイを使用する場合、画面関数は最後に作成されたディスプレイ、または<code style="color: #bb0000;">lv_disp_set_default</code>で明示的に選択されたディスプレイで動作することを知っておくことが重要です。 | ||
+ | |||
+ | |||
+ | オブジェクトのスクリーンを取得するには、<code style="color: #bb0000;">lv_obj_get_screen(obj)</code> 関数を使用します。 | ||
− | |||
− | |||
− | |||
|} | |} | ||
203行目: | 229行目: | ||
Read the Event overview to learn more about events. | Read the Event overview to learn more about events. | ||
− | | | + | |オブジェクトにイベントコールバックを設定するには、<code style="color: #bb0000;">lv_obj_add_event_cb(obj, event_cb, LV_EVENT_..., user_data)</code>を使い、 |
+ | イベントを手動でオブジェクトに送信するには、<code style="color: #bb0000;">lv_event_send(obj, LV_EVENT_..., param)</code>を使います。 | ||
− | + | イベントの詳細については、 「イベントの概要」 を参照してください。 | |
− | |||
− | |||
|} | |} | ||
223行目: | 248行目: | ||
The base objects use <code style="color: #bb0000;">LV_PART_MAIN</code> style properties and <code style="color: #bb0000;">LV_PART_SCROLLBAR</code> with the typical background style properties. | The base objects use <code style="color: #bb0000;">LV_PART_MAIN</code> style properties and <code style="color: #bb0000;">LV_PART_SCROLLBAR</code> with the typical background style properties. | ||
− | | | + | |必ず「スタイルの概要」をお読みください。ここでは、最も重要な機能についてのみ説明します。 |
+ | <code style="color: #bb0000;">lv_obj_add_style(obj, &new_style, selector)</code> 関数で、オブジェクトに新しいスタイルを追加できます。 <code style="color: #bb0000;">selector</code> は、part と state の OR の組み合わせです。例:<code style="color: #bb0000;">LV_PART_SCROLLBAR | LV_STATE_PRESSED</code>。 | ||
− | + | ベースオブジェクトは<code style="color: #bb0000;">LV_PART_MAIN</code>スタイルプロパティを使用し、<code style="color: #bb0000;">LV_PART_SCROLLBAR</code>は典型的な背景スタイルプロパティを使用します。 | |
− | |||
− | |||
|} | |} | ||
344行目: | 368行目: | ||
<code style="color: #bb0000;">lv_obj_is_focused(obj)</code> returns if the object is currently focused on its group or not. If the object is not added to a group, <code style="color: #bb0000;">false</code> will be returned. | <code style="color: #bb0000;">lv_obj_is_focused(obj)</code> returns if the object is currently focused on its group or not. If the object is not added to a group, <code style="color: #bb0000;">false</code> will be returned. | ||
− | | | + | |グループについての詳細は、入力デバイスの概要を参照してください。 |
− | + | オブジェクトは <code style="color: #bb0000;">lv_group_add_obj(group, obj)</code> でグループに追加され、 <code style="color: #bb0000;">lv_obj_get_group(obj)</code> でオブジェクトがどのグループに属しているかを確認することができます。 | |
− | |||
− | <code style="color: #bb0000;">lv_obj_is_focused(obj)</code> | + | <code style="color: #bb0000;">lv_obj_is_focused(obj)</code> は、そのオブジェクトが現在そのグループにフォーカスされているかどうかを返します。オブジェクトがグループに加わっていない場合、<code style="color: #bb0000;">false</code>が返されます。 |
|} | |} | ||
359行目: | 382行目: | ||
| | | | ||
By default, the objects can be clicked only within their bounding area. However, this can be extended with <code style="color: #bb0000;">lv_obj_set_ext_click_area(obj, size)</code>. | By default, the objects can be clicked only within their bounding area. However, this can be extended with <code style="color: #bb0000;">lv_obj_set_ext_click_area(obj, size)</code>. | ||
− | | | + | |デフォルトでは、オブジェクトは境界領域内でのみクリックできます。ただし、これは。<code style="color: #bb0000;">lv_obj_set_ext_click_area(obj, size)</code>で拡張できます。 |
|} | |} | ||
386行目: | 409行目: | ||
Learn more about Events. | Learn more about Events. | ||
| | | | ||
− | * <code style="color: #bb0000;">LV_EVENT_VALUE_CHANGED</code> | + | *<code style="color: #bb0000;">LV_EVENT_VALUE_CHANGED</code> : <code style="color: #bb0000;">LV_OBJ_FLAG_CHECKABLE</code>フラグが有効になっており、オブジェクトがクリックされた場合 (チェックされた状態との遷移時) <code style="color: #bb0000;">LV_EVENT_DRAW_PART_BEGIN</code>と <code style="color: #bb0000;">LV_EVENT_DRAW_PART_END</code> は、以下のタイプで送信されます。 |
− | + | **<code style="color: #bb0000;">LV_OBJ_DRAW_PART_RECTANGLE</code>メインの長方形 | |
− | ** <code style="color: #bb0000;">LV_OBJ_DRAW_PART_RECTANGLE</code>メインの長方形 | + | ***<code style="color: #bb0000;">part</code>: <code style="color: #bb0000;">LV_PART_MAIN</code> |
− | *** <code style="color: #bb0000;">part</code>: <code style="color: #bb0000;">LV_PART_MAIN</code> | + | ***<code style="color: #bb0000;">rect_dsc</code> |
− | *** <code style="color: #bb0000;">rect_dsc</code> | + | ***<code style="color: #bb0000;">draw_area</code>:長方形の面積 |
− | *** <code style="color: #bb0000;">draw_area</code>:長方形の面積 | + | **<code style="color: #bb0000;">LV_OBJ_DRAW_PART_BORDER_POST</code>style<code style="color: #bb0000;">border_post</code>プロパティが<code style="color: #bb0000;">true</code> |
− | ** <code style="color: #bb0000;">LV_OBJ_DRAW_PART_BORDER_POST</code>style<code style="color: #bb0000;">border_post</code>プロパティが<code style="color: #bb0000;">true</code> | + | ***<code style="color: #bb0000;">part</code>:<code style="color: #bb0000;">LV_PART_MAIN</code> |
− | *** <code style="color: #bb0000;">part</code>:<code style="color: #bb0000;">LV_PART_MAIN</code> | + | ***<code style="color: #bb0000;">rect_dsc</code> |
− | *** <code style="color: #bb0000;">rect_dsc</code> | + | ***<code style="color: #bb0000;">draw_area</code>:長方形の面積 |
− | *** <code style="color: #bb0000;">draw_area</code>:長方形の面積 | + | **<code style="color: #bb0000;">LV_OBJ_DRAW_PART_SCROLLBAR</code>スクロールバー |
− | ** <code style="color: #bb0000;">LV_OBJ_DRAW_PART_SCROLLBAR</code>スクロールバー | + | ***<code style="color: #bb0000;">part</code>:<code style="color: #bb0000;">LV_PART_SCROLLBAR</code> |
− | *** <code style="color: #bb0000;">part</code>:<code style="color: #bb0000;">LV_PART_SCROLLBAR</code> | + | ***<code style="color: #bb0000;">rect_dsc</code> |
− | *** <code style="color: #bb0000;">rect_dsc</code> | + | ***<code style="color: #bb0000;">draw_area</code>:長方形の面積 |
− | *** <code style="color: #bb0000;">draw_area</code>:長方形の面積 | + | |
イベントの詳細をご覧ください。 | イベントの詳細をご覧ください。 |
2022年6月29日 (水) 18:08時点における版
https://docs.lvgl.io/8.2/widgets/index.html
Base object (lv_obj)
Overview
英文 | 自動翻訳 |
---|---|
The 'Base Object' implements the basic properties of widgets on a screen, such as:
The functions and functionalities of the Base object can be used with other widgets too. For example
|
ベースオブジェクト」は、画面上のウィジェットの基本的なプロパティを実装したもので、次のようなものです。
Baseオブジェクトの関数と機能は、他のウィジェットでも使用できます。例:
<div>です。 |
Coordinates
英文 | 自動翻訳 |
---|---|
Only a small subset of coordinate settings is described here. To see all the features of LVGL (padding, coordinates in styles, layouts, etc) visit the Coordinates page. |
ここでは、座標設定のごく一部についてのみ説明します。LVGLのすべての機能(パディング、スタイルの座標、レイアウトなど)を確認するには、[座標]ページにアクセスしてください。 |
Size
英文 | 自動翻訳 |
---|---|
The object size can be modified on individual axes with |
オブジェクトのサイズは、lv_obj_set_width(obj, new_width) およびlv_obj_set_height(obj, new_height) を使用して個々の軸上で変更することも、lv_obj_set_size(obj, new_width, new_height) を使用して両方の軸を同時に変更することもできます。
|
Position
英文 | 自動翻訳 |
---|---|
You can set the position relative to the parent with |
親からの相対位置は、lv_obj_set_x(obj, new_x) とlv_obj_set_y(obj, new_y) 、またはlv_obj_set_pos(obj, new_x, new_y) を使用して同時に設定できます。
|
Alignment
英文 | 自動翻訳 |
---|---|
You can align the object on its parent with After this every x and y setting will be relative to the set alignment mode. For example, this will shift the object by 10;20 px from the center of its parent:
lv_obj_set_align(obj, LV_ALIGN_CENTER);
lv_obj_set_pos(obj, 10, 20);
//Or in one function
lv_obj_align(obj, LV_ALIGN_CENTER, 10, 20);
To align one object to another use:
|
lv_obj_set_align(obj, LV_ALIGN_...) で、オブジェクトをその親に位置合わせすることができます。
この後、すべての x と y の設定は、設定されたアライメントモードに対する相対的なものになります。 例えば、これはオブジェクトをその親の中心から 10;20 px ずらすことになります。
以下のアラインタイプが存在します。 (絵) |
Parents and children
英文 | 自動翻訳 |
---|---|
You can set a new parent for an object with To get the current parent, use
Some examples for
uint32_t i;
for(i = 0i < lv_obj_get_child_cnt(parent)i++) {
lv_obj_t * child = lv_obj_get_child(parent, i);
/*Do something with child*/
}
You can change the index of an object in its parent using
|
オブジェクトに新しい親を設定するには、 lv_obj_set_parent(obj, new_parent) を使います。
現在の親を取得するには、
uint32_t i ; for (i = 0 i < lv_obj_get_child_cnt (parent )i ++ ) { lv_obj_t * child = lv_obj_get_child (parent 、 i ); /*子供と何かをする*/ }
|
Display and Screens
英文 | 自動翻訳 |
---|---|
At the highest level of the LVGL object hierarchy is the display which represents the driver for a display device (physical display or simulator). A display can have one or more screens associated with it. Each screen contains a hierarchy of objects for graphical widgets representing a layout that covers the entire display.
The If you have multiple displays, it's important to know that the screen functions operate on the most recently created display or the one explicitly selected with
|
LVGLオブジェクト階層の最上位レベルには、ディスプレイデバイス (物理ディスプレイまたはシミュレータ) のドライバを表すディスプレイがあります。ディスプレイには、1つまたは複数の画面を関連付けることができます。各画面には、表示全体をカバーするレイアウトを表すグラフィカルウィジェットのオブジェクトの階層が含まれています。
複数のディスプレイを使用する場合、画面関数は最後に作成されたディスプレイ、または
|
Events
英文 | 自動翻訳 |
---|---|
To set an event callback for an object, use
Read the Event overview to learn more about events. |
オブジェクトにイベントコールバックを設定するには、lv_obj_add_event_cb(obj, event_cb, LV_EVENT_..., user_data) を使い、
イベントを手動でオブジェクトに送信するには、 イベントの詳細については、 「イベントの概要」 を参照してください。 |
Styles
英文 | 自動翻訳 |
---|---|
Be sure to read the Style overview. Here only the most essential functions are described.
The base objects use |
必ず「スタイルの概要」をお読みください。ここでは、最も重要な機能についてのみ説明します。
ベースオブジェクトは |
Flags
英文 | 自動翻訳 |
---|---|
/*Hide on object*/
lv_obj_add_flag(obj, LV_OBJ_FLAG_HIDDEN);
/*Make an object non-clickable*/
lv_obj_clear_flag(obj, LV_OBJ_FLAG_CLICKABLE);
/*Hide on object*/
lv_obj_add_flag(obj, LV_OBJ_FLAG_HIDDEN);
/*Make an object non-clickable*/
lv_obj_clear_flag(obj, LV_OBJ_FLAG_CLICKABLE);
|
/*オブジェクトを非表示にする*/
lv_obj_add_flag (obj 、 LV_OBJ_FLAG_HIDDEN );
/*オブジェクトをクリック不可にする*/
lv_obj_clear_flag (obj 、 LV_OBJ_FLAG_CLICKABLE );
いくつかの例: /*オブジェクトを非表示にする*/
lv_obj_add_flag (obj 、 LV_OBJ_FLAG_HIDDEN );
/*オブジェクトをクリック不可にする*/
lv_obj_clear_flag (obj 、 LV_OBJ_FLAG_CLICKABLE );
|
Groups
英文 | 自動翻訳 |
---|---|
Read the Input devices overview to learn more about Groups.
|
グループについての詳細は、入力デバイスの概要を参照してください。
オブジェクトは
|
Extended click area
英文 | 自動翻訳 |
---|---|
By default, the objects can be clicked only within their bounding area. However, this can be extended with |
デフォルトでは、オブジェクトは境界領域内でのみクリックできます。ただし、これは。lv_obj_set_ext_click_area(obj, size) で拡張できます。
|
Events
英文 | 自動翻訳 |
---|---|
Learn more about Events. |
|
Keys
英文 | 自動翻訳 |
---|---|
If If Learn more about Keys. |
LV_OBJ_FLAG_CHECKABLE が有効になっLV_KEY_RIGHT ている場合はLV_KEY_UP 、オブジェクトをオンにし、LV_KEY_LEFT オフLV_KEY_DOWN にします。
が有効になっているが、オブジェクトが編集可能でない場合(ウィジェットクラスで宣言されているように) 、 キーの詳細をご覧ください。 |
Example
Base objects with custom styles
英文 | 自動翻訳 |
---|---|
Make an object draggable |
API
英文 | 自動翻訳 |
---|---|
Typedefs typedef uint16_t lv_state_t typedef uint32_t lv_part_t typedef uint32_t lv_obj_flag_t typedef struct _lv_obj_t lv_obj_t Enums enum [anonymous]
enum [anonymous]
enum [anonymous]
enum lv_obj_draw_part_type_t
Functions void lv_init(void)
void lv_deinit(void)
bool lv_is_initialized(void)
lv_obj_t *lv_obj_create(lv_obj_t *parent)
void lv_obj_add_flag(lv_obj_t *obj, lv_obj_flag_t f)
void lv_obj_clear_flag(lv_obj_t *obj, lv_obj_flag_t f)
void lv_obj_add_state(lv_obj_t *obj, lv_state_t state)
void lv_obj_clear_state(lv_obj_t *obj, lv_state_t state)
static inline void lv_obj_set_user_data(lv_obj_t *obj, void *user_data)
bool lv_obj_has_flag(const lv_obj_t *obj, lv_obj_flag_t f)
bool lv_obj_has_flag_any(const lv_obj_t *obj, lv_obj_flag_t f)
lv_state_t lv_obj_get_state(const lv_obj_t *obj)
bool lv_obj_has_state(const lv_obj_t *obj, lv_state_t state)
void *lv_obj_get_group(const lv_obj_t *obj)
static inline void *lv_obj_get_user_data(lv_obj_t *obj)
void lv_obj_allocate_spec_attr(lv_obj_t *obj)
bool lv_obj_check_type(const lv_obj_t *obj, const lv_obj_class_t *class_p)
bool lv_obj_has_class(const lv_obj_t *obj, const lv_obj_class_t *class_p)
const lv_obj_class_t *lv_obj_get_class(const lv_obj_t *obj)
bool lv_obj_is_valid(const lv_obj_t *obj)
static inline lv_coord_t lv_obj_dpx(const lv_obj_t *obj, lv_coord_t n)
Variables const lv_obj_class_t lv_obj_class
struct _lv_obj_spec_attr_t
|
typedef uint16_t lv_state_t typedef uint32_t lv_part_t typedef uint32_t lv_obj_flag_t typedef struct _lv_obj_t lv_obj_t 列挙型 列挙型[匿名]
列挙型[匿名]
列挙型[匿名]
列挙型lv_obj_draw_part_type_t
機能 void lv_init(void)
void lv_deinit(void)
bool lv_is_initialized(void)
lv_obj_t * lv_obj_create(lv_obj_t * parent)
void lv_obj_add_flag(lv_obj_t * obj、lv_obj_flag_t f)
void lv_obj_clear_flag(lv_obj_t * obj、lv_obj_flag_t f)
void lv_obj_add_state(lv_obj_t * obj、lv_state_t state)
void lv_obj_clear_state(lv_obj_t * obj、lv_state_t state)
static inline void lv_obj_set_user_data(lv_obj_t * obj、void * user_data)
bool lv_obj_has_flag(const lv_obj_t * obj、lv_obj_flag_t f)
bool lv_obj_has_flag_any(const lv_obj_t * obj、lv_obj_flag_t f)
lv_state_t lv_obj_get_state(const lv_obj_t * obj)
bool lv_obj_has_state(const lv_obj_t * obj、lv_state_t state)
void * lv_obj_get_group(const lv_obj_t * obj)
static inline void * lv_obj_get_user_data(lv_obj_t * obj)
void lv_obj_allocate_spec_attr(lv_obj_t * obj)
bool lv_obj_check_type(const lv_obj_t * obj、const lv_obj_class_t * class_p)
bool lv_obj_has_class(const lv_obj_t * obj、const lv_obj_class_t * class_p)
const lv_obj_class_t * lv_obj_get_class(const lv_obj_t * obj)
bool lv_obj_is_valid(const lv_obj_t * obj)
静的インラインlv_coord_tlv_obj_dpx(const lv_obj_t * obj、lv_coord_t n)
変数 const lv_obj_class_t lv_obj_class
struct _lv_obj_spec_attr_t
struct _lv_obj_t
|