「App:Library:LVGL:docs:Overview:Style properties」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
(内容を「https://docs.lvgl.io/8.2/overview/style.html __NOTOC__ {| class="wikitable" !英文 !自動翻訳 |- | | |} :戻る : Previous」で置換)
タグ: 置換
9行目: 9行目:
 
|}
 
|}
  
 +
= 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 <code>LV_SIZE_CONTENT</code> values can be used. Percentage values are relative to the width of the parent's content area.
  
 +
* Default Widget dependent
  
 +
* Inherited No
  
 +
* Layout Yes
  
 +
* Ext. draw No
  
  
  
  
 +
=== 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.
 +
 +
 +
 +
 +
* Default 0
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
 +
 +
 +
=== 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.
 +
 +
 +
 +
 +
* Default LV_COORD_MAX
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
 +
 +
 +
=== 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.
 +
 +
* Default Widget dependent
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
=== 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.
 +
 +
* Default 0
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
=== 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.
 +
 +
* Default LV_COORD_MAX
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
 +
=== 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.
 +
 +
* Default 0
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
=== 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.
 +
 +
* Default 0
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
 +
 +
=== 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.
 +
 +
* Default `LV_ALIGN_DEFAULT`
 +
 +
* Inherited No
 +
 +
* Layout Yes
 +
 +
* Ext. draw No
  
 
:[[App:Library:LVGL#Overview|戻る : Previous]]
 
:[[App:Library:LVGL#Overview|戻る : Previous]]

2022年6月27日 (月) 09:51時点における版

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 LV_SIZE_CONTENT values can be used. Percentage values are relative to the width of the parent's content area.

  • Default Widget dependent
  • Inherited No
  • Layout Yes
  • Ext. draw No



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.



  • Default 0
  • Inherited No
  • Layout Yes
  • Ext. draw No



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.



  • Default LV_COORD_MAX
  • Inherited No
  • Layout Yes
  • Ext. draw No



height

Sets the height of object. Pixel, percentage and LV_SIZE_CONTENT can be used. Percentage values are relative to the height of the parent's content area.

  • Default Widget dependent
  • Inherited No
  • Layout Yes
  • Ext. draw No

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.

  • Default 0
  • Inherited No
  • Layout Yes
  • Ext. draw No

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.

  • Default LV_COORD_MAX
  • Inherited No
  • Layout Yes
  • Ext. draw No


x

Set the X coordinate of the object considering the set align. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area.

  • Default 0
  • Inherited No
  • Layout Yes
  • Ext. draw No

y

Set the Y coordinate of the object considering the set align. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area.

  • Default 0
  • Inherited No
  • Layout Yes
  • Ext. draw No

align

Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. The possible values are: LV_ALIGN_DEFAULT, LV_ALIGN_TOP_LEFT/MID/RIGHT, LV_ALIGN_BOTTOM_LEFT/MID/RIGHT, LV_ALIGN_LEFT/RIGHT_MID, LV_ALIGN_CENTER. LV_ALIGN_DEFAULT means LV_ALIGN_TOP_LEFT with LTR base direction and LV_ALIGN_TOP_RIGHT with RTL base direction.

  • Default `LV_ALIGN_DEFAULT`
  • Inherited No
  • Layout Yes
  • Ext. draw No
戻る : Previous