| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) | 
Return the class of a widget
PtWidgetClassRef_t *PtWidgetClass( 
                       PtWidget_t *widget );
This function 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.
A pointer to a PtWidgetClassRef_t, or NULL if the widget is NULL.
/* check the class type of a widget */
if ( PtWidgetClass( widget ) == PtWindow ) {
    /* window processing */
    }
else {
    /* nonwindow processing */
    }
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PtWidgetIsClass(), PtWidgetIsClassMember()
| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) |