PtGetAbsPosition

PtGetAbsPosition — gives the absolute position of a widget.

Syntax

PtGetAbsPosition (widget)

		

Arguments

widget

Any widget.

Returns

The value argument, or nil.

Description

This function returns the absolute position of the widget. The returned position is an instance of the PhPoint class.

Example

Gamma> PtInit(nil);
t
Gamma> win = new(PtWindow);
window definition
Gamma> PtRealizeWidget(win);
t
Gamma> PtGetAbsPosition(win);
{PhPoint (x . 32) (y . 58)}
		

See Also

In Photon documentation: PtGetAbsPosition.