Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
PtWidgetIsClass()
Determine whether a widget is a specific class type
Synopsis:
int PtWidgetIsClass( PtWidget_t *widget,
PtWidgetClassRef_t *class );
Library:
ph
Description:
This macro determines whether the specified widget is of the specified widget class.
Returns:
- 0
- The widget isn't of the given class type.
- 1
- The widget is of the given class type.
Examples:
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" );
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)