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/ptwidgetisclassmember.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/ptwidgetisclassmember.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/ptwidgetisclassmember.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/ptwidgetisclassmember.html on line 8
Determine whether a widget belongs to a specified class
int PtWidgetIsClassMember( 
        PtWidget_t *widget,
        PtWidgetClassRef_t *class );
ph
This function determines whether or not the specified
widget is a member of the specified widget
class. You can use this function to determine whether the
widget is of the specified class or a subclass of the
specified class.
- 0
 
- widget isn't a member of the given class.
 
- 1
 
- widget is a member of the given class.
 
Test to see if widget belongs to the
PtGraphic class (i.e. is it a line,
rectangle, polygon, etc.):
if( PtWidgetIsClassMember( widget, PtGraphic ) )
    printf( "PtGraphic-class widget\n" );
else
    printf( "non-PtGraphic-class widget\n" );
Photon
| Safety: |  | 
| Interrupt handler | 
    No | 
| Signal handler | 
    No | 
| Thread | 
    No | 
PtWidgetIsClass()
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/ptwidgetisclassmember.html on line 113
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/ptwidgetisclassmember.html on line 113