FGX.YogaManager.TfgYogaTreeManager: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 5: Строка 5:
 
Delphi
 
Delphi
  
<code>TfgYogaTreeManager = class (TObject)</code>
+
<syntaxhighlight lang="Delphi">TfgYogaTreeManager = class (TObject)</syntaxhighlight>
 
 
== Конструкторы ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| constructor || Create()
 
 
 
|}
 
 
 
== Методы ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| procedure || AddControl(const AControl: TfgControl)
 
Добавляет контрол в менеджер. Теперь менеджер знает про этот контрол и может исппользовать его при построении дерева йога нод.
 
|-
 
| procedure || RemoveControl(const AControl: TfgControl)
 
Удаляет контрол из менеджера. Теперь контрол не будет принимать участие в выравнивании.
 
|-
 
| procedure || ApplyControlSettings(const AControl: TfgControl, const ANeedRecalculate: Boolean)
 
 
 
|-
 
| procedure || ApplyContentSettings(const AControl: TfgControl, const ANeedRecalculate: Boolean)
 
 
 
|-
 
| procedure || MarkNeedRecalculateLayout(const AControl: TfgControl)
 
 
 
|-
 
| procedure || RecalculateLayoutNodes(const AControl: TfgControl, const AWishedSize: TSizeF)
 
 
 
|-
 
| procedure || RecalculateLayout(const AControl: TfgControl)
 
 
 
|-
 
| procedure || AsyncRecalculateLayout(const AControl: TfgControl)
 
 
 
|-
 
| procedure || SynchronizeTreeFor(const AControl: TfgControl, const ANeedRecalculate: Boolean)
 
Синхронизирует положение йога ноды соответствующая указанному контролу в йога дереве. Должно вызываться, когда конрол меняет родителя.
 
|-
 
| procedure || RemoveFromParent(const AControl: TfgControl)
 
 
 
|-
 
| function || GetProtoNode(const AControl: TfgControl)
 
 
 
|-
 
| function || GetTreeNode(const AControl: TfgControl)
 
 
 
|-
 
| function || DumpLayout(const AControl: TfgControl)
 
 
 
|-
 
| function || IsWidthFixed(const AControl: TfgControl)
 
 
 
|-
 
| function || IsHeightFixed(const AControl: TfgControl)
 
 
 
|}
 

Версия 03:20, 10 июня 2019