![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Determine whether a widget is a specific class type
int PtWidgetIsClass( PtWidget_t *widget,
                     PtWidgetClassRef_t *class );
ph
This macro determines whether the specified widget is of the specified widget class.
Test to see if widget is a PtLabel-class widget:
if( PtWidgetIsClass( widget, PtLabel ) )
    printf( "PtLabel-class widget\n" );
else
    printf( "non PtLabel-class widget\n" );
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
![]()  | 
![]()  | 
![]()  | 
![]()  |