1
edit
m (Text replacement - "</source>" to "</syntaxhighlight>") |
(Updated the properties of <widget> (local widget definition) and <layout> keys.) |
||
Line 679: | Line 679: | ||
Parent: <tt><dialog></tt>, <tt><layout></tt><br /> | Parent: <tt><dialog></tt>, <tt><layout></tt><br /> | ||
Children: <tt><import></tt>, <tt><widget></tt>, <tt><space></tt>, <tt><layout></tt><br /> | Children: <tt><import></tt>, <tt><widget></tt>, <tt><space></tt>, <tt><layout></tt><br /> | ||
Properties: <tt>type</tt> (''required''), <tt> | Properties: <tt>type</tt> (''required''), <tt>align</tt>, <tt>padding</tt>, <tt>spacing</tt> | ||
===== Example ===== | ===== Example ===== | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<layout type = 'vertical' | <layout type = 'vertical' align = 'center' padding = '23, 23, 8, 23'> | ||
... | ... | ||
</layout> | </layout> | ||
Line 700: | Line 700: | ||
* <tt>type [string]</tt>: Sets whether the layout is <tt>vertical</tt> or <tt>horizontal</tt>. | * <tt>type [string]</tt>: Sets whether the layout is <tt>vertical</tt> or <tt>horizontal</tt>. | ||
* <tt> | * <tt>align [string]</tt>: Sets the alignment of the children widgets. Allowed values are <tt>start</tt>, <tt>center</tt>, <tt>end</tt>, and <tt>stretch</tt>. Default is <tt>start</tt>. | ||
* <tt>padding [int, int, int, int]</tt>: Sets the inner padding for the children widgets inside the layout. | * <tt>padding [int, int, int, int]</tt>: Sets the inner padding for the children widgets inside the layout. | ||
* <tt>spacing [int]</tt>: Sets the spacing between two children widgets inside the layout. | * <tt>spacing [int]</tt>: Sets the spacing between two children widgets inside the layout. | ||
Line 785: | Line 782: | ||
Parent: <tt><layout></tt><br /> | Parent: <tt><layout></tt><br /> | ||
Children: -<br /> | Children: -<br /> | ||
Properties: <tt>name</tt> (''required''), <tt>width</tt>, <tt>height</tt>, <tt>type</tt>, <tt> | Properties: <tt>name</tt> (''required''), <tt>width</tt>, <tt>height</tt>, <tt>type</tt>, <tt>textalign</tt>, <tt>rtl</tt> | ||
===== Example ===== | ===== Example ===== | ||
Line 815: | Line 812: | ||
* <tt>height [int]</tt>: Height of the widget. | * <tt>height [int]</tt>: Height of the widget. | ||
* <tt>type [string]</tt>: Global Widget Definition from which this widget will inherit its properties. | * <tt>type [string]</tt>: Global Widget Definition from which this widget will inherit its properties. | ||
* <tt>textalign [string]</tt>: Sets horizontal alignment of text on this widget. Allowed values are <tt>start</tt>, <tt>end</tt>, <tt>left</tt>, <tt>right</tt> and <tt>center</tt>. <tt>start</tt> and <tt>end</tt> adapt alignment to GUI's RTL or LTR orientation. Default value is <tt>start</tt>. | |||
* <tt>textalign [string]</tt>: Sets horizontal alignment of text on this widget. Allowed values are <tt>left</tt>, <tt>right</tt> and <tt>center</tt>. Default value is <tt> | *<tt>rtl [bool]</tt>: Sets whether this widget respects RTL orientation when GUI is set to use an RTL language. Defaults always to true. May be used to keep widgets in LTR orientation on both RTL and LTR languages. |
edit