[Overview][Procedures and functions][Index] Reference for unit 'LCLIntf' (#lcl)

Reference for unit 'LCLIntf'

Contains winapi like functions for Delphi compatibility

uses

  System,

  Unix,

  types,

  math,

  Classes,

  sysutils,

  LCLType,

  

This unit is being created specifically for compatibility with Delphi. It should only be used for constants and type definitions that are included in the Delphi Windows unit. This is only done for compatibiltiy.

  LCLProc,

  

Useful lower level helper functions and classes

  GraphType,

  

Definitions of several special types (including Raw Image) to be used for graphics

  InterfaceBase,

  

Provides a widget set appropriate to the operating system platform in use

  LResources,

  

This unit maintains and stores all lazarus resources in the global list named LazarusResources and provides methods and types to stream components

  FileUtil,

  

Miscellaneous procedures and functions for manipulating files and filenames

  UTF8Process,

  

  maps,

  

  LMessages;

  

Overview

This unit is being created specifically for compatibility with Delphi. It contains selected functions that are included in the Delphi Windows unit. These functions are mostly abstract and implemented by the LCL interfaces.
For LCL users:
The functions can be used to make porting of Delphi applications easier and are not 100% emulating winapi functions, not even under windows. They were implemented and tested with some common Delphi libraries. The LCL contains many extra functions that the Delphi VCL does not have.
For example:
Instead of using the common windows functions SaveDC and RestoreDC use instead the Canvas.SaveHandleState and Canvas.RestoreHandleState.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.