Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeallitems.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeallitems.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeallitems.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeallitems.html on line 8
Fill a buffer with pointers to all items
PtTreeItem_t **PtTreeAllItems(
PtWidget_t *widget,
PtTreeItem_t **buffer );
This function fills a buffer with pointers to all items in the
widget. If buffer is NULL, the function allocates a
buffer using malloc(), and the buffer is
NULL-terminated. If buffer isn't
NULL, the function doesn't
add a NULL at the end.
|
Items that belong to collapsed subtrees aren't included in the buffer.
If you need a list of all the items, traverse the
father, son, and brother pointers in the
PtGenTreeItem_t
structure that's part of
PtTreeItem_t. |
A pointer to the buffer.
PtTreeItem_t *item, **buf;
buf = PtTreeAllItems( widget, NULL );
for ( i=0; ( item = buf[i] ) != NULL; ++i ) {
printf( "%s\n", item->string );
}
free( buf );
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtTree,
PtTreeGetCurrent(),
PtTreeGetSelIndexes(),
PtTreeItem_t,
PtTreeSelectedItems(),
PtTreeSetSelIndexes()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeallitems.html on line 120
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/pttreeallitems.html on line 120