Class TAdSkin

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdSkin = class(TAdList)

Description

A class that contains a set of skin items. Those skin items build the a skin that can be loaded from and stored to file, stream or xml.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdDraw);
Public destructor Destroy; override;
Public procedure SaveToFile(AFile:string);
Public procedure LoadFromFile(AFile:string);
Public procedure SaveToStream(AStream:TStream);
Public procedure LoadFromStream(AStream:TStream);
Public function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem;
Public procedure LoadFromXML(aroot:TAdSimpleXMLElem);
Public function Add(Item:TAdSkinItem):integer; overload;
Public function Add(Name:string):integer; overload;
Public function IndexOf(Name:string):integer; overload;

Properties

Public property Items[Index:integer]: TAdSkinItem read GetItem write SetItem;
Public property ItemNamed[Index:string]: TAdSkinItem read GetNamedItem write SetNamedItem;
Public property Parent: TAdDraw read FParent;

Description

Methods

Public constructor Create(AParent:TAdDraw);

Creates an instance of TAdSkin.

Public destructor Destroy; override;

Destroys the instance.

Public procedure SaveToFile(AFile:string);

Saves the skin data to file.

Public procedure LoadFromFile(AFile:string);

Loads the skin data from file.

Public procedure SaveToStream(AStream:TStream);

Saves the skin data to a stream.

Public procedure LoadFromStream(AStream:TStream);

Loads the skin data from a stream.

Public function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem;

Saves the skin data to a xml node.

Public procedure LoadFromXML(aroot:TAdSimpleXMLElem);

Loads the skin data from a xml node.

Public function Add(Item:TAdSkinItem):integer; overload;

Adds an existing skin item to the skin and returns the position of this item in the list.

Public function Add(Name:string):integer; overload;

Adds a new skin item to the skin and returns the position of this item in the list.

Public function IndexOf(Name:string):integer; overload;

Returns the index of a skin item with a specific name.

Properties

Public property Items[Index:integer]: TAdSkinItem read GetItem write SetItem;

Gives you access to the skin items in the skin by index.

Public property ItemNamed[Index:string]: TAdSkinItem read GetNamedItem write SetNamedItem;

Gives you access to the skin items in the skin by name.

Public property Parent: TAdDraw read FParent;

The parent TAdDraw that was set in the constructor.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00