.comment-link {margin-left:.6em;}

Sunday, August 19, 2007

 

TWOLROOT

TWOLROOT object for the wol graphics library for pascal

TWOLRoot object
Unit: WOLGUI00.
TWOLRoot is a basic object that has the following properties:

Metodos and Eventos Publicos:

Name - String type. It must contain the name of the object.
Tag - TWOLLongint type. Used to contain any value of this type.
RefCount - TWOLSmallInt type. But for reading. It contains the amount of done references to one same object.
Owner - TWOLRoot type. But of reading. It contains the root of the object that is pointed to in the creation.

The methods used for the object are:

procedure _AddRef (Ref: TWOLSmallInt);
Used to add to Ref references to the object. Before destroying the object, the WOL verifies that the number of references is zero. If it isn't, one is subtracted from the number of references of the object, but it remains active.

procedure Assign (Source: TWOLRoot); virtual;
Used to copy values of an object for another one. The addresses of objects are kept distinct, as well as the properties name, owner, tag, etc.

constructor Create (AOwner: TWOLRoot); virtual;
Used to create the object. In the previous versions of FPC to version 2.0.0, only this method can be used. The root object, must be nil a TWOLRoot object or.

constructor Create; virtual; (Only in FPC 2.0.0 or greater)
Used to create an object without a root object. it is the same as that to call Create (nil). It can not be used in versions previous to FPC 2.0.0.

destructor Destroy; override;
Used to destroy the object of the memory above, excepting itself the seen accountant of reference.
This object can be substituted by TComponent defining itself WOLROOTISCOMPONENT in include WOLGUI.INC

Labels: ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?