「App:Library:LVGL:docs:Overview:Style properties」の版間の差分
1行目: | 1行目: | ||
https://docs.lvgl.io/8.2/overview/style.html | https://docs.lvgl.io/8.2/overview/style.html | ||
__NOTOC__ | __NOTOC__ | ||
+ | = Style properties = | ||
+ | == Size and position == | ||
{| class="wikitable" | {| class="wikitable" | ||
!英文 | !英文 | ||
6行目: | 8行目: | ||
|- | |- | ||
| | | | ||
+ | Properties related to size, position, alignment and layout of the objects. | ||
| | | | ||
|} | |} | ||
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
− | |||
− | |||
− | |||
− | |||
=== width === | === width === | ||
− | Sets the width of object. Pixel, percentage and <code>LV_SIZE_CONTENT</code> values can be used. Percentage values are relative to the width of the parent's content area. | + | {| class="wikitable" |
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
+ | Sets the width of object. Pixel, percentage and <code style="color: #bb0000;">LV_SIZE_CONTENT</code> values can be used. Percentage values are relative to the width of the parent's content area. | ||
* Default Widget dependent | * Default Widget dependent | ||
24行目: | 29行目: | ||
* Ext. draw No | * Ext. draw No | ||
− | + | | | |
− | + | |} | |
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
=== min_width === | === min_width === | ||
+ | {| class="wikitable" | ||
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | ||
41行目: | 52行目: | ||
* Ext. draw No | * Ext. draw No | ||
− | + | | | |
− | + | |} | |
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
=== max_width === | === max_width === | ||
+ | {| class="wikitable" | ||
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | ||
58行目: | 75行目: | ||
* Ext. draw No | * Ext. draw No | ||
− | + | | | |
− | + | |} | |
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
=== height === | === height === | ||
− | Sets the height of object. Pixel, percentage and <code>LV_SIZE_CONTENT</code> can be used. Percentage values are relative to the height of the parent's content area. | + | {| class="wikitable" |
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
+ | Sets the height of object. Pixel, percentage and <code style="color: #bb0000;">LV_SIZE_CONTENT</code> can be used. Percentage values are relative to the height of the parent's content area. | ||
* Default Widget dependent | * Default Widget dependent | ||
72行目: | 95行目: | ||
* Ext. draw No | * Ext. draw No | ||
+ | | | ||
+ | |} | ||
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
+ | |||
=== min_height === | === min_height === | ||
+ | {| class="wikitable" | ||
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | ||
83行目: | 115行目: | ||
* Ext. draw No | * Ext. draw No | ||
+ | | | ||
+ | |} | ||
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
+ | |||
=== max_height === | === max_height === | ||
+ | {| class="wikitable" | ||
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. | Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. | ||
94行目: | 135行目: | ||
* Ext. draw No | * Ext. draw No | ||
+ | | | ||
+ | |} | ||
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
=== x === | === x === | ||
− | Set the X coordinate of the object considering the set <code>align</code>. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | + | {| class="wikitable" |
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
+ | Set the X coordinate of the object considering the set <code style="color: #bb0000;">align</code>. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. | ||
* Default 0 | * Default 0 | ||
106行目: | 155行目: | ||
* Ext. draw No | * Ext. draw No | ||
+ | | | ||
+ | |} | ||
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
+ | |||
=== y === | === y === | ||
− | Set the Y coordinate of the object considering the set <code>align</code>. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. | + | {| class="wikitable" |
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
+ | Set the Y coordinate of the object considering the set <code style="color: #bb0000;">align</code>. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. | ||
* Default 0 | * Default 0 | ||
117行目: | 175行目: | ||
* Ext. draw No | * Ext. draw No | ||
+ | | | ||
+ | |} | ||
+ | :[[App:Library:LVGL:docs:Overview|戻る : Previous]] | ||
+ | |||
=== align === | === align === | ||
− | Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. The possible values are: <code>LV_ALIGN_DEFAULT</code>, <code>LV_ALIGN_TOP_LEFT/MID/RIGHT</code>, <code>LV_ALIGN_BOTTOM_LEFT/MID/RIGHT</code>, <code>LV_ALIGN_LEFT/RIGHT_MID</code>, <code>LV_ALIGN_CENTER</code>. <code>LV_ALIGN_DEFAULT</code> means <code>LV_ALIGN_TOP_LEFT</code> with LTR base direction and <code>LV_ALIGN_TOP_RIGHT</code> with RTL base direction. | + | {| class="wikitable" |
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
+ | Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. The possible values are: <code style="color: #bb0000;">LV_ALIGN_DEFAULT</code>, <code style="color: #bb0000;">LV_ALIGN_TOP_LEFT/MID/RIGHT</code>, <code style="color: #bb0000;">LV_ALIGN_BOTTOM_LEFT/MID/RIGHT</code>, <code style="color: #bb0000;">LV_ALIGN_LEFT/RIGHT_MID</code>, <code style="color: #bb0000;">LV_ALIGN_CENTER</code>. <code style="color: #bb0000;">LV_ALIGN_DEFAULT</code> means <code style="color: #bb0000;">LV_ALIGN_TOP_LEFT</code> with LTR base direction and <code style="color: #bb0000;">LV_ALIGN_TOP_RIGHT</code> with RTL base direction. | ||
* Default `LV_ALIGN_DEFAULT` | * Default `LV_ALIGN_DEFAULT` | ||
128行目: | 195行目: | ||
* Ext. draw No | * Ext. draw No | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |||
:[[App:Library:LVGL#Overview|戻る : Previous]] | :[[App:Library:LVGL#Overview|戻る : Previous]] |
2022年6月30日 (木) 22:30時点における版
https://docs.lvgl.io/8.2/overview/style.html
Style properties
Size and position
英文 | 自動翻訳 |
---|---|
Properties related to size, position, alignment and layout of the objects. |
width
英文 | 自動翻訳 |
---|---|
Sets the width of object. Pixel, percentage and
|
min_width
英文 | 自動翻訳 |
---|---|
Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.
|
max_width
英文 | 自動翻訳 |
---|---|
Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.
|
height
英文 | 自動翻訳 |
---|---|
Sets the height of object. Pixel, percentage and
|
min_height
英文 | 自動翻訳 |
---|---|
Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.
|
max_height
英文 | 自動翻訳 |
---|---|
Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.
|
x
英文 | 自動翻訳 |
---|---|
Set the X coordinate of the object considering the set
|
y
英文 | 自動翻訳 |
---|---|
Set the Y coordinate of the object considering the set
|
align
英文 | 自動翻訳 |
---|---|
Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. The possible values are:
|