KVSKBALayoutOptimizerSinglInst
Procedures
Init() :
Summary: Initializes the optimizer. This should be called before any other operations.
procedure Init():
Remarks: This function initializes the optimizer, sets up logging, and prepares the blobs for layout storage.
IsEnabled() : Boolean
Summary: Returns true if the optimizer is enabled.
procedure IsEnabled(): Boolean
Returns: True, if the optimizer is enabled
Remarks: This function checks if the optimizer is enabled based on the feature flag.
SetLoggingEnabled(Boolean) :
Summary: Sets the logging enabled state.
procedure SetLoggingEnabled(NewValue: Boolean):
Parameters:
NewValue: True to enable logging, false to disable
Remarks: This function allows enabling or disabling logging for the optimizer.
LoggingEnabled() : Boolean
Summary: Returns true if logging is enabled.
procedure LoggingEnabled(): Boolean
Returns: True, if logging is enabled
Remarks: This function checks if logging is currently enabled.
AddLog(Text, Text) : Integer
Summary: Add log to internal log buffer.
procedure AddLog(LogText: Text; AdditionalInfo: Text): Integer
Parameters:
LogText: The main text of the log entry.AdditionalInfo: Additional information for the log entry.
Returns: The index of the newly added log entry.
Remarks: This function adds a new log entry to the temporary global comment buffer used for logging. It should be called during the optimization process to record relevant information.
GetNextZIndex() : Text[10]
Summary: Create an unique ZIndex value for Controls.
procedure GetNextZIndex(): Text[10]
Returns: The next unique ZIndex value as a text.
Remarks: This function generates a new unique ZIndex value for controls. It should be called when a new control is added to the layout to ensure to prevent rendering issues.