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/ptwidgetclass.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/ptwidgetclass.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/ptwidgetclass.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/ptwidgetclass.html on line 8

PtWidgetClass()

Return the class of a widget

Synopsis:

PtWidgetClassRef_t *PtWidgetClass( 
                       PtWidget_t *widget );

Library:

ph

Description:

This macro lets you determine a widget's class. Using the PtWidgetClassRef_t pointer, you can create new widgets of the same class or check for specific widget classes.

Returns:

A pointer to a PtWidgetClassRef_t, or NULL if the widget is NULL.

Examples:

/* check the class type of a widget */
if ( PtWidgetClass( widget ) == PtWindow ) {
    /* window processing */
    }
else {
    /* nonwindow processing */
    }

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtWidgetIsClass(), PtWidgetIsClassMember()


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/ptwidgetclass.html on line 105

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/ptwidgetclass.html on line 105