Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtGetAbsPosition()

Get the absolute position of a widget

Synopsis:

void PtGetAbsPosition( PtWidget_t *widget,
                       short *x,
                       short *y );

Library:

ph

Description:

This function gets the absolute position of a widget (i.e. the coordinates of the upper left corner of the widget's border). The coordinates are returned in x and y.


Note: For a window, the x and y coordinates don't include the frame that's added by the window manager. Windows don't usually have borders.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtWidgetOffset()