Class TChildMetrics (unit LOPanel)

Inherits from

TObject

TConstraint} the layout metrics represent four equations. for equations that are "absolute" or "as is" we don't add a constraint and just set the variable value directly(and mark the variable as constant); otherwise we produce an ordered linear combination from the equation and add a constraint

Constructors


constructor Create( chld : TControl; var metr : TLayoutMetrics );

Flush} { TChildMetrics class implementation } {--------------------------------------- TChildMetrics.


Functions

procedure ReadFromStream(Reader: TReader);

TChildMetrics.

procedure WriteToStream(Writer: TWriter; Panel : TLayoutPanel);

TChildMetrics.

Properties

property GeneratedConstraints : boolean

x => 0, y => 1, right => 2, bottom => 3

Events

Variables

Child : TControl;

NB! Set in ReadMetrics or SetVacantPointers Essential only during the first Layout after ReadMetrics

Metrics : TLayoutMetrics;


Name : string;

x => 0, y => 1, right => 2, bottom => 3

Variables : TEdgeVariables;


FChild : TControl;


FGeneratedConstraints : boolean;


FMetrics : TLayoutMetrics;


FVariables : TEdgeVariables;



Constructors


constructor Create( chld : TControl; var metr : TLayoutMetrics );

Flush} { TChildMetrics class implementation } {--------------------------------------- TChildMetrics.Create } { initialize fields


Functions


procedure ReadFromStream(Reader: TReader);

TChildMetrics.Create} {--------------------------------------- TChildMetrics.ReadFromStream } { Read metrics from stream


procedure WriteToStream(Writer: TWriter; Panel : TLayoutPanel);

TChildMetrics.ReadFromStream} {--------------------------------------- TChildMetrics.WriteToStream } { Write metrics to stream


Properties


property GeneratedConstraints : boolean

x => 0, y => 1, right => 2, bottom => 3


Events


Variables


Child : TControl;

NB! Set in ReadMetrics or SetVacantPointers Essential only during the first Layout after ReadMetrics


Metrics : TLayoutMetrics;


Name : string;

x => 0, y => 1, right => 2, bottom => 3


Variables : TEdgeVariables;


FChild : TControl;


FGeneratedConstraints : boolean;


FMetrics : TLayoutMetrics;


FVariables : TEdgeVariables;