Class TAdSkinItem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdSkinItem = class(TObject)

Description

Represents a skin item and its states - e.g. the skin of a button.

Hierarchy

Overview

Fields

Public CreatedByList:boolean;

Methods

Public procedure LoadFromXML(aroot:TAdSimpleXMLElem); virtual;
Public function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem; virtual;
Public procedure Draw(AState,AX,AY,AWidth,AHeight:integer;Alpha:byte=255); overload;
Public procedure Draw(AState:integer;ARect:TAdRect;Alpha:byte=255); overload;
Public constructor Create(AParent:TAdDraw);
Public destructor Destroy; override;

Properties

Public property States: TStringList read FStates;
Public property Parent: TAdDraw read FParent;
Public property Elements: TAdSkinElemList read FSkinElems;
Public property BaseWidth: integer read FBaseWidth write SetBaseWidth;
Public property BaseHeight: integer read FBaseHeight write SetBaseHeight;
Public property Name: string read FName write FName;
Public property Images: TAdImageList read FImages write FImages;

Description

Fields

Public CreatedByList:boolean;

True if the element was created by a list and can also be freed by it.

Methods

Public procedure LoadFromXML(aroot:TAdSimpleXMLElem); virtual;

Loads the skin element from xml.

Public function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem; virtual;

Stores the skin elemts in to the xml data structure.

Public procedure Draw(AState,AX,AY,AWidth,AHeight:integer;Alpha:byte=255); overload;

Draws the skin element at a specific place.

Public procedure Draw(AState:integer;ARect:TAdRect;Alpha:byte=255); overload;

Draws the skin element at a specific place.

Public constructor Create(AParent:TAdDraw);

Creates an instance of TAdSkinItem.

Public destructor Destroy; override;

Destroys the skin item instance.

Properties

Public property States: TStringList read FStates;

A stringlist that contains the names of the states of the skin item.

Public property Parent: TAdDraw read FParent;

The parrent TAdDraw passed in the constructor.

Public property Elements: TAdSkinElemList read FSkinElems;

A list that contains all elements the skin item consists of.

Public property BaseWidth: integer read FBaseWidth write SetBaseWidth;

The base width of the skin items. All size values in the xml file are relative to this value.

Public property BaseHeight: integer read FBaseHeight write SetBaseHeight;

The base height of the skin items. All size values in the xml file are relative to this value.

Public property Name: string read FName write FName;

Name of the skin items.

Public property Images: TAdImageList read FImages write FImages;

Contains the state images of the skin item.

SourceForge.net Logo


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