Get information about a widget in a widget database
ApDBWidgetInfo_t *ApGetDBWidgetInfo( ApDBase_t const *dbase, unsigned index, ApDBWidgetInfo_t *info );
Ap
This function extracts information about the widget with a given index in the database specified by dbase.
If index is greater than or equal to the number of widgets in the database, the function returns NULL. Otherwise, it puts information about a widget in the buffer pointed to by info, and returns info.
The ApDBWidgetInfo_t structure contains at least the following members:
The same pointer as info, or NULL if there isn't a widget with the given index.
ApDBase_t *dbase = ApOpenDBase( ABM_db ); int i; ApDBWidgetInfo_t wi; for ( i=0; ApGetDBWidgetInfo( dbase, i, &wi ); ++i ) printf( "#%d: '%s' is a %s, child of #%d, at level %d.\n", i, wi.wgt_name, wi.wgt_class, wi.parent_index, wi.level );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
ApCloseDBase(), ApCreateDBWidget(), ApCreateDBWidgetFamily(), ApCreateWidget(), ApCreateWidgetFamily(), ApOpenDBase(), ApOpenDBaseFile(), ApSaveDBaseFile(),
Accessing PhAB Modules from Code chapter of the Photon Programmer's Guide