PhDim

PhDim — The dimensions (height and width) of a widget.

Synopsis

class PhDim
{
    h;    // short
    w;    // short
}
		

Description

This class defines the dimensions of an area by height (h) and width (w). The units of measure are pixels.

[Important]

The only reliable way to set or change the dim, pos, and area variables of widgets (not other classes) is with SetDim, SetPos and SetArea variables of PtWidget. Attempting to change these variables or their sub-components without using these methods will lead to unpredictable results in your program.

Also see PhDim in the Photon documentation.

Instance Variables

h

An integer specifying the height of an area in pixels.

w

An integer specifying the width of an area in pixels.

Example

See the example for PhArea.