Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
PtWidgetIsClassMember()
Determine whether a widget belongs to a specified class
Synopsis:
int PtWidgetIsClassMember(
PtWidget_t *widget,
PtWidgetClassRef_t *class );
Library:
ph
Description:
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.
Returns:
- 0
- widget isn't a member of the given class.
- 1
- widget is a member of the given class.
Examples:
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" );
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)