[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCustomIcon

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomIcon - base class for TIcon

Declaration

Source position: graphics.pp line 1469

type TCustomIcon = class(TRasterImage)

protected

  FCurrent: Integer;

  

  FRequestedSize: TSize;

  procedure MaskHandleNeeded; override;

  

  procedure PaletteNeeded; override;

  

  procedure CheckRequestedSize;

  function GetIndex();

  

  function GetBitmapHandle; override;

  

  function GetDefaultSize; virtual;

  function GetMasked; override;

  function GetMaskHandle; override;

  

  function GetPalette; override;

  

  function GetPixelFormat; override;

  

  function GetRawImagePtr; override;

  function GetRawImageDescriptionPtr; override;

  function GetTransparent; override;

  function GetTypeID; virtual;

  function GetSharedImageClass; override;

  

  procedure HandleNeeded; override;

  

  function InternalReleaseBitmapHandle; override;

  

  function InternalReleaseMaskHandle; override;

  

  function InternalReleasePalette; override;

  

  procedure ReadData(); override;

  

  procedure ReadStream(); override;

  

  procedure SetMasked(); override;

  procedure SetPixelFormat(); override;

  

  procedure SetTransparent(); override;

  procedure UnshareImage(); override;

  

  procedure UpdateCurrentView;

  

  function UpdateHandles(); override;

  

  procedure WriteStream(); override;

  

public

  constructor Create; override;

  

  procedure Add();

  

Add - an Icon formatted as AFormat, with specified Height and Width

  procedure Assign(); override;

  

  procedure AssignImage(); virtual;

  procedure Clear; override;

  

Clear the Icon and release its resources

  procedure Delete();

  

Delete the indexed Icon

  procedure Remove();

  

Remove the Icon specified by AFormat, AHeight and AWidth

  procedure GetDescription();

  

GetDescription - find the description for the Icon

  procedure SetSize(); override;

  

SetSize - write the size (width, height) of the Icon

  function GetFileExtensions; override;

  

GetFileExtensions - returns a list of valid file extensions associated with the Icon

  function LazarusResourceTypeValid(); override;

  

LazarusResourceTypeValid - returns True if the specified ResourceType is valid

  function BitmapHandleAllocated; override;

  

BitmapHandleAllocated - returns True if a Bitmap Handle has been allocated

  function MaskHandleAllocated; override;

  

MaskHandleAllocated - returns True if a Mask Bitmap handle has been allocated

  function PaletteAllocated; override;

  

PaletteAllocated - returns True if a Palette handle has been allocated

  procedure SetHandles(); override;

  

SetHandles - writes the values of the Bitmap and Mask handles

  function GetBestIndexForSize();

  property Current: Integer; [rw]

  

Current - the sequence number of the current Icon

  property Count: Integer; [r]

  

Count - the number of references to this Icon

end;

Inheritance

TCustomIcon

  

TCustomIcon - base class for TIcon

|

TRasterImage

  

TRasterImage - base class for a number of graphic controls, including TCustomBitmap and TCustomIcon, which use a raster of dots to display graphic information

|

TGraphic

  

Base class for dealing with Graphic images

|

TPersistent

|

TObject

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