PhPoint, PhLPoint

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

# `PhPoint`, `PhLPoint`

`PhPoint`, `PhPoint` -- The (x,y) coordinates of a point.

## Synopsis

    class PhPoint
    {
        x;    // short
        y;    // short
    }

    class PhLPoint
    {
        x;    // long
        y;    // long
    }

## Description

These classes define a point by its `x` and `y` coordinates. For `PhPoint` the coordinates are expressed as integers, while for `PhLPoint` they are expressed as longs. The units of measure are pixels.

Also see PhPoint in the Photon documentation.

## Instance Variables

x

  An integer or long specifying the number of pixels to the right (horizontally) from the upper-left corner of the containing widget.

y

  An integer or long specifying the number of pixels down (vertically) from the upper-left corner of the containing widget.

## Example

See the example for PtPixel.

Prev | Home | Next
`PhKeyEvent` | Up | `PhPointerEvent`

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