Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwidgetextent.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwidgetextent.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwidgetextent.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwidgetextent.html on line 8

PtWidgetExtent()

Get a widget's extent

Synopsis:

PhRect_t *PtWidgetExtent( PtWidget_t *widget,
                          PhRect_t *extent );

Library:

ph

Description:

This macro sets the specified PhRect_t structure to the extent of the specified widget and returns a pointer to that structure.

Returns:

The same pointer as extent, or NULL if no PhRect_t structure is provided or if the widget pointer is invalid.


Note: A widget's extent isn't calculated until the widget is either realized or forced to calculate the extent by a call to PtExtentWidget(). If the widget hasn't been realized, be sure to call PtExtentWidget() first.

Examples:

PhRect_t extent;
PtWidget_t *labelwidget;

PtRealizeWidget( labelwidget );
PtWidgetExtent( labelwidget, &extent);

See also PtContainerGiveFocus().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhRect_t, PtExtentWidget(), PtRealizeWidget()

Widget geometry in the Introduction to the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwidgetextent.html on line 123

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptwidgetextent.html on line 123