Description | Hierarchy | Fields | Methods | Properties |
type TAdSkinItem = class(TObject)
Represents a skin item and its states - e.g. the skin of a button.
![]() |
CreatedByList:boolean; |
![]() |
procedure LoadFromXML(aroot:TAdSimpleXMLElem); virtual; |
![]() |
function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem; virtual; |
![]() |
procedure Draw(AState,AX,AY,AWidth,AHeight:integer;Alpha:byte=255); overload; |
![]() |
procedure Draw(AState:integer;ARect:TAdRect;Alpha:byte=255); overload; |
![]() |
constructor Create(AParent:TAdDraw); |
![]() |
destructor Destroy; override; |
![]() |
property States: TStringList read FStates; |
![]() |
property Parent: TAdDraw read FParent; |
![]() |
property Elements: TAdSkinElemList read FSkinElems; |
![]() |
property BaseWidth: integer read FBaseWidth write SetBaseWidth; |
![]() |
property BaseHeight: integer read FBaseHeight write SetBaseHeight; |
![]() |
property Name: string read FName write FName; |
![]() |
property Images: TAdImageList read FImages write FImages; |
![]() |
CreatedByList:boolean; |
True if the element was created by a list and can also be freed by it. |
![]() |
procedure LoadFromXML(aroot:TAdSimpleXMLElem); virtual; |
Loads the skin element from xml. |
![]() |
function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem; virtual; |
Stores the skin elemts in to the xml data structure. |
![]() |
procedure Draw(AState,AX,AY,AWidth,AHeight:integer;Alpha:byte=255); overload; |
Draws the skin element at a specific place. |
![]() |
procedure Draw(AState:integer;ARect:TAdRect;Alpha:byte=255); overload; |
Draws the skin element at a specific place. |
![]() |
constructor Create(AParent:TAdDraw); |
Creates an instance of TAdSkinItem. |
![]() |
destructor Destroy; override; |
Destroys the skin item instance. |
![]() |
property States: TStringList read FStates; |
A stringlist that contains the names of the states of the skin item. |
![]() |
property Parent: TAdDraw read FParent; |
The parrent TAdDraw passed in the constructor. |
![]() |
property Elements: TAdSkinElemList read FSkinElems; |
A list that contains all elements the skin item consists of. |
![]() |
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. |
![]() |
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. |
![]() |
property Name: string read FName write FName; |
Name of the skin items. |
![]() |
property Images: TAdImageList read FImages write FImages; |
Contains the state images of the skin item. |