Contents
Navigation
Home User Reference Other Resources

The QTPlgSize class is an utility class used to wrap informations about dimensions of rectangular areas.

Since version 6.7 of the plugin this class can be used in Console Applications






The QTPlgSize class constructors are called when you create a new instance of the class, while the ˜QTPlgSize class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgSize object is valid if its dimensions are greater than 0.

The class provides you with the following initializer methods:
()
This is the default constructor. All of the class properties are set to 0
(other as QTPlgSize)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties
(w as double, h as double)
the and class properties are initialized to the values of the w and h parameters respectively

specifies the width of the shape
specifies the height of the shape
specifies the width/height ratio

(rhs as QTPlgSize) as integer
use the < = > Realbasic operators to compare two QTPlgSize objects
returns 1 if the left hand side object is greater than the right one, 0 if the two objects are equal, –1 otherwise