[Overview][Constants][Types][Procedures and functions][Index] |
Gets the platform enumeration value for the specified directory name.
Source position: lclplatformdef.pas line 41
function DirNameToLCLPlatform( |
const ADirName: string |
):TLCLPlatform; |
ADirName |
|
Directory name to convert to a TLCLPlatform enumeration value. |
TLCLPlatform enumeration value for the given directory name.
DirNameToLCLPlatform is a TLCLPlatform function used to get the platform identifier for the source directory specified in the ADirName argument. It is assumed that ADirName contains only the directory name relative to ($LazarusDir)/lcl/interfaces without path delimiters. In other words, a value like: 'win32', 'qt5', or 'gtk3'.
DirNameToLCLPlatform performs a case-insensitive comparison between ADirName and each of the values in the LCLPlatformDirNames constant. The return value is the enumeration value which identifies the platform and widgetset for the specified directory.
If a matching value in LCLPlatformDirNames is not found, the return value is set to lpGtk2.
DirNameToLCLPlatform is called from the lazbuild utility when a widgetset override has been provided on the command line.
|
Array constant with the directory names for supported LCL platforms. |
|
|
Represents the supported platforms for the LCL. |
Version 3.2 | Generated 2024-02-25 | Home |