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

ApRemoveClass()

Remove a widget class

Synopsis:

#include <Ap.h>

int ApRemoveClass( 
        char const * class_name_string,
        PtWidgetClassRef_t * const *wgt_class);

Library:

Ap

Description:

This function lets you remove widget classes that you previous added by calling ApAddClass(). The class_name_string is the name of the class (for example, "PtButton"). The wgt_class is a predefined widget class; specify the name of the class preceded by an ampersand (for example, &PtButton).

If you've loaded a DLL that add classes, you should remove the classes before you unload the DLL.

Returns:

0
Success.
-1
The widget wasn't registered with ApAddClass(), or the wgt_class pointer isn't the same as when you registered the class.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApAddClass() ApRemoveContext()

"Making a DLL out of a PhAB application" in the Generating, Compiling, and Running Code chapter, Accessing PhAB Modules from Code chapter of the Photon Programmer's Guide


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