Class TPixelSurfaces
Unit
PXL.Surfaces
Declaration
type TPixelSurfaces = class(TObject)
Description
List of TPixelSurface elements with a function of quickly finding by unique name.
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
function Add(const SurfaceName: StdString = ''): Integer; |
|
Inserts a new surface with given name to the list and returns its index.
|
 |
function IndexOf(const SurfaceName: StdString): Integer; |
|
Returns index of the surface with given name if such exists or -1 otherwise.
|
 |
function Insert(const Surface: TPixelSurface): Integer; |
|
Inserts given surface element to the list and returns its index.
|
 |
function CreatePixelSurface(const SurfaceName: StdString): TPixelSurface; virtual; |
|
Creates a new instance of TPixelSurface when called by Add method. This resembles factory pattern and provides a way to instantiate extended TPixelSurface classes, for example, in hardware-assisted implementations.
|
 |
procedure Clear; |
|
Removes all elements from the list.
|
 |
procedure Remove(const Index: Integer); |
|
Removes element with specified index from the list.
|
Properties
 |
property Count: Integer read GetCount write SetCount; |
|
Determines how many surfaces are in the list.
|
 |
property Items[constIndex:Integer]: TPixelSurface read GetItem; |
|
Provides access to individual surface elements by their index.
|
 |
property Surface[constName:StdString]: TPixelSurface read GetSurface; |
|
Provides reference to the surface with given name. If no surface with such name exists, Nil is returned.
|
Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.
|