| Class TChildMetrics (unit LOPanel) |
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 );| Functions |
procedure ReadFromStream(Reader: TReader);
procedure WriteToStream(Writer: TWriter; Panel : TLayoutPanel);| Properties |
property GeneratedConstraints : boolean| Events |
| Variables |
Child : TControl;
Metrics : TLayoutMetrics;
Name : string;
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 : booleanx => 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;