PhDim

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `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.

| 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.

Prev | Home | Next
`PhBoundaryEvent` | Up | `PhDragEvent`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.