FGX.Control.Types.TfgControlAlignment: различия между версиями
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
(не показано 66 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | * [[ FGX. | + | * [[ FGX.Types.TfgPersistent | Вверх к родителю: TfgPersistent ]] |
− | * [[ FGX.Control.Types | + | * [[ FGX.Control.Types | К модулю: FGX.Control.Types ]] |
− | |||
Delphi | Delphi | ||
− | < | + | <syntaxhighlight lang="Delphi">TfgControlAlignment = class (TfgPersistent)</syntaxhighlight> |
+ | |||
+ | <p class="class-inheritance"><span class="type-border">[[System.Classes.TPersistent|TPersistent]]</span> -> <span class="type-border">[[FGX.Types.TfgPersistent|TfgPersistent]]</span> -> <span class="type-border">[[FGX.Control.Types.TfgControlAlignment|TfgControlAlignment]]</span></p> | ||
+ | |||
+ | == Описание == | ||
+ | |||
+ | <p>Настройки выравнивания контрола в родительском контейнере.</p> | ||
+ | == Конструкторы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(AOwner: [[TPersistent]])</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |} | ||
+ | |||
+ | == Методы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AreDefaultValues(): [[Boolean]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">ToString(): [[string]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |} | ||
+ | |||
+ | == Свойства == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>AlignSelf: [[FGX.Control.Types.TfgAlignSelf|TfgAlignSelf]]</code> | ||
+ | <p>The <b>AlignSelf</b> property has the same options and effect as <b>AlignItems</b> but instead of affecting the children within a container, you can apply this property to a single child to change its alignment within its parent.</p><p>This property overrides any option set by the parent via the <b>AlignItems</b> property.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>FlexGrow: [[Single]]</code> | ||
+ | <p>The property describes how any space within a container should be distributed among its children along the main axis. After laying out its children, a container will distribute any remaining space according to the <b>FlexGrow</b> values specified by its children.</p><p><b>FlexGrow</b> accepts any floating point value >= 0, with 0 being the default value. A container will distribute any remaining space among its children weighted by the child’s <b>FlexGrow</b> value.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>FlexShrink: [[Single]]</code> | ||
+ | <p>The property describes how to shrink children along the main axis in the case that the total size of the children overflow the size of the container on the main axis.</p><p><b>FlexShrink</b> is very similar to <b>FlexGrow</b> and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed.</p><p><b>FlexShrink</b> accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the child’s <b>FlexShrink</b> value.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>FlexBasis: [[Single]]</code> | ||
+ | <p>The FlexBasis property is an axis-independent way of providing the default size of an item on the main axis. Setting the FlexBasis of a child is similar to setting the Width of that child if its parent is a container with FlexDirection = row or setting the Height of a child if its parent is a container with FlexDirection = column. The FlexBasis of an item is the default size of that item, the size of the item before any FlexGrow and FlexShrink calculations are performed.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Direction: [[FGX.Control.Types.TfgControlLayoutDirection|TfgControlLayoutDirection]]</code> | ||
+ | <p>Направление выравнивания контрола для разных направлений правописаний языков.</p> | ||
+ | |} | ||
+ | |||
+ | == Константы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultAlignSelf: [[FGX.Control.Types.TfgAlignSelf|TfgAlignSelf]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultFlexGrow: [[Comp]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultFlexShrink: [[Comp]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultFlexBasis: [[Comp]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultDirection: [[FGX.Control.Types.TfgControlLayoutDirection|TfgControlLayoutDirection]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |} |
Текущая версия на 02:49, 1 июля 2019
Delphi
TfgControlAlignment = class (TfgPersistent)
TPersistent -> TfgPersistent -> TfgControlAlignment
Содержание
Описание
Настройки выравнивания контрола в родительском контейнере.
Конструкторы
constructor
|
Create(AOwner: TPersistent)
Описание отсутствует. |
Методы
function
|
AreDefaultValues(): Boolean
Описание отсутствует. |
function
|
ToString(): string
Описание отсутствует. |
Свойства
property
|
AlignSelf: TfgAlignSelf
The AlignSelf property has the same options and effect as AlignItems but instead of affecting the children within a container, you can apply this property to a single child to change its alignment within its parent. This property overrides any option set by the parent via the AlignItems property. |
property
|
FlexGrow: Single
The property describes how any space within a container should be distributed among its children along the main axis. After laying out its children, a container will distribute any remaining space according to the FlexGrow values specified by its children. FlexGrow accepts any floating point value >= 0, with 0 being the default value. A container will distribute any remaining space among its children weighted by the child’s FlexGrow value. |
property
|
FlexShrink: Single
The property describes how to shrink children along the main axis in the case that the total size of the children overflow the size of the container on the main axis. FlexShrink is very similar to FlexGrow and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed. FlexShrink accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the child’s FlexShrink value. |
property
|
FlexBasis: Single
The FlexBasis property is an axis-independent way of providing the default size of an item on the main axis. Setting the FlexBasis of a child is similar to setting the Width of that child if its parent is a container with FlexDirection = row or setting the Height of a child if its parent is a container with FlexDirection = column. The FlexBasis of an item is the default size of that item, the size of the item before any FlexGrow and FlexShrink calculations are performed. |
property
|
Direction: TfgControlLayoutDirection
Направление выравнивания контрола для разных направлений правописаний языков. |
Константы
const
|
DefaultAlignSelf: TfgAlignSelf
Описание отсутствует. |
const
|
DefaultFlexGrow: Comp
Описание отсутствует. |
const
|
DefaultFlexShrink: Comp
Описание отсутствует. |
const
|
DefaultFlexBasis: Comp
Описание отсутствует. |
const
|
DefaultDirection: TfgControlLayoutDirection
Описание отсутствует. |