|
|
(同じ利用者による、間の51版が非表示) |
1行目: |
1行目: |
| + | https://docs.lvgl.io/latest/en/html/widgets/obj.html |
| + | |
| https://docs.lvgl.io/8.2/widgets/index.html | | https://docs.lvgl.io/8.2/widgets/index.html |
− | __NOTOC__
| + | |
| + | |
| + | = Base object (lv_obj) = |
| + | == Overview == |
| {| class="wikitable" | | {| class="wikitable" |
| !英文 | | !英文 |
6行目: |
11行目: |
| |- | | |- |
| | | | | |
− | |
| |
− | |}
| |
− |
| |
− |
| |
− |
| |
− | = Base object (lv_obj) =
| |
− |
| |
− | == Overview ==
| |
| The 'Base Object' implements the basic properties of widgets on a screen, such as: | | The 'Base Object' implements the basic properties of widgets on a screen, such as: |
| | | |
22行目: |
19行目: |
| * attributes like ''Clickable'', ''Scrollable'', etc. | | * attributes like ''Clickable'', ''Scrollable'', etc. |
| | | |
− | In object-oriented thinking, it is the base class from which all other objects in LVGL are inherited.
| |
| | | |
− | The functions and functionalities of the Base object can be used with other widgets too. For example <code>lv_obj_set_width(slider, 100)</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><nowiki><div></nowiki></code>. | + | In object-oriented thinking, it is the base class from which all other objects in LVGL are inherited. |
| + | |
| + | This, among another things, helps reduce code duplication. |
| + | |
| + | The functions and functionalities of Base object can be used with other widgets too. For example <code style="color: #bb0000;">lv_obj_set_width(slider, 100)</code> |
| + | |
| + | |
| + | The Base object can be directly used as a simple widgets. It nothing else then a rectangle. |
| + | |ベースオブジェクト」は、画面上のウィジェットの基本的なプロパティを実装したもので、次のようなものです。 |
| + | |
| + | * 座標 |
| + | * 親オブジェクト |
| + | * 子供 |
| + | * スタイルが含まれています |
| + | *''Clickable''、''Scrollable''などの属性。 |
| + | |
| + | |
| + | |
| + | オブジェクト指向の考え方では、LVGL の他のすべてのオブジェクトが継承される基本クラスです。 |
| + | |
| + | これはコードの重複を減らすのに役立ちます。 |
| + | |
| + | |
| + | |
| + | Base オブジェクトの関数と機能は、他のウィジェットでも使用できます。 例えば <code style="color: #bb0000;">lv_obj_set_width(slider, 100)</code> |
| + | |
| + | |
| + | |
| + | Base オブジェクトは、単純なウィジェットとして直接使用できます。 長方形に他なりません。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| | | |
| === Coordinates === | | === 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.
| |
| | | |
| ==== Size ==== | | ==== Size ==== |
− | The object size can be modified on individual axes with <code>lv_obj_set_width(obj, new_width)</code> and <code>lv_obj_set_height(obj, new_height)</code>, or both axes can be modified at the same time with <code>lv_obj_set_size(obj, new_width, new_height)</code>. | + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | 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>. |
| + | |
| + | |
| + | Styles can add Margin to the objects. Margin tells that "I want this space around me". To set width or height reduced by the margin <code style="color: #bb0000;">lv_obj_set_width_margin(obj, new_width)</code> or <code style="color: #bb0000;">lv_obj_set_height_margin(obj, new_height)</code>. In more exact way: <code style="color: #bb0000;">new_width = left_margin + object_width + right_margin</code>. |
| + | |
| + | |
| + | To get the width or height which includes the margins use <code style="color: #bb0000;">lv_obj_get_width/height_margin(obj)</code>. |
| + | |
| + | |
| + | |
| + | Styles can add Padding to the object as well. Padding means "I don't want my children too close to my sides, so keep this space". |
| + | |
| + | To set width or height reduced by the padding <code style="color: #bb0000;">lv_obj_set_width_fit(obj, new_width)</code> or <code style="color: #bb0000;">lv_obj_set_height_fit(obj, new_height)</code>. |
| + | |
| + | In a more exact way: <code style="color: #bb0000;">new_width = left_pad + object_width + right_pad</code> |
| + | |
| + | To get the width or height which is REDUCED by padding use <code style="color: #bb0000;">lv_obj_get_width/height_fit(obj)</code>. |
| + | |
| + | It can be considered the "useful size of the object". |
| + | |
| + | |
| + | |
| + | Margin and padding gets important when Layout or Auto-fit is used by other widgets. |
| + | |オブジェクトのサイズは、<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>を使用して両方の軸を同時に変更することもできます。 |
| + | |
| + | |
| + | |
| + | スタイルは、オブジェクトに余白を追加できます。 マージンは「自分の周りにこのスペースが欲しい」と語っています。 マージン <code style="color: #bb0000;">lv_obj_set_width_margin(obj, new_width)</code>または <code style="color: #bb0000;">lv_obj_set_height_margin(obj, new_height)</code> だけ縮小された幅または高さを設定します。 より正確には、<code style="color: #bb0000;">new_width = left_margin + object_width + right_margin</code> です。 |
| + | |
| + | |
| + | |
| + | マージンを含む幅または高さを取得するには、<code style="color: #bb0000;">lv_obj_get_width/height_margin(obj)</code>を使用します。 |
| + | |
| + | |
| + | |
| + | スタイルは、オブジェクトにパディングを追加することもできます。 パディングとは、「子供たちを脇に近づけたくないので、このスペースを確保してください」という意味です。 |
| + | |
| + | パディング <code style="color: #bb0000;">lv_obj_set_width_fit(obj, new_width)</code> または <code style="color: #bb0000;">lv_obj_set_height_fit(obj, new_height)</code>によって縮小された幅または高さを設定します。 |
| + | |
| + | より正確な方法: <code style="color: #bb0000;">new_width = left_pad + object_width + right_pad</code> |
| + | |
| + | パディングによって削減された幅または高さを取得するには、<code style="color: #bb0000;">lv_obj_get_width/height_fit(obj)</code>を使用します。 |
| + | |
| + | これは「オブジェクトの有用なサイズ」と見なすことができます。 |
| + | |
| + | |
| + | |
| + | レイアウトまたは自動調整が他のウィジェットで使用されている場合、マージンとパディングが重要になります。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| | | |
| ==== Position ==== | | ==== Position ==== |
− | You can set the position relative to the parent with <code>lv_obj_set_x(obj, new_x)</code> and <code>lv_obj_set_y(obj, new_y)</code>, or both axes at the same time with <code>lv_obj_set_pos(obj, new_x, new_y)</code>. | + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | 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_y(obj, new_y)</code>、または<code style="color: #bb0000;">lv_obj_set_pos(obj, new_x, new_y)</code>を使用して同時に設定できます。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| | | |
| ==== Alignment ==== | | ==== Alignment ==== |
− | You can align the object on its parent with <code>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: | + | {| class="wikitable" |
− | lv_obj_set_align(obj, LV_ALIGN_CENTER);
| + | !英文 |
− | lv_obj_set_pos(obj, 10, 20);
| + | !自動翻訳 |
− |
| + | |- |
− | //Or in one function
| + | |You can align the object to another with <code style="color: #bb0000;">lv_obj_align(obj, obj_ref, LV_ALIGN_..., x_ofs, y_ofs)</code>. |
− | lv_obj_align(obj, LV_ALIGN_CENTER, 10, 20);
| + | |
− | To align one object to another use: <code>lv_obj_align_to(obj_to_align, obj_referece, LV_ALIGN_..., x, y)</code>
| + | * <code style="color: #bb0000;">obj</code> is the object to align. |
| + | * <code style="color: #bb0000;">obj_ref</code> is a reference object. <code style="color: #bb0000;">obj</code> will be aligned to it. If <code style="color: #bb0000;">obj_ref = NULL</code>, then the parent of <code style="color: #bb0000;">obj</code> will be used. |
| + | * The third argument is the ''type'' of alignment. These are the possible options: |
| + | |<code style="color: #bb0000;">lv_obj_align(obj, obj_ref, LV_ALIGN_..., x_ofs, y_ofs)</code> を使用して、オブジェクトを別のオブジェクトに位置合わせできます。 |
| + | |
| + | *<code style="color: #bb0000;">obj</code> は整列するオブジェクトです。 |
| + | *<code style="color: #bb0000;">obj_ref</code> は参照オブジェクトです。 <code style="color: #bb0000;">obj</code> がそれに合わせられます。 <code style="color: #bb0000;">obj_ref = NULL</code> の場合、<code style="color: #bb0000;">obj</code> の親が使用されます。 |
| + | * 3 番目の引数は、配置のタイプです。 可能なオプションは次のとおりです。 |
| + | |- |
| + | | colspan="2" |[[file:LVGL Lib docs obj.png|link=https://docs.lvgl.io/latest/en/html/widgets/obj.html#base-objects-with-custom-styles]] |
| + | |- |
| + | | |
| + | * The alignment types build like <code style="color: #bb0000;">LV_ALIGN_OUT_TOP_MID</code>. |
| + | * The last two arguments allow you to shift the object by a specified number of pixels after aligning it. |
| + | | |
| + | * 配置タイプは <code style="color: #bb0000;">LV_ALIGN_OUT_TOP_MID</code> のように構築されます。 |
| + | * 最後の 2 つの引数を使用すると、位置合わせ後に、指定したピクセル数だけオブジェクトをシフトできます。 |
| + | |- |
| + | |For example, to align a text below an image: <code style="color: #bb0000;">lv_obj_align(text, image, LV_ALIGN_OUT_BOTTOM_MID, 0, 10)</code>. |
| + | Or to align a text in the middle of its parent: <code style="color: #bb0000;">lv_obj_align(text, NULL, LV_ALIGN_CENTER, 0, 0)</code>. |
| + | |
| | | |
− | For example, to align a text below an image: <code>lv_obj_align_to(text, image, LV_ALIGN_OUT_BOTTOM_MID, 0, 10)</code>.
| + | <code style="color: #bb0000;">lv_obj_align_origo</code> works similarly to <code style="color: #bb0000;">lv_obj_align</code> but it aligns the center of the object. |
| | | |
− | The following align types exist:
| |
− | [[file:LVGL docs widgets obj 01.png|link=https://docs.lvgl.io/8.2/widgets/obj.html#alignment]]
| |
| | | |
| + | For example, <code style="color: #bb0000;">lv_obj_align_origo(btn, image, LV_ALIGN_OUT_BOTTOM_MID, 0, 0)</code> will align the center of the button the bottom of the image. |
| + | |
| + | |
| + | The parameters of the alignment will be saved in the object if <code style="color: #bb0000;">LV_USE_OBJ_REALIGN</code> is enabled in '''''lv_conf.h'''''. |
| + | |
| + | You can then realign the objects simply by calling <code style="color: #bb0000;">lv_obj_realign(obj)</code>. |
| + | |
| + | It's equivalent to calling <code style="color: #bb0000;">lv_obj_align</code> again with the same parameters. |
| + | |たとえば、画像の下にテキストを配置するには: <code style="color: #bb0000;">lv_obj_align(text, image, LV_ALIGN_OUT_BOTTOM_MID, 0, 10)</code>。 |
| + | または、テキストをその親の中央に配置するには: <code style="color: #bb0000;">lv_obj_align(text, NULL, LV_ALIGN_CENTER, 0, 0)</code>。 |
| + | |
| + | |
| + | <code style="color: #bb0000;">lv_obj_align_origo</code> は <code style="color: #bb0000;">lv_obj_align</code> と同様に機能しますが、オブジェクトの中心を揃えます。 |
| + | |
| + | |
| + | たとえば、<code style="color: #bb0000;">lv_obj_align_origo(btn, image, LV_ALIGN_OUT_BOTTOM_MID, 0, 0)</code> は、ボタンの中心を画像の下に揃えます。 |
| + | |
| + | |
| + | <code style="color: #bb0000;">LV_USE_OBJ_REALIGN</code> が '''''lv_conf.h''''' で有効になっている場合、アラインメントのパラメーターはオブジェクトに保存されます。 |
| + | |
| + | その後、<code style="color: #bb0000;">lv_obj_realign(obj)</code> を呼び出すだけでオブジェクトを再配置できます。 |
| + | |
| + | 同じパラメーターで <code style="color: #bb0000;">lv_obj_align</code> を再度呼び出すことと同じです。 |
| + | |- |
| + | |If the alignment happened with <code style="color: #bb0000;">lv_obj_align_origo</code>, then it will be used when the object is realigned. |
| + | |
| + | |
| + | The <code style="color: #bb0000;">lv_obj_align_x/y</code> and <code style="color: #bb0000;">lv_obj_align_origo_x/y</code> function can be used t align only on one axis. |
| + | |
| + | |
| + | If <code style="color: #bb0000;">lv_obj_set_auto_realign(obj, true)</code> is used the object will be realigned automatically, if its size changes in <code style="color: #bb0000;">lv_obj_set_width/height/size()</code> functions. It's very useful when size animations are applied to the object and the original position needs to be kept. |
| + | |
| + | |
| + | '''Note that the coordinates of screens can't be changed. Attempting to use these functions on screens will result in undefined behavior.''' |
| + | |アライメントが <code style="color: #bb0000;">lv_obj_align_origo</code> で発生した場合、オブジェクトが再アライメントされるときに使用されます。 |
| + | |
| + | |
| + | <code style="color: #bb0000;">lv_obj_align_x/y</code> および <code style="color: #bb0000;">lv_obj_align_origo_x/y</code>関数は、1 つの軸でのみ整列するために使用できます。 |
| + | |
| + | |
| + | <code style="color: #bb0000;">lv_obj_set_auto_realign(obj, true)</code> が使用されている場合、そのサイズが <code style="color: #bb0000;">lv_obj_set_width/height/size()</code> 関数で変更された場合、オブジェクトは自動的に再配置されます。 オブジェクトにサイズ アニメーションを適用し、元の位置を維持する必要がある場合に非常に便利です。 |
| + | |
| + | |
| + | |
| + | '''画面の座標は変更できないことに注意してください。 これらの関数を画面で使用しようとすると、未定義の動作が発生します。''' |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
| | | |
| === Parents and children === | | === Parents and children === |
− | You can set a new parent for an object with <code>lv_obj_set_parent(obj, new_parent)</code>. To get the current parent, use <code>lv_obj_get_parent(obj)</code>. | + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | |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 the children of an object, use <code style="color: #bb0000;">lv_obj_get_child(obj, child_prev)</code> (from last to first) or <code style="color: #bb0000;">lv_obj_get_child_back(obj, child_prev)</code> (from first to last). To get the first child, pass <code style="color: #bb0000;">NULL</code> as the second parameter and use the return value to iterate through the children. The function will return <code style="color: #bb0000;">NULL</code> if there are no more children. For example: |
| + | |<code style="color: #bb0000;">lv_obj_set_parent(obj, new_parent)</code>を使用して、オブジェクトの新しい親を設定できます。 |
| + | 現在の親を取得するには、<code style="color: #bb0000;">lv_obj_get_parent(obj)</code> を使用します。 |
| + | |
| + | |
| + | オブジェクトの子を取得するには、l<code style="color: #bb0000;">lv_obj_get_child(obj, child_prev)</code> (最後から最初へ) または <code style="color: #bb0000;">lv_obj_get_child_back(obj, child_prev)</code> (最初から最後へ) を使用します。 最初の子を取得するには、2 番目のパラメーターとして <code style="color: #bb0000;">NULL</code> を渡し、戻り値を使用して子を反復処理します。 子がそれ以上ない場合、関数は <code style="color: #bb0000;">NULL</code> を返します。 例えば: |
| + | |- |
| + | | colspan="2" | |
| + | <syntaxhighlight lang="c++" style="border: 1px dashed gray;"> |
| + | lv_obj_t * child = lv_obj_get_child(parent, NULL); |
| + | while(child) { |
| + | /*Do something with "child" */ |
| + | child = lv_obj_get_child(parent, child); |
| + | } |
| + | </syntaxhighlight> |
| + | |- |
| + | |<code style="color: #bb0000;">lv_obj_get_index(obj)</code> tells the number of children on an object. |
| + | It is equivalent to the number of younger children in the parent. |
| + | |
| + | |
| + | <code style="color: #bb0000;">lv_obj_count_children_recursive(obj)</code> also tells the number of children but counts children of children recursively. |
| + | |<code style="color: #bb0000;">lv_obj_get_index(obj)</code> は、オブジェクトの子の数を示します。 |
| + | これは、親の年少の子供の数に相当します。 |
| + | |
| + | |
| + | <code style="color: #bb0000;">lv_obj_count_children_recursive(obj)</code> も子の数を示しますが、子の子を再帰的にカウントします。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| + | |
| + | === Screens === |
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | When you have created a screen like <code style="color: #bb0000;">lv_obj_t * screen = lv_obj_create(NULL, NULL)</code>, you can load it 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 current screen. |
| + | |
| + | |
| + | |
| + | If you have more display then it's important to know that these functions operate on the lastly created or the explicitly selected (with <code style="color: #bb0000;">lv_disp_set_default</code>) display. |
| + | |
| + | |
| + | To get an object's screen use the <code style="color: #bb0000;">lv_obj_get_screen(obj)</code> function. |
| + | |<code style="color: #bb0000;">lv_obj_t * screen = lv_obj_create(NULL, 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>関数を使用します。 |
| + | |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| + | |
| + | === Layers === |
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | There are two automatically generated layers: |
| + | |
| + | * top layer |
| + | * system layer |
| + | |
| + | |
| + | They are independent of the screens and they will be shown on every screen. |
| + | |
| + | The ''top layer'' is above every object on the screen and the ''system layer'' is above the ''top layer'' too. You can add any pop-up windows to the ''top layer'' freely. |
| + | |
| + | But, the ''system layer'' is restricted to system-level things (e.g. mouse cursor will be placed here in <code style="color: #bb0000;">lv_indev_set_cursor()</code>). |
| + | |
| + | |
| + | The <code style="color: #bb0000;">lv_layer_top()</code> and <code style="color: #bb0000;">lv_layer_sys()</code> functions gives a pointer to the top or system layer. |
| + | |
| + | |
| + | You can bring an object to the foreground or send it to the background with <code style="color: #bb0000;">lv_obj_move_foreground(obj)</code> and <code style="color: #bb0000;">lv_obj_move_background(obj)</code>. |
| + | |
| + | |
| + | Read the Layer overview section to learn more about [[App:Library:LVGL:docs:Overview:Layers|<u>'''layers'''</u>]]. |
| + | |2 つの自動生成レイヤーがあります。 |
| + | |
| + | * 上層 |
| + | * システム層 |
| + | |
| + | |
| + | それらは画面から独立しており、すべての画面に表示されます。 最上位レイヤーは画面上のすべてのオブジェクトの上にあり、システム レイヤーも最上位レイヤーの上にあります。 |
| + | |
| + | 最上層に任意のポップアップ ウィンドウを自由に追加できます。 |
| + | |
| + | ただし、システム レイヤーはシステム レベルのものに制限されます (たとえば、マウス カーソルは <code style="color: #bb0000;">lv_indev_set_cursor()</code> でここに配置されます)。 |
| | | |
− | To get a specific child of a parent use <code>lv_obj_get_child(parent, idx)</code>. Some examples for <code>idx</code>:
| |
| | | |
− | * <code>0</code> get the child created first
| |
− | * <code>1</code> get the child created second
| |
− | * <code>-1</code> get the child created last
| |
| | | |
− | The children can be iterated lke this:
| + | <code style="color: #bb0000;">lv_layer_top()</code> および<code style="color: #bb0000;">lv_layer_sys()</code>関数は、最上位層またはシステム層へのポインターを提供します。 |
− | uint32_t i;
| |
− | for(i = 0; i < lv_obj_get_child_cnt(parent); i++) {
| |
− | lv_obj_t * child = lv_obj_get_child(parent, i);
| |
− | /*Do something with child*/
| |
− | }
| |
− | <code>lv_obj_get_index(obj)</code> returns the index of the object in its parent. It is equivalent to the number of younger children in the parent. | |
| | | |
− | You can bring an object to the foreground or send it to the background with <code>lv_obj_move_foreground(obj)</code> and <code>lv_obj_move_background(obj)</code>.
| |
| | | |
− | You can change the index of an object in its parent using <code>lv_obj_move_to_index(obj, index)</code>.
| |
| | | |
− | You can swap the position of two objects with <code>lv_obj_swap(obj1, obj2)</code>.
| + | <code style="color: #bb0000;">lv_obj_move_foreground(obj)</code> と <code style="color: #bb0000;">lv_obj_move_background(obj)</code>を使用して、オブジェクトをフォアグラウンドに移動したり、バックグラウンドに移動したりできます。 |
| | | |
− | === 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.
| |
| | | |
− | When you have created a screen like <code>lv_obj_t * screen = lv_obj_create(NULL)</code>, you can make it active with <code>lv_scr_load(screen)</code>. The <code>lv_scr_act()</code> function gives you a pointer to the active screen.
| + | [[App:Library:LVGL:docs:Overview:Layers|<u>'''layers'''</u>]]の詳細については、レイヤーの概要セクションを参照してください。 |
| | | |
− | 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>lv_disp_set_default</code>.
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
− | To get an object's screen use the <code>lv_obj_get_screen(obj)</code> function.
| |
| | | |
| === Events === | | === Events === |
− | To set an event callback for an object, use <code>lv_obj_add_event_cb(obj, event_cb, LV_EVENT_..., user_data)</code>, | + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | To set an event callback for an object, use <code style="color: #bb0000;">lv_obj_add_event_cb(obj, event_cb, LV_EVENT_..., user_data)</code>, |
| + | |
| | | |
− | To manually send an event to an object, use <code>lv_event_send(obj, LV_EVENT_..., param)</code> | + | To manually send an event to an object, use <code style="color: #bb0000;">lv_event_send(obj, LV_EVENT_..., param)</code> |
| | | |
| 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>を使います。 |
| + | |
| + | イベントの詳細については、 「イベントの概要」 を参照してください。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| + | |
| + | == Parts == |
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | |To set an event callback for an object, use <code style="color: #bb0000;">lv_obj_set_event_cb(obj, event_cb)</code>, |
| + | |
| + | |
| + | To manually send an event to an object, use <code style="color: #bb0000;">lv_event_send(obj, LV_EVENT_..., data)</code> |
| + | |
| + | |
| + | Read the Event overview to learn more about the events. |
| + | |オブジェクトのイベント コールバックを設定するには、<code style="color: #bb0000;">lv_obj_set_event_cb(obj, event_cb)</code>を使用します。 |
| + | |
| + | |
| + | イベントをオブジェクトに手動で送信するには、<code style="color: #bb0000;">lv_event_send(obj, LV_EVENT_..., data)</code> を使用します。 |
| + | |
| + | |
| + | |
| + | イベントの詳細については、イベントの概要をご覧ください。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| + | === States === |
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | |The widgets can have multiple parts. For example a Button has only a main part but a Slider is built from a background, an indicator and a knob. |
| + | |
| + | |
| + | The name of the parts is constructed like <code style="color: #bb0000;">LV_ + <TYPE> _PART_ <NAME></code>. For example <code style="color: #bb0000;">LV_BTN_PART_MAIN</code> or <code style="color: #bb0000;">LV_SLIDER_PART_KNOB</code>. The parts are usually used when styles are add to the objects. Using parts different styles can be assigned to the different parts of the objects. |
| + | |
| + | |
| + | To learn more about the parts read the related section of the Style overview. |
| + | |ウィジェットには複数のパーツを含めることができます。 たとえば、ボタンには主要な部分しかありませんが、スライダーは背景、インジケーター、およびノブから構築されます。 |
| + | |
| + | |
| + | |
| + | |
| + | パーツの名前は、<code style="color: #bb0000;">LV_ + <TYPE> _PART_ <NAME></code>のように構成されます。 たとえば、<code style="color: #bb0000;">LV_BTN_PART_MAIN</code> または <code style="color: #bb0000;">LV_SLIDER_PART_KNOB</code> です。 パーツは通常、オブジェクトにスタイルを追加するときに使用されます。 パーツを使用すると、オブジェクトのさまざまなパーツにさまざまなスタイルを割り当てることができます。 |
| + | |
| + | |
| + | パーツの詳細については、スタイルの概要の関連セクションをお読みください。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| + | |
| | | |
| === Styles === | | === Styles === |
− | Be sure to read the Style overview. Here only the most essential functions are described. | + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | Be sure to read the Style overview first. |
| | | |
− | A new style can be added to an object with the <code>lv_obj_add_style(obj, &new_style, selector)</code> function. <code>selector</code> is an ORed combination of part and state(s). E.g. <code>LV_PART_SCROLLBAR | LV_STATE_PRESSED</code>.
| |
| | | |
− | The base objects use <code>LV_PART_MAIN</code> style properties and <code>LV_PART_SCROLLBAR</code> with the typical background style properties.
| + | To add a style to an object use <code style="color: #bb0000;">lv_obj_add_style(obj, part, &new_style)</code> function. |
| | | |
− | === Flags ===
| + | The Base object use all the rectangle-like style properties. |
− | There are some attributes which can be enabled/disabled by <code>lv_obj_add/clear_flag(obj, LV_OBJ_FLAG_...)</code>:
| |
| | | |
− | * <code>LV_OBJ_FLAG_HIDDEN</code> Make the object hidden. (Like it wasn't there at all)
| |
− | * <code>LV_OBJ_FLAG_CLICKABLE</code> Make the object clickable by input devices
| |
− | * <code>LV_OBJ_FLAG_CLICK_FOCUSABLE</code> Add focused state to the object when clicked
| |
− | * <code>LV_OBJ_FLAG_CHECKABLE</code> Toggle checked state when the object is clicked
| |
− | * <code>LV_OBJ_FLAG_SCROLLABLE</code> Make the object scrollable
| |
− | * <code>LV_OBJ_FLAG_SCROLL_ELASTIC</code> Allow scrolling inside but with slower speed
| |
− | * <code>LV_OBJ_FLAG_SCROLL_MOMENTUM</code> Make the object scroll further when "thrown"
| |
− | * <code>LV_OBJ_FLAG_SCROLL_ONE</code> Allow scrolling only one snappable children
| |
− | * <code>LV_OBJ_FLAG_SCROLL_CHAIN_HOR</code> Allow propagating the horizontal scroll to a parent
| |
− | * <code>LV_OBJ_FLAG_SCROLL_CHAIN_VER</code> Allow propagating the vertical scroll to a parent
| |
− | * <code>LV_OBJ_FLAG_SCROLL_CHAIN</code> Simple packaging for (<code>LV_OBJ_FLAG_SCROLL_CHAIN_HOR | LV_OBJ_FLAG_SCROLL_CHAIN_VER</code>)
| |
− | * <code>LV_OBJ_FLAG_SCROLL_ON_FOCUS</code> Automatically scroll object to make it visible when focused
| |
− | * <code>LV_OBJ_FLAG_SCROLL_WITH_ARROW</code> Allow scrolling the focused object with arrow keys
| |
− | * <code>LV_OBJ_FLAG_SNAPPABLE</code> If scroll snap is enabled on the parent it can snap to this object
| |
− | * <code>LV_OBJ_FLAG_PRESS_LOCK</code> Keep the object pressed even if the press slid from the object
| |
− | * <code>LV_OBJ_FLAG_EVENT_BUBBLE</code> Propagate the events to the parent too
| |
− | * <code>LV_OBJ_FLAG_GESTURE_BUBBLE</code> Propagate the gestures to the parent
| |
− | * <code>LV_OBJ_FLAG_ADV_HITTEST</code> Allow performing more accurate hit (click) test. E.g. accounting for rounded corners
| |
− | * <code>LV_OBJ_FLAG_IGNORE_LAYOUT</code> Make the object positionable by the layouts
| |
− | * <code>LV_OBJ_FLAG_FLOATING</code> Do not scroll the object when the parent scrolls and ignore layout
| |
− | * <code>LV_OBJ_FLAG_OVERFLOW_VISIBLE</code> Do not clip the children's content to the parent's boundary
| |
− | * <code>LV_OBJ_FLAG_LAYOUT_1</code> Custom flag, free to use by layouts
| |
− | * <code>LV_OBJ_FLAG_LAYOUT_2</code> Custom flag, free to use by layouts
| |
− | * <code>LV_OBJ_FLAG_WIDGET_1</code> Custom flag, free to use by widget
| |
− | * <code>LV_OBJ_FLAG_WIDGET_2</code> Custom flag, free to use by widget
| |
− | * <code>LV_OBJ_FLAG_USER_1</code> Custom flag, free to use by user
| |
− | * <code>LV_OBJ_FLAG_USER_2</code> Custom flag, free to use by user
| |
− | * <code>LV_OBJ_FLAG_USER_3</code> Custom flag, free to use by user
| |
− | * <code>LV_OBJ_FLAG_USER_4</code> Custom flag, free to use by user
| |
| | | |
− | Some examples:
| + | To remove all styles from an object use <code style="color: #bb0000;">lv_obj_reset_style_list(obj, part)</code> |
− | /*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);
| |
| | | |
− | === Groups ===
| |
− | Read the Input devices overview to learn more about ''Groups''.
| |
| | | |
− | Objects are added to a ''group'' with <code>lv_group_add_obj(group, obj)</code>, and you can use <code>lv_obj_get_group(obj)</code> to see which group an object belongs to.
| + | If you modify a style, which is already used by objects, in order to refresh the affected objects you can use either <code style="color: #bb0000;">lv_obj_refresh_style(obj)</code> on each object using it or to notify all objects with a given style use <code style="color: #bb0000;">lv_obj_report_style_mod(&style)</code>. |
| | | |
− | <code>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>false</code> will be returned. | + | If the parameter of <code style="color: #bb0000;">lv_obj_report_style_mod</code> is <code style="color: #bb0000;">NULL</code>, all objects will be notified. |
| + | |最初に必ずスタイルの概要をお読みください。 |
| | | |
− | === Extended click area ===
| |
− | By default, the objects can be clicked only within their bounding area. However, this can be extended with <code>lv_obj_set_ext_click_area(obj, size)</code>.
| |
| | | |
− | == Events ==
| |
| | | |
− | * <code>LV_EVENT_VALUE_CHANGED</code> when the <code>LV_OBJ_FLAG_CHECKABLE</code> flag is enabled and the object clicked (on transition to/from the checked state)
| |
− | * <code>LV_EVENT_DRAW_PART_BEGIN</code> and <code>LV_EVENT_DRAW_PART_END</code> is sent for the following types:
| |
− | ** <code>LV_OBJ_DRAW_PART_RECTANGLE</code> The main rectangle
| |
− | *** <code>part</code>: <code>LV_PART_MAIN</code>
| |
− | *** <code>rect_dsc</code>
| |
− | *** <code>draw_area</code>: the area of the rectangle
| |
− | ** <code>LV_OBJ_DRAW_PART_BORDER_POST</code> The border if the <code>border_post</code> style property is <code>true</code>
| |
− | *** <code>part</code>: <code>LV_PART_MAIN</code>
| |
− | *** <code>rect_dsc</code>
| |
− | *** <code>draw_area</code>: the area of the rectangle
| |
− | ** <code>LV_OBJ_DRAW_PART_SCROLLBAR</code> the scrollbars
| |
− | *** <code>part</code>: <code>LV_PART_SCROLLBAR</code>
| |
− | *** <code>rect_dsc</code>
| |
− | *** <code>draw_area</code>: the area of the rectangle
| |
| | | |
− | Learn more about Events.
| + | オブジェクトにスタイルを追加するには、<code style="color: #bb0000;">lv_obj_add_style(obj, part, &new_style)</code> 関数を使用します。 |
| | | |
− | == Keys ==
| + | Base オブジェクトは、すべての長方形のようなスタイル プロパティを使用します。 |
− | If <code>LV_OBJ_FLAG_CHECKABLE</code> is enabled, <code>LV_KEY_RIGHT</code> and <code>LV_KEY_UP</code> make the object checked, and <code>LV_KEY_LEFT</code> and <code>LV_KEY_DOWN</code> make it unchecked.
| |
| | | |
− | If <code>LV_OBJ_FLAG_SCROLLABLE</code> is enabled, but the object is not editable (as declared by the widget class), the arrow keys (<code>LV_KEY_UP</code>, <code>LV_KEY_DOWN</code>, <code>LV_KEY_LEFT</code>, <code>LV_KEY_RIGHT</code>) scroll the object. If the object can only scroll vertically, <code>LV_KEY_LEFT</code> and <code>LV_KEY_RIGHT</code> will scroll up/down instead, making it compatible with an encoder input device. See Input devices overview for more on encoder behaviors and the edit mode.
| |
| | | |
− | Learn more about Keys.
| |
| | | |
− | == Example == | + | オブジェクトからすべてのスタイルを削除するには、<code style="color: #bb0000;">lv_obj_reset_style_list(obj, part)</code>を使用します |
− | === Base objects with custom styles ===
| |
− | [[file:LVGL docs example 042.png|link=https://docs.lvgl.io/8.2/widgets/obj.html#base-objects-with-custom-styles]]
| |
| | | |
− | ----
| |
− | === Make an object draggable ===
| |
− | [[file:LVGL docs example 043.png|link=https://docs.lvgl.io/8.2/widgets/obj.html#make-an-object-draggable]]
| |
| | | |
− | ----
| + | オブジェクトで既に使用されているスタイルを変更する場合、影響を受けるオブジェクトを更新するには、それを使用する各オブジェクトで <code style="color: #bb0000;">lv_obj_refresh_style(obj)</code> を使用するか、指定されたスタイルを持つすべてのオブジェクトに <code style="color: #bb0000;">lv_obj_report_style_mod(&style)</code>を使用して通知します。 <code style="color: #bb0000;">lv_obj_report_style_mod</code>のパラメーターが <code style="color: #bb0000;">NULL</code> の場合、すべてのオブジェクトが通知されます。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
| | | |
| + | === Attributes === |
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | |There are some attributes which can be enabled/disabled by <code style="color: #bb0000;">lv_obj_set_...(obj, true/false)</code>: |
| | | |
− | == API == | + | * hidden - Hide the object. It will not be drawn and will be considered by input devices as if it doesn't exist., Its children will be hidden too. |
− | Typedefs
| + | * click - Allows you to click the object via input devices. If disabled, then click events are passed to the object behind this one. (E.g. Labels are not clickable by default) |
| + | * top - If enabled then when this object or any of its children is clicked then this object comes to the foreground. |
| + | * drag - Enable dragging (moving by an input device) |
| + | * drag_dir - Enable dragging only in specific directions. Can be <code style="color: #bb0000;">LV_DRAG_DIR_HOR/VER/ALL</code>. |
| + | * drag_throw - Enable "throwing" with dragging as if the object would have momentum |
| + | * drag_parent - If enabled then the object's parent will be moved during dragging. It will look like as if the parent is dragged. Checked recursively, so can propagate to grandparents too. |
| + | * parent_event - Propagate the events to the parents too. Checked recursively, so can propagate to grandparents too. |
| + | * opa_scale_enable - Enable opacity scaling. See the [#opa-scale](Opa scale) section. |
| + | |<code style="color: #bb0000;">lv_obj_set_...(obj, true/false)</code>で有効/無効にできる属性がいくつかあります: |
| | | |
− | ; <span id="_CPPv310lv_state_t"></span><span id="_CPPv210lv_state_t"></span><span id="lv_state_t"></span><span id="lv__obj_8h_1a6a2a787185848ca20a71ca29900721ff" class="target"></span>typedef uint16_t lv_state_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv410lv_state_t] <span id="_CPPv310lv_state_t"></span><span id="_CPPv210lv_state_t"></span><span id="lv_state_t"></span><span id="lv__obj_8h_1a6a2a787185848ca20a71ca29900721ff" class="target"></span>
| + | * hidden - オブジェクトを隠します。それは描画されず、入力デバイスによって存在しないかのように見なされます。その子も非表示になります。 |
− | : | + | * click - 入力デバイスを介してオブジェクトをクリックできるようにします。無効にすると、クリック イベントはこのオブジェクトの背後にあるオブジェクトに渡されます。 (例: ラベルはデフォルトではクリックできません) |
| + | * top - 有効にすると、このオブジェクトまたはその子のいずれかをクリックすると、このオブジェクトが前面に表示されます。 |
| + | * drag - ドラッグを有効にする (入力デバイスによる移動) |
| + | * drag_dir - 特定の方向へのドラッグのみを有効にします。 <code style="color: #bb0000;">LV_DRAG_DIR_HOR/VER/ALL</code>を指定できます。 |
| + | * drag_throw - オブジェクトに勢いがあるかのように、ドラッグで「投げ」を有効にします |
| + | * drag_parent - 有効にすると、ドラッグ中にオブジェクトの親が移動します。親がドラッグされているように見えます。再帰的にチェックされるため、祖父母にも伝播できます。 |
| + | * parent_event - イベントを親にも伝播します。再帰的にチェックされるため、祖父母にも伝播できます。 |
| + | * opa_scale_enable - 不透明度のスケーリングを有効にします。 [#opa-scale](オパ スケール) セクションを参照してください。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
− | ; <span id="_CPPv39lv_part_t"></span><span id="_CPPv29lv_part_t"></span><span id="lv_part_t"></span><span id="lv__obj_8h_1a3af359a63358e5fc794a84c4d586d744" class="target"></span>typedef uint32_t [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv410lv_state_t]lv_part_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv49lv_part_t] <span id="_CPPv39lv_part_t"></span><span id="_CPPv29lv_part_t"></span><span id="lv_part_t"></span><span id="lv__obj_8h_1a3af359a63358e5fc794a84c4d586d744" class="target"></span>
| |
− | :
| |
| | | |
− | ; <span id="_CPPv313lv_obj_flag_t"></span><span id="_CPPv213lv_obj_flag_t"></span><span id="lv_obj_flag_t"></span><span id="lv__obj_8h_1a8d31d58e68ad0349ffdf0c6b4f37afd7" class="target"></span>typedef uint32_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv49lv_part_t] lv_obj_flag_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv413lv_obj_flag_t] <span id="_CPPv313lv_obj_flag_t"></span><span id="_CPPv213lv_obj_flag_t"></span><span id="lv_obj_flag_t"></span><span id="lv__obj_8h_1a8d31d58e68ad0349ffdf0c6b4f37afd7" class="target"></span>
| + | === Protect === |
− | :
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | |There are some specific actions which happen automatically in the library. |
| + | To prevent one or more that kind of actions, you can protect the object against them. |
| | | |
− | ; <span id="_CPPv38lv_obj_t"></span><span id="_CPPv28lv_obj_t"></span><span id="lv_obj_t"></span><span id="lv__obj_8h_1a01de9a127bcf589bd7d0c695a429b158" class="target"></span>typedef struct _lv_o[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv413lv_obj_flag_t]bj_t lv_obj_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv48lv_obj_t] <span id="_CPPv38lv_obj_t"></span><span id="_CPPv28lv_obj_t"></span><span id="lv_obj_t"></span><span id="lv__obj_8h_1a01de9a127bcf589bd7d0c695a429b158" class="target"></span>
| + | The following protections exists: |
− | : | |
| | | |
− | Enums
| + | * '''LV_PROTECT_NONE''' No protection |
| + | * '''LV_PROTECT_POS''' Prevent automatic positioning (e.g. Layout in Containers) |
| + | * '''LV_PROTECT_FOLLOW''' Prevent the object be followed (make a "line break") in automatic ordering (e.g. Layout in Containers) |
| + | * '''LV_PROTECT_PARENT''' Prevent automatic parent change. (e.g. Page moves the children created on the background to the scrollable) |
| + | * '''LV_PROTECT_PRESS_LOST''' Prevent losing press when the press is slid out of the objects. (E.g. a Button can be released out of it if it was being pressed) |
| + | * '''LV_PROTECT_CLICK_FOCUS''' Prevent automatically focusing the object if it's in a ''Group'' and click focus is enabled. |
| + | * '''LV_PROTECT_CHILD_CHG''' Disable the child change signal. Used internally by the library |
| | | |
− | ; <span id="_CPPv3Ut1_1"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7" class="target"></span>enum [anonymous][https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv48lv_obj_t][https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4Ut1_1] <span id="_CPPv3Ut1_1"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7" class="target"></span>
| |
− | : Possible sta[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4Ut1_1]tes of a widget. OR-ed values are possible ''Values:''
| |
− | :; <span id="_CPPv3NUt1_116LV_STATE_DEFAULTE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a9817cb0d3c0e422c1f63901d4d92e8c3" class="target"></span>enumerator LV_STATE_DEFAULT[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_DEFAULTE] <span id="_CPPv3NUt1_116LV_STATE_DEFAULTE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a9817cb0d3c0e422c1f63901d4d92e8c3" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_116LV_STATE_CHECKEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a6fc6f742b7b193d9dad585f32826afcf" class="target"></span>enumerator LV_STA[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_DEFAULTE]TE_CHECKED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_CHECKEDE] <span id="_CPPv3NUt1_116LV_STATE_CHECKEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a6fc6f742b7b193d9dad585f32826afcf" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_116LV_STATE_FOCUSEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a5fb9f48f09dbcf9d45b0f79675e793cb" class="target"></span>enumerator LV_STA[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_CHECKEDE]TE_FOCUSED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_FOCUSEDE] <span id="_CPPv3NUt1_116LV_STATE_FOCUSEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a5fb9f48f09dbcf9d45b0f79675e793cb" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_118LV_STATE_FOCUS_KEYE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7acca6130ab5129b828f55e6a7cef77086" class="target"></span>enumerator LV_STA[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_FOCUSEDE]TE_FOCUS_KEY[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_118LV_STATE_FOCUS_KEYE] <span id="_CPPv3NUt1_118LV_STATE_FOCUS_KEYE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7acca6130ab5129b828f55e6a7cef77086" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_115LV_STATE_EDITEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a57be5d3fed5ca1d0519c0302a4517e8a" class="target"></span>enumerator LV_STATE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_118LV_STATE_FOCUS_KEYE]_EDITED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_EDITEDE] <span id="_CPPv3NUt1_115LV_STATE_EDITEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a57be5d3fed5ca1d0519c0302a4517e8a" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_116LV_STATE_HOVEREDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7aa24f8fab93b0965e98f5ad3bafea48b8" class="target"></span>enumerator LV_ST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_EDITEDE]ATE_HOVERED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_HOVEREDE] <span id="_CPPv3NUt1_116LV_STATE_HOVEREDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7aa24f8fab93b0965e98f5ad3bafea48b8" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_116LV_STATE_PRESSEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a69673539aa92d84848a992fb3baea649" class="target"></span>enumerator LV_STA[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_HOVEREDE]TE_PRESSED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_PRESSEDE] <span id="_CPPv3NUt1_116LV_STATE_PRESSEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a69673539aa92d84848a992fb3baea649" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_117LV_STATE_SCROLLEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7ab00530563be74cbb0a37351f9b481475" class="target"></span>enumerator LV_STA[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_116LV_STATE_PRESSEDE]TE_SCROLLED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_117LV_STATE_SCROLLEDE] <span id="_CPPv3NUt1_117LV_STATE_SCROLLEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7ab00530563be74cbb0a37351f9b481475" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_117LV_STATE_DISABLEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a63e18d3006cf8c0e73a5062782dce94b" class="target"></span>enumerator LV_STAT[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_117LV_STATE_SCROLLEDE]E_DISABLED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_117LV_STATE_DISABLEDE] <span id="_CPPv3NUt1_117LV_STATE_DISABLEDE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a63e18d3006cf8c0e73a5062782dce94b" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_115LV_STATE_USER_1E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7ae8ad1159c50bfeb6107d028a7e7af498" class="target"></span>enumerator LV_STAT[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_117LV_STATE_DISABLEDE]E_USER_1[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_1E] <span id="_CPPv3NUt1_115LV_STATE_USER_1E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7ae8ad1159c50bfeb6107d028a7e7af498" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_115LV_STATE_USER_2E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a0314ac5161337bf62c12bbbccb489da0" class="target"></span>enumerator LV_ST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_1E]ATE_USER_2[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_2E] <span id="_CPPv3NUt1_115LV_STATE_USER_2E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a0314ac5161337bf62c12bbbccb489da0" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_115LV_STATE_USER_3E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7af2a3b0edc8523431954f43be7cfd60c7" class="target"></span>enumerator LV_ST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_2E]ATE_USER_3[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_3E] <span id="_CPPv3NUt1_115LV_STATE_USER_3E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7af2a3b0edc8523431954f43be7cfd60c7" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_115LV_STATE_USER_4E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a19339a643f37faa314a3a3f1616ce38a" class="target"></span>enumerator LV_ST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_3E]ATE_USER_4[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_4E] <span id="_CPPv3NUt1_115LV_STATE_USER_4E"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a19339a643f37faa314a3a3f1616ce38a" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_112LV_STATE_ANYE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a801cebe920a9b6b4d341e8eab3d19780" class="target"></span>enumerator LV_ST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_115LV_STATE_USER_4E]ATE_ANY[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_112LV_STATE_ANYE] <span id="_CPPv3NUt1_112LV_STATE_ANYE"></span><span id="lv__obj_8h_1adf764cbdea00d65edcd07bb9953ad2b7a801cebe920a9b6b4d341e8eab3d19780" class="target"></span>
| |
− | :: Special value can b[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_112LV_STATE_ANYE]e used in some functions to target all states
| |
| | | |
− | ; <span id="_CPPv3Ut1_2"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5" class="target"></span>enum [anonymous][https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4Ut1_2] <span id="_CPPv3Ut1_2"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5" class="target"></span>
| + | The <code style="color: #bb0000;">lv_obj_add/clear_protect(obj, LV_PROTECT_...)</code> sets/clears the protection. You can use ''<nowiki/>'OR'ed'' values of protection types too. |
− | : The possible[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4Ut1_2] parts of widgets. The parts can be considered as the internal building block of the widgets. E.g. slider = background + indicator + knob Note every part is used by every widget ''Values:''
| + | |ライブラリで自動的に発生する特定のアクションがいくつかあります。 |
− | :; <span id="_CPPv3NUt1_212LV_PART_MAINE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a1bb7ac56fc509fb459eb8c6ef66ba103" class="target"></span>enumerator LV_PART_MAIN[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_212LV_PART_MAINE] <span id="_CPPv3NUt1_212LV_PART_MAINE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a1bb7ac56fc509fb459eb8c6ef66ba103" class="target"></span>
| + | そのようなアクションを 1 つ以上防止するために、オブジェクトをそれらから保護することができます。 |
− | :: A background like r[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_212LV_PART_MAINE]ectangle
| |
− | :; <span id="_CPPv3NUt1_217LV_PART_SCROLLBARE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a48a8e6955fcde2f7679f5a8f6eb698b9" class="target"></span>enumerator LV_PART_SCROLLBAR[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_217LV_PART_SCROLLBARE] <span id="_CPPv3NUt1_217LV_PART_SCROLLBARE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a48a8e6955fcde2f7679f5a8f6eb698b9" class="target"></span>
| |
− | :: The scrollbar(s)
| |
− | :; <span id="_CPPv3NUt1_217LV_PART_INDICATORE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ae1fb6dda668a19264aef30e0bfb0930d" class="target"></span>en[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_217LV_PART_SCROLLBARE]umerator LV_PART_INDICATOR[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_217LV_PART_INDICATORE] <span id="_CPPv3NUt1_217LV_PART_INDICATORE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ae1fb6dda668a19264aef30e0bfb0930d" class="target"></span>
| |
− | :: Indicator, e.g. for slid[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_217LV_PART_INDICATORE]er, bar, switch, or the tick box of the checkbox
| |
− | :; <span id="_CPPv3NUt1_212LV_PART_KNOBE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ac6ba6af416d9846b75ddc8b6be6192a5" class="target"></span>enumerator LV_PART_KNOB[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_212LV_PART_KNOBE] <span id="_CPPv3NUt1_212LV_PART_KNOBE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ac6ba6af416d9846b75ddc8b6be6192a5" class="target"></span>
| |
− | :: Like handle to grab[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_212LV_PART_KNOBE] to adjust the value
| |
− | :; <span id="_CPPv3NUt1_216LV_PART_SELECTEDE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ab86fa09e396634c9a640a40e38621c40" class="target"></span>enumerator LV_PART_SELECTED[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_216LV_PART_SELECTEDE] <span id="_CPPv3NUt1_216LV_PART_SELECTEDE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ab86fa09e396634c9a640a40e38621c40" class="target"></span>
| |
− | :: Indicate the currently [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_216LV_PART_SELECTEDE]selected option or section
| |
− | :; <span id="_CPPv3NUt1_213LV_PART_ITEMSE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a90487e55bc86a255ad935ca1a0403261" class="target"></span>enumerator LV_PART_ITEMS[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_213LV_PART_ITEMSE] <span id="_CPPv3NUt1_213LV_PART_ITEMSE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a90487e55bc86a255ad935ca1a0403261" class="target"></span>
| |
− | :: Used if the widget h[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_213LV_PART_ITEMSE]as multiple similar elements (e.g. table cells)
| |
− | :; <span id="_CPPv3NUt1_213LV_PART_TICKSE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ae0170b805e83c2e360ccb90ba4fea9e6" class="target"></span>enumerator LV_PART_TICKS[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_213LV_PART_TICKSE] <span id="_CPPv3NUt1_213LV_PART_TICKSE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5ae0170b805e83c2e360ccb90ba4fea9e6" class="target"></span>
| |
− | :: Ticks on scale e.g. [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_213LV_PART_TICKSE]for a chart or meter
| |
− | :; <span id="_CPPv3NUt1_214LV_PART_CURSORE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a8416967120efaa63c3fa1ef0016fa503" class="target"></span>enumerator LV_PART_CURSOR[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_214LV_PART_CURSORE] <span id="_CPPv3NUt1_214LV_PART_CURSORE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a8416967120efaa63c3fa1ef0016fa503" class="target"></span>
| |
− | :: Mark a specific place[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_214LV_PART_CURSORE] e.g. for text area's cursor or on a chart
| |
− | :; <span id="_CPPv3NUt1_220LV_PART_CUSTOM_FIRSTE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a2acbdcd5f3a8e80920f5e8551b7abe16" class="target"></span>enumerator LV_PART_CUSTOM_FIRST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_220LV_PART_CUSTOM_FIRSTE] <span id="_CPPv3NUt1_220LV_PART_CUSTOM_FIRSTE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a2acbdcd5f3a8e80920f5e8551b7abe16" class="target"></span>
| |
− | :: Extension point for custom [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_220LV_PART_CUSTOM_FIRSTE]widgets
| |
− | :; <span id="_CPPv3NUt1_211LV_PART_ANYE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a20fb4a8bd26c73f27bab2c13cca4135c" class="target"></span>enumerator LV_PART_ANY[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_211LV_PART_ANYE] <span id="_CPPv3NUt1_211LV_PART_ANYE"></span><span id="lv__obj_8h_1a99fb83031ce9923c84392b4e92f956b5a20fb4a8bd26c73f27bab2c13cca4135c" class="target"></span>
| |
− | :: Special value can [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_211LV_PART_ANYE]be used in some functions to target all parts
| |
| | | |
− | ; <span id="_CPPv3Ut1_3"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04" class="target"></span>enum [anonymous][https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4Ut1_3] <span id="_CPPv3Ut1_3"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04" class="target"></span>
| + | 次の保護が存在します。 |
− | : On/Off featu[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4Ut1_3]res controlling the object's behavior. OR-ed values are possible ''Values:''
| |
− | :; <span id="_CPPv3NUt1_318LV_OBJ_FLAG_HIDDENE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a897a3221874cb9d0e4e28a6d530755f2" class="target"></span>enumerator LV_OBJ_FLAG_HIDDEN[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_HIDDENE] <span id="_CPPv3NUt1_318LV_OBJ_FLAG_HIDDENE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a897a3221874cb9d0e4e28a6d530755f2" class="target"></span>
| |
− | :: Make the object hidden. ([https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_HIDDENE]Like it wasn't there at all)
| |
− | :; <span id="_CPPv3NUt1_321LV_OBJ_FLAG_CLICKABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ab9ba97b9e1ae0b3a4a5eca3d763e263b" class="target"></span>enumerator LV_OBJ_FLAG_CLICKABLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_321LV_OBJ_FLAG_CLICKABLEE] <span id="_CPPv3NUt1_321LV_OBJ_FLAG_CLICKABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ab9ba97b9e1ae0b3a4a5eca3d763e263b" class="target"></span>
| |
− | :: Make the object clickable by[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_321LV_OBJ_FLAG_CLICKABLEE] the input devices
| |
− | :; <span id="_CPPv3NUt1_327LV_OBJ_FLAG_CLICK_FOCUSABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04abc971d6f2cd12cf2fcdd7e8e28c964c6" class="target"></span>enumerator LV_OBJ_FLAG_CLICK_FOCUSABLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_327LV_OBJ_FLAG_CLICK_FOCUSABLEE] <span id="_CPPv3NUt1_327LV_OBJ_FLAG_CLICK_FOCUSABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04abc971d6f2cd12cf2fcdd7e8e28c964c6" class="target"></span>
| |
− | :: Add focused state to the object wh[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_327LV_OBJ_FLAG_CLICK_FOCUSABLEE]en clicked
| |
− | :; <span id="_CPPv3NUt1_321LV_OBJ_FLAG_CHECKABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a36ad28d2b06fff88a20e95952e58c937" class="target"></span>enumerator LV_OBJ_FLAG_CHECKABLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_321LV_OBJ_FLAG_CHECKABLEE] <span id="_CPPv3NUt1_321LV_OBJ_FLAG_CHECKABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a36ad28d2b06fff88a20e95952e58c937" class="target"></span>
| |
− | :: Toggle checked state when th[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_321LV_OBJ_FLAG_CHECKABLEE]e object is clicked
| |
− | :; <span id="_CPPv3NUt1_322LV_OBJ_FLAG_SCROLLABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04acd85fb802b95208772b4e124a87546ca" class="target"></span>enumerator LV_OBJ_FLAG_SCROLLABLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_322LV_OBJ_FLAG_SCROLLABLEE] <span id="_CPPv3NUt1_322LV_OBJ_FLAG_SCROLLABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04acd85fb802b95208772b4e124a87546ca" class="target"></span>
| |
− | :: Make the object scrollable [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_322LV_OBJ_FLAG_SCROLLABLEE]
| |
− | :; <span id="_CPPv3NUt1_326LV_OBJ_FLAG_SCROLL_ELASTICE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ae7d692b8ceaf005b55a1a1c70d87f315" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_ELASTIC[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_326LV_OBJ_FLAG_SCROLL_ELASTICE] <span id="_CPPv3NUt1_326LV_OBJ_FLAG_SCROLL_ELASTICE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ae7d692b8ceaf005b55a1a1c70d87f315" class="target"></span>
| |
− | :: Allow scrolling inside but with s[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_326LV_OBJ_FLAG_SCROLL_ELASTICE]lower speed
| |
− | :; <span id="_CPPv3NUt1_327LV_OBJ_FLAG_SCROLL_MOMENTUME"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a4fe2a1748c3b752cfad7b2f2e371f97c" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_MOMENTUM[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_327LV_OBJ_FLAG_SCROLL_MOMENTUME] <span id="_CPPv3NUt1_327LV_OBJ_FLAG_SCROLL_MOMENTUME"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a4fe2a1748c3b752cfad7b2f2e371f97c" class="target"></span>
| |
− | :: Make the object scroll further whe[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_327LV_OBJ_FLAG_SCROLL_MOMENTUME]n "thrown"
| |
− | :; <span id="_CPPv3NUt1_322LV_OBJ_FLAG_SCROLL_ONEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04acd235b2da2988b6673679aa0d825f97f" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_ONE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_322LV_OBJ_FLAG_SCROLL_ONEE] <span id="_CPPv3NUt1_322LV_OBJ_FLAG_SCROLL_ONEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04acd235b2da2988b6673679aa0d825f97f" class="target"></span>
| |
− | :: Allow scrolling only one snap[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_322LV_OBJ_FLAG_SCROLL_ONEE]pable children
| |
− | :; <span id="_CPPv3NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_HORE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a5a3e346064405aa442372b712aac27fb" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_CHAIN_HOR[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_HORE] <span id="_CPPv3NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_HORE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a5a3e346064405aa442372b712aac27fb" class="target"></span>
| |
− | :: Allow propagating the horizontal sc[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_HORE]roll to a parent
| |
− | :; <span id="_CPPv3NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_VERE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04acdc9c68ac828c91967b52ce0b3ad60ce" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_CHAIN_VER[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_VERE] <span id="_CPPv3NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_VERE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04acdc9c68ac828c91967b52ce0b3ad60ce" class="target"></span>
| |
− | :: Allow propagating the vertical scro[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_328LV_OBJ_FLAG_SCROLL_CHAIN_VERE]ll to a parent
| |
− | :; <span id="_CPPv3NUt1_324LV_OBJ_FLAG_SCROLL_CHAINE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aa6df5b549b49eba61dd94129a9654c5b" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_CHAIN[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_324LV_OBJ_FLAG_SCROLL_CHAINE] <span id="_CPPv3NUt1_324LV_OBJ_FLAG_SCROLL_CHAINE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aa6df5b549b49eba61dd94129a9654c5b" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3NUt1_327LV_OBJ_FLAG_SCROLL_ON_FOCUSE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aad2d5f453aea4efc7c5c69735f8fedfc" class="target"></span>enumerator LV_OBJ_FLAG_SC[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_324LV_OBJ_FLAG_SCROLL_CHAINE]ROLL_ON_FOCUS[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_327LV_OBJ_FLAG_SCROLL_ON_FOCUSE] <span id="_CPPv3NUt1_327LV_OBJ_FLAG_SCROLL_ON_FOCUSE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aad2d5f453aea4efc7c5c69735f8fedfc" class="target"></span>
| |
− | :: Automatically scroll object to mak[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_327LV_OBJ_FLAG_SCROLL_ON_FOCUSE]e it visible when focused
| |
− | :; <span id="_CPPv3NUt1_329LV_OBJ_FLAG_SCROLL_WITH_ARROWE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aba880a01bb4721a22b58678810e8b9f8" class="target"></span>enumerator LV_OBJ_FLAG_SCROLL_WITH_ARROW[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_329LV_OBJ_FLAG_SCROLL_WITH_ARROWE] <span id="_CPPv3NUt1_329LV_OBJ_FLAG_SCROLL_WITH_ARROWE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aba880a01bb4721a22b58678810e8b9f8" class="target"></span>
| |
− | :: Allow scrolling the focused object w[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_329LV_OBJ_FLAG_SCROLL_WITH_ARROWE]ith arrow keys
| |
− | :; <span id="_CPPv3NUt1_321LV_OBJ_FLAG_SNAPPABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a42b8f9479a9887451214b2e745875ab7" class="target"></span>enumerator LV_OBJ_FLAG_SNAPPABLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_321LV_OBJ_FLAG_SNAPPABLEE] <span id="_CPPv3NUt1_321LV_OBJ_FLAG_SNAPPABLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a42b8f9479a9887451214b2e745875ab7" class="target"></span>
| |
− | :: If scroll snap is enabled on[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_321LV_OBJ_FLAG_SNAPPABLEE] the parent it can snap to this object
| |
− | :; <span id="_CPPv3NUt1_322LV_OBJ_FLAG_PRESS_LOCKE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a5f08ee3117d5cf0ed98950557015497b" class="target"></span>enumerator LV_OBJ_FLAG_PRESS_LOCK[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_322LV_OBJ_FLAG_PRESS_LOCKE] <span id="_CPPv3NUt1_322LV_OBJ_FLAG_PRESS_LOCKE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a5f08ee3117d5cf0ed98950557015497b" class="target"></span>
| |
− | :: Keep the object pressed even [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_322LV_OBJ_FLAG_PRESS_LOCKE]if the press slid from the object
| |
− | :; <span id="_CPPv3NUt1_324LV_OBJ_FLAG_EVENT_BUBBLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ae16fa872a5e67efda3e21a2925dddd85" class="target"></span>enumerator LV_OBJ_FLAG_EVENT_BUBBLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_324LV_OBJ_FLAG_EVENT_BUBBLEE] <span id="_CPPv3NUt1_324LV_OBJ_FLAG_EVENT_BUBBLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ae16fa872a5e67efda3e21a2925dddd85" class="target"></span>
| |
− | :: Propagate the events to the par[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_324LV_OBJ_FLAG_EVENT_BUBBLEE]ent too
| |
− | :; <span id="_CPPv3NUt1_326LV_OBJ_FLAG_GESTURE_BUBBLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a339e201d0291a4b7258a50141b47df3e" class="target"></span>enumerator LV_OBJ_FLAG_GESTURE_BUBBLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_326LV_OBJ_FLAG_GESTURE_BUBBLEE] <span id="_CPPv3NUt1_326LV_OBJ_FLAG_GESTURE_BUBBLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a339e201d0291a4b7258a50141b47df3e" class="target"></span>
| |
− | :: Propagate the gestures to the par[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_326LV_OBJ_FLAG_GESTURE_BUBBLEE]ent
| |
− | :; <span id="_CPPv3NUt1_323LV_OBJ_FLAG_ADV_HITTESTE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aab483aa0afd58b7df0c44e10b1ed73d1" class="target"></span>enumerator LV_OBJ_FLAG_ADV_HITTEST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_323LV_OBJ_FLAG_ADV_HITTESTE] <span id="_CPPv3NUt1_323LV_OBJ_FLAG_ADV_HITTESTE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04aab483aa0afd58b7df0c44e10b1ed73d1" class="target"></span>
| |
− | :: Allow performing more accurate[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_323LV_OBJ_FLAG_ADV_HITTESTE] hit (click) test. E.g. consider rounded corners.
| |
− | :; <span id="_CPPv3NUt1_325LV_OBJ_FLAG_IGNORE_LAYOUTE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a5278a16b8d997809825817354c2a836c" class="target"></span>enumerator LV_OBJ_FLAG_IGNORE_LAYOUT[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_325LV_OBJ_FLAG_IGNORE_LAYOUTE] <span id="_CPPv3NUt1_325LV_OBJ_FLAG_IGNORE_LAYOUTE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a5278a16b8d997809825817354c2a836c" class="target"></span>
| |
− | :: Make the object position-able by[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_325LV_OBJ_FLAG_IGNORE_LAYOUTE] the layouts
| |
− | :; <span id="_CPPv3NUt1_320LV_OBJ_FLAG_FLOATINGE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ad6fd2a95a8ca05bd35afd3393211677b" class="target"></span>enumerator LV_OBJ_FLAG_FLOATING[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_FLOATINGE] <span id="_CPPv3NUt1_320LV_OBJ_FLAG_FLOATINGE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ad6fd2a95a8ca05bd35afd3393211677b" class="target"></span>
| |
− | :: Do not scroll the object wh[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_FLOATINGE]en the parent scrolls and ignore layout
| |
− | :; <span id="_CPPv3NUt1_328LV_OBJ_FLAG_OVERFLOW_VISIBLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a9c1f8be397c92a0cfec887a1c1315d55" class="target"></span>enumerator LV_OBJ_FLAG_OVERFLOW_VISIBLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_328LV_OBJ_FLAG_OVERFLOW_VISIBLEE] <span id="_CPPv3NUt1_328LV_OBJ_FLAG_OVERFLOW_VISIBLEE"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a9c1f8be397c92a0cfec887a1c1315d55" class="target"></span>
| |
− | :: Do not clip the children's content [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_328LV_OBJ_FLAG_OVERFLOW_VISIBLEE]to the parent's boundary
| |
− | :; <span id="_CPPv3NUt1_320LV_OBJ_FLAG_LAYOUT_1E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a2a8087232ace4a32a3b84d5cceb0cf8a" class="target"></span>enumerator LV_OBJ_FLAG_LAYOUT_1[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_LAYOUT_1E] <span id="_CPPv3NUt1_320LV_OBJ_FLAG_LAYOUT_1E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a2a8087232ace4a32a3b84d5cceb0cf8a" class="target"></span>
| |
− | :: Custom flag, free to use by[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_LAYOUT_1E] layouts
| |
− | :; <span id="_CPPv3NUt1_320LV_OBJ_FLAG_LAYOUT_2E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a2f926bc2c9a05243d3cefb33a6e019a2" class="target"></span>enumerator LV_OBJ_FLAG_LAYOUT_2[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_LAYOUT_2E] <span id="_CPPv3NUt1_320LV_OBJ_FLAG_LAYOUT_2E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a2f926bc2c9a05243d3cefb33a6e019a2" class="target"></span>
| |
− | :: Custom flag, free to use by[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_LAYOUT_2E] layouts
| |
− | :; <span id="_CPPv3NUt1_320LV_OBJ_FLAG_WIDGET_1E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a56ef045b9e3adf1f9b53993181b3f519" class="target"></span>enumerator LV_OBJ_FLAG_WIDGET_1[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_WIDGET_1E] <span id="_CPPv3NUt1_320LV_OBJ_FLAG_WIDGET_1E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a56ef045b9e3adf1f9b53993181b3f519" class="target"></span>
| |
− | :: Custom flag, free to use by[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_WIDGET_1E] widget
| |
− | :; <span id="_CPPv3NUt1_320LV_OBJ_FLAG_WIDGET_2E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a13da2d5612d7eca837d153566fe5a88c" class="target"></span>enumerator LV_OBJ_FLAG_WIDGET_2[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_WIDGET_2E] <span id="_CPPv3NUt1_320LV_OBJ_FLAG_WIDGET_2E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a13da2d5612d7eca837d153566fe5a88c" class="target"></span>
| |
− | :: Custom flag, free to use by[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_320LV_OBJ_FLAG_WIDGET_2E] widget
| |
− | :; <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_1E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ade26c60c22b7b72d5b7f1c198a792e38" class="target"></span>enumerator LV_OBJ_FLAG_USER_1[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_1E] <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_1E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04ade26c60c22b7b72d5b7f1c198a792e38" class="target"></span>
| |
− | :: Custom flag, free to use [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_1E]by user
| |
− | :; <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_2E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a36aff389b54ace273398714fb679d293" class="target"></span>enumerator LV_OBJ_FLAG_USER_2[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_2E] <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_2E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a36aff389b54ace273398714fb679d293" class="target"></span>
| |
− | :: Custom flag, free to use [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_2E]by user
| |
− | :; <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_3E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a290cacf233e96ec97f1f9e475754def2" class="target"></span>enumerator LV_OBJ_FLAG_USER_3[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_3E] <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_3E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a290cacf233e96ec97f1f9e475754def2" class="target"></span>
| |
− | :: Custom flag, free to use [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_3E]by user
| |
− | :; <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_4E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a32304027ab6e5bbddab828424b58bfe9" class="target"></span>enumerator LV_OBJ_FLAG_USER_4[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_4E] <span id="_CPPv3NUt1_318LV_OBJ_FLAG_USER_4E"></span><span id="lv__obj_8h_1abc6126af1d45847bc59afa0aa3216b04a32304027ab6e5bbddab828424b58bfe9" class="target"></span>
| |
− | :: Custom flag, free to use [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4NUt1_318LV_OBJ_FLAG_USER_4E]by user
| |
| | | |
− | ; <span id="_CPPv323lv_obj_draw_part_type_t"></span><span id="_CPPv223lv_obj_draw_part_type_t"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfa" class="target"></span>enum lv_obj_draw_part_type_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv423lv_obj_draw_part_type_t] <span id="_CPPv323lv_obj_draw_part_type_t"></span><span id="_CPPv223lv_obj_draw_part_type_t"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfa" class="target"></span>
| + | * '''LV_PROTECT_NONE''' 保護なし |
− | : <code>type</code> field in <code>lv_obj_dra</code>[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv423lv_obj_draw_part_type_t]<code>w_part_dsc_t</code> if <code>class_p = lv_obj_class</code> Used in <code>LV_EVENT_DRAW_PART_BEGIN</code> and <code>LV_EVENT_DRAW_PART_END</code> ''Values:''
| + | * '''LV_PROTECT_POS''' 自動配置を防止します (例: コンテナー内のレイアウト) |
− | :; <span id="_CPPv3N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_RECTANGLEE"></span><span id="_CPPv2N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_RECTANGLEE"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfaafc6e874c0671558c04c54e2f066270da" class="target"></span>enumerator LV_OBJ_DRAW_PART_RECTANGLE[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_RECTANGLEE] <span id="_CPPv3N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_RECTANGLEE"></span><span id="_CPPv2N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_RECTANGLEE"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfaafc6e874c0671558c04c54e2f066270da" class="target"></span> | + | * '''LV_PROTECT_FOLLOW''' 自動順序付け (例: コンテナー内のレイアウト) でオブジェクトが続く (「改行」を行う) のを防ぎます。 |
− | :: The main rectangle | + | * '''LV_PROTECT_PARENT''' 自動親変更を防ぎます。 (例: Page は、背景に作成された子をスクロール可能に移動します) |
− | :; <span id="_CPPv3N23lv_obj_draw_part_type_t28LV_OBJ_DRAW_PART_BORDER_POSTE"></span><span id="_CPPv2N23lv_obj_draw_part_type_t28LV_OBJ_DRAW_PART_BORDER_POSTE"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfaa69c22513315938988b37fbd57d8df0df" class="target"></span>enumerato[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_RECTANGLEE]r LV_OBJ_DRAW_PART_BORDER_POST[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N23lv_obj_draw_part_type_t28LV_OBJ_DRAW_PART_BORDER_POSTE] <span id="_CPPv3N23lv_obj_draw_part_type_t28LV_OBJ_DRAW_PART_BORDER_POSTE"></span><span id="_CPPv2N23lv_obj_draw_part_type_t28LV_OBJ_DRAW_PART_BORDER_POSTE"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfaa69c22513315938988b37fbd57d8df0df" class="target"></span> | + | * '''LV_PROTECT_PRESS_LOST''' プレスがオブジェクトからスライドしたときにプレスが失われるのを防ぎます。 (たとえば、ボタンが押されていた場合、ボタンを離すことができます) |
− | :: The border if style_border_post = t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N23lv_obj_draw_part_type_t28LV_OBJ_DRAW_PART_BORDER_POSTE]rue
| + | * '''LV_PROTECT_CLICK_FOCUS''' オブジェクトがグループ内にあり、クリック フォーカスが有効になっている場合、オブジェクトが自動的にフォーカスされるのを防ぎます。 |
− | :; <span id="_CPPv3N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_SCROLLBARE"></span><span id="_CPPv2N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_SCROLLBARE"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfaae44ddaa12cc79f7b977e95ccf69fcea7" class="target"></span>enumerator LV_OBJ_DRAW_PART_SCROLLBAR[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_SCROLLBARE] <span id="_CPPv3N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_SCROLLBARE"></span><span id="_CPPv2N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_SCROLLBARE"></span><span id="lv__obj_8h_1a4b405752eb666638d7ab3436ccb86cfaae44ddaa12cc79f7b977e95ccf69fcea7" class="target"></span>
| + | * '''LV_PROTECT_CHILD_CHG''' 子変更信号を無効にします。ライブラリによって内部的に使用されます |
− | :: The scrollbar
| |
| | | |
− | Functions
| |
| | | |
− | ; <span id="_CPPv37lv_initv"></span><span id="_CPPv27lv_initv"></span><span id="lv_init__void"></span><span id="lv__obj_8h_1a666fa58edac1e61856b2a00fe60308a0" class="target"></span>v[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N23lv_obj_draw_part_type_t26LV_OBJ_DRAW_PART_SCROLLBARE]oid lv_init(void)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv47lv_initv] <span id="_CPPv37lv_initv"></span><span id="_CPPv27lv_initv"></span><span id="lv_init__void"></span><span id="lv__obj_8h_1a666fa58edac1e61856b2a00fe60308a0" class="target"></span>
| + | <code style="color: #bb0000;">lv_obj_add/clear_protect(obj, LV_PROTECT_...)</code> は、保護を設定/クリアします。保護タイプの「OR」値も使用できます。 |
− | : Initialize LVG[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv47lv_initv]L library. Should be called before any other LVGL related function. | + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
− | ; <span id="_CPPv39lv_deinitv"></span><span id="_CPPv29lv_deinitv"></span><span id="lv_deinit__void"></span><span id="lv__obj_8h_1a302a9934e9b77badac7f527b5116a156" class="target"></span>void lv_deinit(void)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv49lv_deinitv] <span id="_CPPv39lv_deinitv"></span><span id="_CPPv29lv_deinitv"></span><span id="lv_deinit__void"></span><span id="lv__obj_8h_1a302a9934e9b77badac7f527b5116a156" class="target"></span>
| |
− | : Deinit the 'lv' [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv49lv_deinitv]library Currently only implemented when not using custom allocators, or GC is enabled.
| |
| | | |
− | ; <span id="_CPPv317lv_is_initializedv"></span><span id="_CPPv217lv_is_initializedv"></span><span id="lv_is_initialized__void"></span><span id="lv__obj_8h_1a548cb2278027f044b648acd7f02b2f0c" class="target"></span>bool lv_is_initialized(void)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv417lv_is_initializedv] <span id="_CPPv317lv_is_initializedv"></span><span id="_CPPv217lv_is_initializedv"></span><span id="lv_is_initialized__void"></span><span id="lv__obj_8h_1a548cb2278027f044b648acd7f02b2f0c" class="target"></span>
| + | === Groups === |
− | : Returns whether the 'lv'[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv417lv_is_initializedv] library is currently initialized
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | Once, an object is added to ''group'' with <code style="color: #bb0000;">lv_group_add_obj(group, obj)</code> the object's current group can be get with <code style="color: #bb0000;">lv_obj_get_group(obj)</code>. |
| | | |
− | ; <span id="_CPPv313lv_obj_createP8lv_obj_t"></span><span id="_CPPv213lv_obj_createP8lv_obj_t"></span><span id="lv_obj_create__lv_obj_tP"></span><span id="lv__obj_8h_1a3ec100c35eb3851993b1af37c3250dad" class="target"></span>lv_obj_t *lv_obj_create(lv_obj_t *parent)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv413lv_obj_createP8lv_obj_t] <span id="_CPPv313lv_obj_createP8lv_obj_t"></span><span id="_CPPv213lv_obj_createP8lv_obj_t"></span><span id="lv_obj_create__lv_obj_tP"></span><span id="lv__obj_8h_1a3ec100c35eb3851993b1af37c3250dad" class="target"></span>
| |
− | : Create a base object (a rectangle)
| |
− | :; [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv413lv_obj_createP8lv_obj_t]Parameters
| |
− | :: parent -- pointer to a parent object. If NULL then a screen will be created.
| |
− | :; Returns
| |
− | :: pointer to the new object
| |
| | | |
− | ; <span id="_CPPv315lv_obj_add_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv215lv_obj_add_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_add_flag__lv_obj_tP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a87fa70194789d48ea3dba01d1c28c984" class="target"></span>void lv_obj_add_flag(lv_obj_t *obj, lv_obj_flag_t f)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv415lv_obj_add_flagP8lv_obj_t13lv_obj_flag_t] <span id="_CPPv315lv_obj_add_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv215lv_obj_add_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_add_flag__lv_obj_tP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a87fa70194789d48ea3dba01d1c28c984" class="target"></span>
| + | <code style="color: #bb0000;">lv_obj_is_focused(obj)</code> tells 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. |
− | : Set one or more flags
| |
− | :; Parameters | |
− | ::* obj -- [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv415lv_obj_add_flagP8lv_obj_t13lv_obj_flag_t]pointer to an object
| |
− | ::* f -- R-ed values from <code>lv_obj_flag_t</code> to set.
| |
| | | |
− | ; <span id="_CPPv317lv_obj_clear_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv217lv_obj_clear_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_clear_flag__lv_obj_tP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a8a45a671b0fb07c0e99639c180d25fba" class="target"></span>void lv_obj_clear_flag(lv_obj_t *obj, lv_obj_flag_t f)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv417lv_obj_clear_flagP8lv_obj_t13lv_obj_flag_t] <span id="_CPPv317lv_obj_clear_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv217lv_obj_clear_flagP8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_clear_flag__lv_obj_tP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a8a45a671b0fb07c0e99639c180d25fba" class="target"></span>
| |
− | : Clear one or more flags
| |
− | :; Parameters
| |
− | ::* obj -- [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv417lv_obj_clear_flagP8lv_obj_t13lv_obj_flag_t]pointer to an object
| |
− | ::* f -- OR-ed values from <code>lv_obj_flag_t</code> to set.
| |
| | | |
− | ; <span id="_CPPv316lv_obj_add_stateP8lv_obj_t10lv_state_t"></span><span id="_CPPv216lv_obj_add_stateP8lv_obj_t10lv_state_t"></span><span id="lv_obj_add_state__lv_obj_tP.lv_state_t"></span><span id="lv__obj_8h_1adbd258635d3d653e5446336764044db1" class="target"></span>void lv_obj_add_state(lv_obj_t *obj, lv_state_t state)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_add_stateP8lv_obj_t10lv_state_t] <span id="_CPPv316lv_obj_add_stateP8lv_obj_t10lv_state_t"></span><span id="_CPPv216lv_obj_add_stateP8lv_obj_t10lv_state_t"></span><span id="lv_obj_add_state__lv_obj_tP.lv_state_t"></span><span id="lv__obj_8h_1adbd258635d3d653e5446336764044db1" class="target"></span>
| + | Read the Input devices overview to learn more about the ''Groups''. |
− | : Add one or more states to the object. The other st[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_add_stateP8lv_obj_t10lv_state_t]ate bits will remain unchanged. If specified in the styles, transition animation will be started from the previous state to the current.
| + | |オブジェクトが <code style="color: #bb0000;">lv_group_add_obj(group, obj)</code>でグループに追加されると、オブジェクトの現在のグループは <code style="color: #bb0000;">lv_obj_get_group(obj)</code> で取得できます。 |
− | :; Parameters
| |
− | ::* obj -- pointer to an object
| |
− | ::* state -- the states to add. E.g <code>LV_STATE_PRESSED | LV_STATE_FOCUSED</code>
| |
| | | |
− | ; <span id="_CPPv318lv_obj_clear_stateP8lv_obj_t10lv_state_t"></span><span id="_CPPv218lv_obj_clear_stateP8lv_obj_t10lv_state_t"></span><span id="lv_obj_clear_state__lv_obj_tP.lv_state_t"></span><span id="lv__obj_8h_1ac94c26d36140c7c83da6914d60170e16" class="target"></span>void lv_obj_clear_state(lv_obj_t *obj, lv_state_t state)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv418lv_obj_clear_stateP8lv_obj_t10lv_state_t] <span id="_CPPv318lv_obj_clear_stateP8lv_obj_t10lv_state_t"></span><span id="_CPPv218lv_obj_clear_stateP8lv_obj_t10lv_state_t"></span><span id="lv_obj_clear_state__lv_obj_tP.lv_state_t"></span><span id="lv__obj_8h_1ac94c26d36140c7c83da6914d60170e16" class="target"></span>
| |
− | : Remove one or more states to the object. The other s[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv418lv_obj_clear_stateP8lv_obj_t10lv_state_t]tate bits will remain unchanged. If specified in the styles, transition animation will be started from the previous state to the current.
| |
− | :; Parameters
| |
− | ::* obj -- pointer to an object
| |
− | ::* state -- the states to add. E.g <code>LV_STATE_PRESSED | LV_STATE_FOCUSED</code>
| |
| | | |
− | ; <span id="_CPPv320lv_obj_set_user_dataP8lv_obj_tPv"></span><span id="_CPPv220lv_obj_set_user_dataP8lv_obj_tPv"></span><span id="lv_obj_set_user_data__lv_obj_tP.voidP"></span><span id="lv__obj_8h_1a8365f69f32a3870a2b961b8d0751aeba" class="target"></span>static inline void lv_obj_set_user_data(lv_obj_t *obj, void *user_data)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv420lv_obj_set_user_dataP8lv_obj_tPv] <span id="_CPPv320lv_obj_set_user_dataP8lv_obj_tPv"></span><span id="_CPPv220lv_obj_set_user_dataP8lv_obj_tPv"></span><span id="lv_obj_set_user_data__lv_obj_tP.voidP"></span><span id="lv__obj_8h_1a8365f69f32a3870a2b961b8d0751aeba" class="target"></span>
| + | <code style="color: #bb0000;">lv_obj_is_focused(obj)</code>は、オブジェクトが現在そのグループにフォーカスされているかどうかを示します。 オブジェクトがグループに追加されていない場合は、<code style="color: #bb0000;">false</code> が返されます。 |
− | : Set the user_data field of the object
| |
− | :; Parameters
| |
− | ::* obj -- poi[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv420lv_obj_set_user_dataP8lv_obj_tPv]nter to an object
| |
− | ::* user_data -- pointer to the new user_data.
| |
| | | |
− | ; <span id="_CPPv315lv_obj_has_flagPK8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv215lv_obj_has_flagPK8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_has_flag__lv_obj_tCP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a349bf1b6dea18bd0ab189e7a1c06a662" class="target"></span>bool lv_obj_has_flag(const lv_obj_t *obj, lv_obj_flag_t f)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv415lv_obj_has_flagPK8lv_obj_t13lv_obj_flag_t] <span id="_CPPv315lv_obj_has_flagPK8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv215lv_obj_has_flagPK8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_has_flag__lv_obj_tCP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a349bf1b6dea18bd0ab189e7a1c06a662" class="target"></span>
| |
− | : Check if a given flag or all the given flags are set o[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv415lv_obj_has_flagPK8lv_obj_t13lv_obj_flag_t]n an object.
| |
− | :; Parameters
| |
− | ::* obj -- pointer to an object
| |
− | ::* f -- the flag(s) to check (OR-ed values can be used)
| |
− | :; Returns
| |
− | :: true: all flags are set; false: not all flags are set
| |
| | | |
− | ; <span id="_CPPv319lv_obj_has_flag_anyPK8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv219lv_obj_has_flag_anyPK8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_has_flag_any__lv_obj_tCP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a29244deb39942043ee658fbb8e1a47d2" class="target"></span>bool lv_obj_has_flag_any(const lv_obj_t *obj, lv_obj_flag_t f)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv419lv_obj_has_flag_anyPK8lv_obj_t13lv_obj_flag_t] <span id="_CPPv319lv_obj_has_flag_anyPK8lv_obj_t13lv_obj_flag_t"></span><span id="_CPPv219lv_obj_has_flag_anyPK8lv_obj_t13lv_obj_flag_t"></span><span id="lv_obj_has_flag_any__lv_obj_tCP.lv_obj_flag_t"></span><span id="lv__obj_8h_1a29244deb39942043ee658fbb8e1a47d2" class="target"></span>
| |
− | : Check if a given flag or any of the flags are set on an ob[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv419lv_obj_has_flag_anyPK8lv_obj_t13lv_obj_flag_t]ject.
| |
− | :; Parameters
| |
− | ::* obj -- pointer to an object
| |
− | ::* f -- the flag(s) to check (OR-ed values can be used)
| |
− | :; Returns
| |
− | :: true: at lest one flag flag is set; false: none of the flags are set
| |
| | | |
− | ; <span id="_CPPv316lv_obj_get_statePK8lv_obj_t"></span><span id="_CPPv216lv_obj_get_statePK8lv_obj_t"></span><span id="lv_obj_get_state__lv_obj_tCP"></span><span id="lv__obj_8h_1a512731c24ce12b0e62abb3179cbde6ed" class="target"></span>lv_state_t lv_obj_get_state(const lv_obj_t *obj)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_get_statePK8lv_obj_t] <span id="_CPPv316lv_obj_get_statePK8lv_obj_t"></span><span id="_CPPv216lv_obj_get_statePK8lv_obj_t"></span><span id="lv_obj_get_state__lv_obj_tCP"></span><span id="lv__obj_8h_1a512731c24ce12b0e62abb3179cbde6ed" class="target"></span>
| + | グループの詳細については、入力デバイスの概要をご覧ください。 |
− | : Get the state of an object
| + | |} |
− | :; Parameters | + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
− | :: [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_get_statePK8lv_obj_t]obj -- pointer to an object | |
− | :; Returns | |
− | :: the state (OR-ed values from <code>lv_state_t</code>) | |
| | | |
− | ; <span id="_CPPv316lv_obj_has_statePK8lv_obj_t10lv_state_t"></span><span id="_CPPv216lv_obj_has_statePK8lv_obj_t10lv_state_t"></span><span id="lv_obj_has_state__lv_obj_tCP.lv_state_t"></span><span id="lv__obj_8h_1af6296b36dd5eddc61f5544761b1ff5a7" class="target"></span>bool lv_obj_has_state(const lv_obj_t *obj, lv_state_t state)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_has_statePK8lv_obj_t10lv_state_t] <span id="_CPPv316lv_obj_has_statePK8lv_obj_t10lv_state_t"></span><span id="_CPPv216lv_obj_has_statePK8lv_obj_t10lv_state_t"></span><span id="lv_obj_has_state__lv_obj_tCP.lv_state_t"></span><span id="lv__obj_8h_1af6296b36dd5eddc61f5544761b1ff5a7" class="target"></span>
| |
− | : Check if the object is in a given state or not.
| |
− | :; Param[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_has_statePK8lv_obj_t10lv_state_t]eters
| |
− | ::* obj -- pointer to an object
| |
− | ::* state -- a state or combination of states to check
| |
− | :; Returns
| |
− | :: true: <code>obj</code> is in <code>state</code>; false: <code>obj</code> is not in <code>state</code>
| |
| | | |
− | ; <span id="_CPPv316lv_obj_get_groupPK8lv_obj_t"></span><span id="_CPPv216lv_obj_get_groupPK8lv_obj_t"></span><span id="lv_obj_get_group__lv_obj_tCP"></span><span id="lv__obj_8h_1a4096ec8a90cb787d671867b9bd43dc73" class="target"></span>void *lv_obj_get_group(const lv_obj_t *obj)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_get_groupPK8lv_obj_t] <span id="_CPPv316lv_obj_get_groupPK8lv_obj_t"></span><span id="_CPPv216lv_obj_get_groupPK8lv_obj_t"></span><span id="lv_obj_get_group__lv_obj_tCP"></span><span id="lv__obj_8h_1a4096ec8a90cb787d671867b9bd43dc73" class="target"></span>
| + | === Extended click area === |
− | : Get the group of the object
| + | {| class="wikitable" |
− | :; Paramete[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_get_groupPK8lv_obj_t]rs
| + | !英文 |
− | :: obj -- pointer to an object
| + | !自動翻訳 |
− | :; Returns
| + | |- |
− | :: the pointer to group of the object
| + | | |
| + | By default, the objects can be clicked only on their coordinates, however, this area can be extended with <code style="color: #bb0000;">lv_obj_set_ext_click_area(obj, left, right, top, bottom)</code>. |
| | | |
− | ; <span id="_CPPv320lv_obj_get_user_dataP8lv_obj_t"></span><span id="_CPPv220lv_obj_get_user_dataP8lv_obj_t"></span><span id="lv_obj_get_user_data__lv_obj_tP"></span><span id="lv__obj_8h_1aa5a39817d4cbee2420ee5b4d7e466d28" class="target"></span>static inline void *lv_obj_get_user_data(lv_obj_t *obj)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv420lv_obj_get_user_dataP8lv_obj_t] <span id="_CPPv320lv_obj_get_user_dataP8lv_obj_t"></span><span id="_CPPv220lv_obj_get_user_dataP8lv_obj_t"></span><span id="lv_obj_get_user_data__lv_obj_tP"></span><span id="lv__obj_8h_1aa5a39817d4cbee2420ee5b4d7e466d28" class="target"></span>
| + | <code style="color: #bb0000;">left/right/top/bottom</code> describes how far the clickable area should extend past the default in each direction. |
− | : Get the user_data field of the object
| |
− | :; Parameters[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv420lv_obj_get_user_dataP8lv_obj_t]
| |
− | :: obj -- pointer to an object
| |
− | :; Returns
| |
− | :: the pointer to the user_data of the object
| |
| | | |
− | ; <span id="_CPPv325lv_obj_allocate_spec_attrP8lv_obj_t"></span><span id="_CPPv225lv_obj_allocate_spec_attrP8lv_obj_t"></span><span id="lv_obj_allocate_spec_attr__lv_obj_tP"></span><span id="lv__obj_8h_1a1b734607bd80d900ba862375d08227cf" class="target"></span>void lv_obj_allocate_spec_attr(lv_obj_t *obj)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv425lv_obj_allocate_spec_attrP8lv_obj_t] <span id="_CPPv325lv_obj_allocate_spec_attrP8lv_obj_t"></span><span id="_CPPv225lv_obj_allocate_spec_attrP8lv_obj_t"></span><span id="lv_obj_allocate_spec_attr__lv_obj_tP"></span><span id="lv__obj_8h_1a1b734607bd80d900ba862375d08227cf" class="target"></span>
| |
− | : Allocate special data for an object if no[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv425lv_obj_allocate_spec_attrP8lv_obj_t]t allocated yet.
| |
− | :; Parameters
| |
− | :: obj -- pointer to an object
| |
| | | |
− | ; <span id="_CPPv317lv_obj_check_typePK8lv_obj_tPK14lv_obj_class_t"></span><span id="_CPPv217lv_obj_check_typePK8lv_obj_tPK14lv_obj_class_t"></span><span id="lv_obj_check_type__lv_obj_tCP.lv_obj_class_tCP"></span><span id="lv__obj_8h_1a3d7bedf32977bdf5a8ddfa01f1302c08" class="target"></span>bool lv_obj_check_type(const lv_obj_t *obj, const lv_obj_class_t *class_p)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv417lv_obj_check_typePK8lv_obj_tPK14lv_obj_class_t] <span id="_CPPv317lv_obj_check_typePK8lv_obj_tPK14lv_obj_class_t"></span><span id="_CPPv217lv_obj_check_typePK8lv_obj_tPK14lv_obj_class_t"></span><span id="lv_obj_check_type__lv_obj_tCP.lv_obj_class_tCP"></span><span id="lv__obj_8h_1a3d7bedf32977bdf5a8ddfa01f1302c08" class="target"></span>
| + | This feature needs to enabled in ''lv_conf.h'' with <code style="color: #bb0000;">LV_USE_EXT_CLICK_AREA</code>. |
− | : Check the type of obj.
| |
− | :; Parameters
| |
− | ::* obj -- pointer to an object [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv417lv_obj_check_typePK8lv_obj_tPK14lv_obj_class_t]
| |
− | ::* class_p -- a class to check (e.g. <code>lv_slider_class</code>)
| |
− | :; Returns
| |
− | :: true: <code>class_p</code> is the <code>obj</code> class.
| |
| | | |
− | ; <span id="_CPPv316lv_obj_has_classPK8lv_obj_tPK14lv_obj_class_t"></span><span id="_CPPv216lv_obj_has_classPK8lv_obj_tPK14lv_obj_class_t"></span><span id="lv_obj_has_class__lv_obj_tCP.lv_obj_class_tCP"></span><span id="lv__obj_8h_1a27480f49b6f82e0e2643c1dd09735e9d" class="target"></span>bool lv_obj_has_class(const lv_obj_t *obj, const lv_obj_class_t *class_p)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_has_classPK8lv_obj_tPK14lv_obj_class_t] <span id="_CPPv316lv_obj_has_classPK8lv_obj_tPK14lv_obj_class_t"></span><span id="_CPPv216lv_obj_has_classPK8lv_obj_tPK14lv_obj_class_t"></span><span id="lv_obj_has_class__lv_obj_tCP.lv_obj_class_tCP"></span><span id="lv__obj_8h_1a27480f49b6f82e0e2643c1dd09735e9d" class="target"></span>
| + | The possible values are: |
− | : Check if any object has a given class (type). It checks the ancestor [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_has_classPK8lv_obj_tPK14lv_obj_class_t]classes too.
| |
− | :; Parameters
| |
− | ::* obj -- pointer to an object
| |
− | ::* class_p -- a class to check (e.g. <code>lv_slider_class</code>)
| |
− | :; Returns
| |
− | :: true: <code>obj</code> has the given class
| |
| | | |
− | ; <span id="_CPPv316lv_obj_get_classPK8lv_obj_t"></span><span id="_CPPv216lv_obj_get_classPK8lv_obj_t"></span><span id="lv_obj_get_class__lv_obj_tCP"></span><span id="lv__obj_8h_1a6e54ac8307d229a201d1239b7c14a24f" class="target"></span>const lv_obj_class_t *lv_obj_get_class(const lv_obj_t *obj)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_get_classPK8lv_obj_t] <span id="_CPPv316lv_obj_get_classPK8lv_obj_t"></span><span id="_CPPv216lv_obj_get_classPK8lv_obj_t"></span><span id="lv_obj_get_class__lv_obj_tCP"></span><span id="lv__obj_8h_1a6e54ac8307d229a201d1239b7c14a24f" class="target"></span>
| + | * LV_EXT_CLICK_AREA_FULL store all 4 coordinates as <code style="color: #bb0000;">lv_coord_t</code> |
− | : Get the class (type) of the object
| + | * LV_EXT_CLICK_AREA_TINY store only horizontal and vertical coordinates (use the greater value of left/right and top/bottom) as <code style="color: #bb0000;">uint8_t</code> |
− | :; Parameters
| + | * LV_EXT_CLICK_AREA_OFF Disable this feature |
− | :: obj[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv416lv_obj_get_classPK8lv_obj_t] -- pointer to an object
| + | |デフォルトでは、オブジェクトは座標上でのみクリックできますが、この領域は<code style="color: #bb0000;">v_obj_set_ext_click_area(obj, left, right, top, bottom)</code>で拡張できます。 |
− | :; Returns
| + | <code style="color: #bb0000;">left/right/top/bottom</code>は、クリック可能な領域がデフォルトを超えて各方向にどれだけ拡張されるかを示します。 |
− | :: the class (type) of the object
| |
| | | |
− | ; <span id="_CPPv315lv_obj_is_validPK8lv_obj_t"></span><span id="_CPPv215lv_obj_is_validPK8lv_obj_t"></span><span id="lv_obj_is_valid__lv_obj_tCP"></span><span id="lv__obj_8h_1a4c220acd20b632ad2d4ca7cd7a3023bb" class="target"></span>bool lv_obj_is_valid(const lv_obj_t *obj)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv415lv_obj_is_validPK8lv_obj_t] <span id="_CPPv315lv_obj_is_validPK8lv_obj_t"></span><span id="_CPPv215lv_obj_is_validPK8lv_obj_t"></span><span id="lv_obj_is_valid__lv_obj_tCP"></span><span id="lv__obj_8h_1a4c220acd20b632ad2d4ca7cd7a3023bb" class="target"></span>
| |
− | : Check if any object is still "alive".[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv415lv_obj_is_validPK8lv_obj_t]
| |
− | :; Parameters
| |
− | :: obj -- pointer to an object
| |
− | :; Returns
| |
− | :: true: valid
| |
| | | |
− | ; <span id="_CPPv310lv_obj_dpxPK8lv_obj_t10lv_coord_t"></span><span id="_CPPv210lv_obj_dpxPK8lv_obj_t10lv_coord_t"></span><span id="lv_obj_dpx__lv_obj_tCP.lv_coord_t"></span><span id="lv__obj_8h_1afd033d8537f915e7fb845f16095e050d" class="target"></span>static inline lv_coord_t lv_obj_dpx(const lv_obj_t *obj, lv_coord_t n)[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv410lv_obj_dpxPK8lv_obj_t10lv_coord_t] <span id="_CPPv310lv_obj_dpxPK8lv_obj_t10lv_coord_t"></span><span id="_CPPv210lv_obj_dpxPK8lv_obj_t10lv_coord_t"></span><span id="lv_obj_dpx__lv_obj_tCP.lv_coord_t"></span><span id="lv__obj_8h_1afd033d8537f915e7fb845f16095e050d" class="target"></span>
| + | この機能は、<code style="color: #bb0000;">LV_USE_EXT_CLICK_AREA</code> を使用して lv_conf.h で有効にする必要があります。 |
− | : Scale the given number of pixels (a distance or size) relative to [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv410lv_obj_dpxPK8lv_obj_t10lv_coord_t]a 160 DPI display considering the DPI of the <code>obj</code>'s display. It ensures that e.g. <code>lv_dpx(100)</code> will have the same physical size regardless to the DPI of the display.
| |
− | :; Parameters
| |
− | ::* obj -- an object whose display's dpi should be considered
| |
− | ::* n -- the number of pixels to scale
| |
− | :; Returns
| |
− | :: <code>n x current_dpi/160</code>
| |
| | | |
− | Variables
| + | 可能な値は次のとおりです。 |
| | | |
− | ; <span id="_CPPv312lv_obj_class"></span><span id="_CPPv212lv_obj_class"></span><span id="lv_obj_class__lv_obj_class_tC"></span><span id="lv__obj_8h_1a424ca3b432ad82f98c4b05950b597d44" class="target"></span>const lv_obj_class_t lv_obj_class[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv412lv_obj_class] <span id="_CPPv312lv_obj_class"></span><span id="_CPPv212lv_obj_class"></span><span id="lv_obj_class__lv_obj_class_tC"></span><span id="lv__obj_8h_1a424ca3b432ad82f98c4b05950b597d44" class="target"></span>
| + | * LV_EXT_CLICK_AREA_FULL 4 つの座標すべてを <code style="color: #bb0000;">lv_coord_t</code> として保存します |
− | : Make the base object's class [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv412lv_obj_class]publicly available. | + | * LV_EXT_CLICK_AREA_TINY は、<code style="color: #bb0000;">uint8_t</code> として水平および垂直座標のみを格納します (左/右および上/下の大きい方の値を使用)。 |
| + | * LV_EXT_CLICK_AREA_OFF この機能を無効にする |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
− | ; <span id="_CPPv319_lv_obj_spec_attr_t"></span><span id="_CPPv219_lv_obj_spec_attr_t"></span><span id="_lv_obj_spec_attr_t"></span><span id="struct__lv__obj__spec__attr__t" class="target"></span>struct _lv_obj_spec_attr_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv419_lv_obj_spec_attr_t] <span id="_CPPv319_lv_obj_spec_attr_t"></span><span id="_CPPv219_lv_obj_spec_attr_t"></span><span id="_lv_obj_spec_attr_t"></span><span id="struct__lv__obj__spec__attr__t" class="target"></span>
| |
− | : ''#include <lv_obj.h>'' S[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv419_lv_obj_spec_attr_t]pecial, rarely used attributes. They are allocated automatically if any elements is set. Public Members
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t8childrenE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t8childrenE"></span><span id="_lv_obj_spec_attr_t::children___lv_obj_tPP"></span><span id="struct__lv__obj__spec__attr__t_1a24899261813fe9686805031d6e753145" class="target"></span>struct _lv_obj_t **children[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t8childrenE] <span id="_CPPv3N19_lv_obj_spec_attr_t8childrenE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t8childrenE"></span><span id="_lv_obj_spec_attr_t::children___lv_obj_tPP"></span><span id="struct__lv__obj__spec__attr__t_1a24899261813fe9686805031d6e753145" class="target"></span>
| |
− | :: Store the pointer of th[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t8childrenE]e children in an array.
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t9child_cntE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t9child_cntE"></span><span id="_lv_obj_spec_attr_t::child_cnt__uint32_t"></span><span id="struct__lv__obj__spec__attr__t_1a4e00767c29ba01c4f7be7e4ca5f1d52f" class="target"></span>uint32_t child_cnt[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t9child_cntE] <span id="_CPPv3N19_lv_obj_spec_attr_t9child_cntE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t9child_cntE"></span><span id="_lv_obj_spec_attr_t::child_cnt__uint32_t"></span><span id="struct__lv__obj__spec__attr__t_1a4e00767c29ba01c4f7be7e4ca5f1d52f" class="target"></span>
| |
− | :: Number of chil[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t9child_cntE]dren
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t7group_pE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t7group_pE"></span><span id="_lv_obj_spec_attr_t::group_p__lv_group_tP"></span><span id="struct__lv__obj__spec__attr__t_1afcb4e50fc3a05683f08e4af206759414" class="target"></span>lv_group_t *group_p[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t7group_pE] <span id="_CPPv3N19_lv_obj_spec_attr_t7group_pE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t7group_pE"></span><span id="_lv_obj_spec_attr_t::group_p__lv_group_tP"></span><span id="struct__lv__obj__spec__attr__t_1afcb4e50fc3a05683f08e4af206759414" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t9event_dscE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t9event_dscE"></span><span id="_lv_obj_spec_attr_t::event_dsc___lv_event_dsc_tP"></span><span id="struct__lv__obj__spec__attr__t_1a41c8f14eb458a527ce93ddb14228d2e6" class="target"></span>struct _l[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t7group_pE]v_event_dsc_t *event_dsc[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t9event_dscE] <span id="_CPPv3N19_lv_obj_spec_attr_t9event_dscE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t9event_dscE"></span><span id="_lv_obj_spec_attr_t::event_dsc___lv_event_dsc_tP"></span><span id="struct__lv__obj__spec__attr__t_1a41c8f14eb458a527ce93ddb14228d2e6" class="target"></span>
| |
− | :: Dynamically allocated event c[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t9event_dscE]allback and user data array
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t6scrollE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t6scrollE"></span><span id="_lv_obj_spec_attr_t::scroll__lv_point_t"></span><span id="struct__lv__obj__spec__attr__t_1a777cd35b43ca269c6d695a1578fec43e" class="target"></span>lv_point_t scroll[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t6scrollE] <span id="_CPPv3N19_lv_obj_spec_attr_t6scrollE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t6scrollE"></span><span id="_lv_obj_spec_attr_t::scroll__lv_point_t"></span><span id="struct__lv__obj__spec__attr__t_1a777cd35b43ca269c6d695a1578fec43e" class="target"></span>
| |
− | :: The current X[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t6scrollE]/Y scroll offset
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t13ext_click_padE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13ext_click_padE"></span><span id="_lv_obj_spec_attr_t::ext_click_pad__lv_coord_t"></span><span id="struct__lv__obj__spec__attr__t_1a3254cf494f1cc0806aa8ccdda1a3ea83" class="target"></span>lv_coord_t ext_click_pad[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13ext_click_padE] <span id="_CPPv3N19_lv_obj_spec_attr_t13ext_click_padE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13ext_click_padE"></span><span id="_lv_obj_spec_attr_t::ext_click_pad__lv_coord_t"></span><span id="struct__lv__obj__spec__attr__t_1a3254cf494f1cc0806aa8ccdda1a3ea83" class="target"></span>
| |
− | :: Extra click padding [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13ext_click_padE]in all direction
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t13ext_draw_sizeE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13ext_draw_sizeE"></span><span id="_lv_obj_spec_attr_t::ext_draw_size__lv_coord_t"></span><span id="struct__lv__obj__spec__attr__t_1a73aca9ce51fdd07c6266ed5c2dba6aa7" class="target"></span>lv_coord_t ext_draw_size[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13ext_draw_sizeE] <span id="_CPPv3N19_lv_obj_spec_attr_t13ext_draw_sizeE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13ext_draw_sizeE"></span><span id="_lv_obj_spec_attr_t::ext_draw_size__lv_coord_t"></span><span id="struct__lv__obj__spec__attr__t_1a73aca9ce51fdd07c6266ed5c2dba6aa7" class="target"></span>
| |
− | :: EXTend the size in e[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13ext_draw_sizeE]very direction for drawing.
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t14scrollbar_modeE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t14scrollbar_modeE"></span><span id="_lv_obj_spec_attr_t::scrollbar_mode__lv_scrollbar_mode_t"></span><span id="struct__lv__obj__spec__attr__t_1a1172b4fc8c2ebce6d338d693990550fc" class="target"></span>lv_scrollbar_mode_t scrollbar_mode[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t14scrollbar_modeE] <span id="_CPPv3N19_lv_obj_spec_attr_t14scrollbar_modeE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t14scrollbar_modeE"></span><span id="_lv_obj_spec_attr_t::scrollbar_mode__lv_scrollbar_mode_t"></span><span id="struct__lv__obj__spec__attr__t_1a1172b4fc8c2ebce6d338d693990550fc" class="target"></span>
| |
− | :: How to display scrollbars
| |
− | :; [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t14scrollbar_modeE]<span id="_CPPv3N19_lv_obj_spec_attr_t13scroll_snap_xE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13scroll_snap_xE"></span><span id="_lv_obj_spec_attr_t::scroll_snap_x__lv_scroll_snap_t"></span><span id="struct__lv__obj__spec__attr__t_1a258fb40ccbbef31fd83d1fb7b0c61434" class="target"></span>lv_scroll_snap_t scroll_snap_x[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13scroll_snap_xE] <span id="_CPPv3N19_lv_obj_spec_attr_t13scroll_snap_xE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13scroll_snap_xE"></span><span id="_lv_obj_spec_attr_t::scroll_snap_x__lv_scroll_snap_t"></span><span id="struct__lv__obj__spec__attr__t_1a258fb40ccbbef31fd83d1fb7b0c61434" class="target"></span>
| |
− | :: Where to align the snappab[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13scroll_snap_xE]le children horizontally
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t13scroll_snap_yE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13scroll_snap_yE"></span><span id="_lv_obj_spec_attr_t::scroll_snap_y__lv_scroll_snap_t"></span><span id="struct__lv__obj__spec__attr__t_1a0062a0595d0ea326aae1a0ab49785202" class="target"></span>lv_scroll_snap_t scroll_snap_y[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13scroll_snap_yE] <span id="_CPPv3N19_lv_obj_spec_attr_t13scroll_snap_yE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13scroll_snap_yE"></span><span id="_lv_obj_spec_attr_t::scroll_snap_y__lv_scroll_snap_t"></span><span id="struct__lv__obj__spec__attr__t_1a0062a0595d0ea326aae1a0ab49785202" class="target"></span>
| |
− | :: Where to align the snappab[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13scroll_snap_yE]le children vertically
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t10scroll_dirE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t10scroll_dirE"></span><span id="_lv_obj_spec_attr_t::scroll_dir__lv_dir_t"></span><span id="struct__lv__obj__spec__attr__t_1a85052ac92f99a5fc31c6e737b1fb2541" class="target"></span>lv_dir_t scroll_dir[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t10scroll_dirE] <span id="_CPPv3N19_lv_obj_spec_attr_t10scroll_dirE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t10scroll_dirE"></span><span id="_lv_obj_spec_attr_t::scroll_dir__lv_dir_t"></span><span id="struct__lv__obj__spec__attr__t_1a85052ac92f99a5fc31c6e737b1fb2541" class="target"></span>
| |
− | :: The allowed scr[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t10scroll_dirE]oll direction(s)
| |
− | :; <span id="_CPPv3N19_lv_obj_spec_attr_t13event_dsc_cntE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13event_dsc_cntE"></span><span id="_lv_obj_spec_attr_t::event_dsc_cnt__uint8_t"></span><span id="struct__lv__obj__spec__attr__t_1afbd96383fc9f21a0f97cc04bcb5dd4cd" class="target"></span>uint8_t event_dsc_cnt[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13event_dsc_cntE] <span id="_CPPv3N19_lv_obj_spec_attr_t13event_dsc_cntE"></span><span id="_CPPv2N19_lv_obj_spec_attr_t13event_dsc_cntE"></span><span id="_lv_obj_spec_attr_t::event_dsc_cnt__uint8_t"></span><span id="struct__lv__obj__spec__attr__t_1afbd96383fc9f21a0f97cc04bcb5dd4cd" class="target"></span>
| |
− | :: Number of event c[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N19_lv_obj_spec_attr_t13event_dsc_cntE]allbacks stored in <code>event_dsc</code> array
| |
| | | |
− | ; <span id="_CPPv39_lv_obj_t"></span><span id="_CPPv29_lv_obj_t"></span><span id="_lv_obj_t"></span><span id="struct__lv__obj__t" class="target"></span>struct _lv_obj_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv49_lv_obj_t] <span id="_CPPv39_lv_obj_t"></span><span id="_CPPv29_lv_obj_t"></span><span id="_lv_obj_t"></span><span id="struct__lv__obj__t" class="target"></span>
| + | == Events == |
− | : Public Membe[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv49_lv_obj_t]rs
| + | {| class="wikitable" |
− | :; <span id="_CPPv3N9_lv_obj_t7class_pE"></span><span id="_CPPv2N9_lv_obj_t7class_pE"></span><span id="_lv_obj_t::class_p__lv_obj_class_tCP"></span><span id="struct__lv__obj__t_1a5c45af901114834bdd67198582250b2d" class="target"></span>const lv_obj_class_t *class_p[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t7class_pE] <span id="_CPPv3N9_lv_obj_t7class_pE"></span><span id="_CPPv2N9_lv_obj_t7class_pE"></span><span id="_lv_obj_t::class_p__lv_obj_class_tCP"></span><span id="struct__lv__obj__t_1a5c45af901114834bdd67198582250b2d" class="target"></span>
| + | !英文 |
− | ::
| + | !自動翻訳 |
− | :; <span id="_CPPv3N9_lv_obj_t6parentE"></span><span id="_CPPv2N9_lv_obj_t6parentE"></span><span id="_lv_obj_t::parent___lv_obj_tP"></span><span id="struct__lv__obj__t_1abf27a654be0ee86860391c9104a4d098" class="target"></span>struct _lv_obj_t *p[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t7class_pE]arent[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t6parentE] <span id="_CPPv3N9_lv_obj_t6parentE"></span><span id="_CPPv2N9_lv_obj_t6parentE"></span><span id="_lv_obj_t::parent___lv_obj_tP"></span><span id="struct__lv__obj__t_1abf27a654be0ee86860391c9104a4d098" class="target"></span>
| + | |- |
− | ::
| + | |Only the [[App:Library:LVGL:docs:Overview:Events#Generic events|'''<u>Generic events</u>''']] are sent by the object type. |
− | :; <span id="_CPPv3N9_lv_obj_t9spec_attrE"></span><span id="_CPPv2N9_lv_obj_t9spec_attrE"></span><span id="_lv_obj_t::spec_attr___lv_obj_spec_attr_tP"></span><span id="struct__lv__obj__t_1acf5de681bc9200fd454f868c6820f3f0" class="target"></span>_lv_obj_spec_a[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t6parentE]ttr_t *spec_attr[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t9spec_attrE] <span id="_CPPv3N9_lv_obj_t9spec_attrE"></span><span id="_CPPv2N9_lv_obj_t9spec_attrE"></span><span id="_lv_obj_t::spec_attr___lv_obj_spec_attr_tP"></span><span id="struct__lv__obj__t_1acf5de681bc9200fd454f868c6820f3f0" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t6stylesE"></span><span id="_CPPv2N9_lv_obj_t6stylesE"></span><span id="_lv_obj_t::styles___lv_obj_style_tP"></span><span id="struct__lv__obj__t_1a6dcd3ad64fd488ac7c477dd314356f19" class="target"></span>_lv_obj_style_t *sty[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t9spec_attrE]les[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t6stylesE] <span id="_CPPv3N9_lv_obj_t6stylesE"></span><span id="_CPPv2N9_lv_obj_t6stylesE"></span><span id="_lv_obj_t::styles___lv_obj_style_tP"></span><span id="struct__lv__obj__t_1a6dcd3ad64fd488ac7c477dd314356f19" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t9user_dataE"></span><span id="_CPPv2N9_lv_obj_t9user_dataE"></span><span id="_lv_obj_t::user_data__voidP"></span><span id="struct__lv__obj__t_1a1fe66c89c9f51ba266c44e7a5d71352d" class="target"></span>void *user_da[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t6stylesE]ta[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t9user_dataE] <span id="_CPPv3N9_lv_obj_t9user_dataE"></span><span id="_CPPv2N9_lv_obj_t9user_dataE"></span><span id="_lv_obj_t::user_data__voidP"></span><span id="struct__lv__obj__t_1a1fe66c89c9f51ba266c44e7a5d71352d" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t6coordsE"></span><span id="_CPPv2N9_lv_obj_t6coordsE"></span><span id="_lv_obj_t::coords__lv_area_t"></span><span id="struct__lv__obj__t_1a5159a54e860e2efa245ccd12f1f26253" class="target"></span>lv_ar[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t9user_dataE]ea_t coords[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t6coordsE] <span id="_CPPv3N9_lv_obj_t6coordsE"></span><span id="_CPPv2N9_lv_obj_t6coordsE"></span><span id="_lv_obj_t::coords__lv_area_t"></span><span id="struct__lv__obj__t_1a5159a54e860e2efa245ccd12f1f26253" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t5flagsE"></span><span id="_CPPv2N9_lv_obj_t5flagsE"></span><span id="_lv_obj_t::flags__lv_obj_flag_t"></span><span id="struct__lv__obj__t_1ae6f24d376b42d0a9ebb75b8abb4cece9" class="target"></span>lv_obj[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t6coordsE]_flag_t flags[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t5flagsE] <span id="_CPPv3N9_lv_obj_t5flagsE"></span><span id="_CPPv2N9_lv_obj_t5flagsE"></span><span id="_lv_obj_t::flags__lv_obj_flag_t"></span><span id="struct__lv__obj__t_1ae6f24d376b42d0a9ebb75b8abb4cece9" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t5stateE"></span><span id="_CPPv2N9_lv_obj_t5stateE"></span><span id="_lv_obj_t::state__lv_state_t"></span><span id="struct__lv__obj__t_1aa3fd4378cceb29153c26649eeda2f5c3" class="target"></span>lv_state_[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t5flagsE]t state[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t5stateE] <span id="_CPPv3N9_lv_obj_t5stateE"></span><span id="_CPPv2N9_lv_obj_t5stateE"></span><span id="_lv_obj_t::state__lv_state_t"></span><span id="struct__lv__obj__t_1aa3fd4378cceb29153c26649eeda2f5c3" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t10layout_invE"></span><span id="_CPPv2N9_lv_obj_t10layout_invE"></span><span id="_lv_obj_t::layout_inv__uint16_t"></span><span id="struct__lv__obj__t_1accb5066205cbef5248af97d9c2d80dbb" class="target"></span>uint16[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t5stateE]_t layout_inv[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t10layout_invE] <span id="_CPPv3N9_lv_obj_t10layout_invE"></span><span id="_CPPv2N9_lv_obj_t10layout_invE"></span><span id="_lv_obj_t::layout_inv__uint16_t"></span><span id="struct__lv__obj__t_1accb5066205cbef5248af97d9c2d80dbb" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t14scr_layout_invE"></span><span id="_CPPv2N9_lv_obj_t14scr_layout_invE"></span><span id="_lv_obj_t::scr_layout_inv__uint16_t"></span><span id="struct__lv__obj__t_1ad8a606890236a21cdf34a9592ab0ca37" class="target"></span>uint16_t [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t10layout_invE]scr_layout_inv[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t14scr_layout_invE] <span id="_CPPv3N9_lv_obj_t14scr_layout_invE"></span><span id="_CPPv2N9_lv_obj_t14scr_layout_invE"></span><span id="_lv_obj_t::scr_layout_inv__uint16_t"></span><span id="struct__lv__obj__t_1ad8a606890236a21cdf34a9592ab0ca37" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t10skip_transE"></span><span id="_CPPv2N9_lv_obj_t10skip_transE"></span><span id="_lv_obj_t::skip_trans__uint16_t"></span><span id="struct__lv__obj__t_1ab1a5b0f899bb64a2555037cc956d5819" class="target"></span>uint16_t skip[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t14scr_layout_invE]_trans[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t10skip_transE] <span id="_CPPv3N9_lv_obj_t10skip_transE"></span><span id="_CPPv2N9_lv_obj_t10skip_transE"></span><span id="_lv_obj_t::skip_trans__uint16_t"></span><span id="struct__lv__obj__t_1ab1a5b0f899bb64a2555037cc956d5819" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t9style_cntE"></span><span id="_CPPv2N9_lv_obj_t9style_cntE"></span><span id="_lv_obj_t::style_cnt__uint16_t"></span><span id="struct__lv__obj__t_1a4afe7c5f9a14cfd9c2e5d3a6c50c2951" class="target"></span>uint16_t [https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t10skip_transE]style_cnt[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t9style_cntE] <span id="_CPPv3N9_lv_obj_t9style_cntE"></span><span id="_CPPv2N9_lv_obj_t9style_cntE"></span><span id="_lv_obj_t::style_cnt__uint16_t"></span><span id="struct__lv__obj__t_1a4afe7c5f9a14cfd9c2e5d3a6c50c2951" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t8h_layoutE"></span><span id="_CPPv2N9_lv_obj_t8h_layoutE"></span><span id="_lv_obj_t::h_layout__uint16_t"></span><span id="struct__lv__obj__t_1aba143660b28a531b3971bf0812cc3d24" class="target"></span>uint16_t[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t9style_cntE] h_layout[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t8h_layoutE] <span id="_CPPv3N9_lv_obj_t8h_layoutE"></span><span id="_CPPv2N9_lv_obj_t8h_layoutE"></span><span id="_lv_obj_t::h_layout__uint16_t"></span><span id="struct__lv__obj__t_1aba143660b28a531b3971bf0812cc3d24" class="target"></span>
| |
− | ::
| |
− | :; <span id="_CPPv3N9_lv_obj_t8w_layoutE"></span><span id="_CPPv2N9_lv_obj_t8w_layoutE"></span><span id="_lv_obj_t::w_layout__uint16_t"></span><span id="struct__lv__obj__t_1a652b398250dc510c30b0075e3b6e429d" class="target"></span>uint16_[https://docs.lvgl.io/8.2/widgets/obj.html#_CPPv4N9_lv_obj_t8h_layoutE]t w_layout
| |
| | | |
| | | |
| + | Learn more about [[App:Library:LVGL:docs:Overview:Events|<u>'''Events'''</u>]]. |
| | | |
| + | |オブジェクト タイプによって送信されるのは [[App:Library:LVGL:docs:Overview:Events#Generic events|'''<u>Generic events</u>''']] のみです。 |
| | | |
| + | 詳細は[[App:Library:LVGL:docs:Overview:Events|<u>'''Events'''</u>]]をご覧ください。 |
| | | |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
| + | |
| + | == Keys == |
| + | {| class="wikitable" |
| + | !英文 |
| + | !自動翻訳 |
| + | |- |
| + | | |
| + | No ''Keys'' are processed by the object type. |
| + | |
| + | |
| + | Learn more about [[App:Library:LVGL:docs:Overview:Input devices|'''<u>Keys</u>''']]. |
| + | |オブジェクト タイプによって処理されるキーはありません。 |
| + | |
| + | |
| + | 詳細は[[App:Library:LVGL:docs:Overview:Input devices|'''<u>Keys</u>''']]をご覧ください。 |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
| | | |
| + | == Example == |
| + | === Base objects with custom styles === |
| + | {| class="wikitable" |
| + | |- |
| + | |[[file:LVGL Lib docs BaseObj.png|link=https://docs.lvgl.io/latest/en/html/widgets/obj.html#base-objects-with-custom-styles]] |
| + | |} |
| + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |
| | | |
| + | == [https://docs.lvgl.io/latest/en/html/widgets/obj.html#api API] == |
| | | |
| | | |
| | | |
− | :[[App:Library:LVGL#Widgets|戻る : Previous]] | + | :[[App:Library:LVGL:docs:Widgets|戻る : Previous]] |