[Previous] [Contents] [Index] [Next]

PtWidgetIsClass()

Determine whether a widget is a specific class type

Synopsis:

int PtWidgetIsClass( PtWidget_t *widget,
                     PtWidgetClassRef_t *class );

Description:

This function 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:

PtWidgetIsClassMember()


[Previous] [Contents] [Index] [Next]