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/lib_ref/pt/ptwidgettree.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/lib_ref/pt/ptwidgettree.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/lib_ref/pt/ptwidgettree.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/lib_ref/pt/ptwidgettree.html on line 8
Walk the widget tree from front to back
int PtWidgetTree( PtWidget_t *root,
PtWidget_t **cur,
int D );
ph
This function walks the widget tree pointed to by root
from front to back. The
cur argument is the address of a pointer to the current widget
in the tree. The
D argument is the direction control.
|
This function performs a simple traversal of the widget tree.
If you need more control over how the tree is traversed (for example,
specifying the direction, or skipping certain branches), use
PtWidgetTreeTraverse(). |
To start the traversal, set cur to be the address of a pointer to
the root widget, and set D to Pt_TRAVERSE_START.
Use the result returned by PtWidgetTree() as the value of
D for the next call.
The traversal is done when PtWidgetTree() returns
Pt_TRAVERSE_DONE.
- Pt_TRAVERSE_DONE
- All the widgets in the tree have been traversed.
- Any other value
- Pass this value as D in the next call.
PtWidget_t *cur, *window;
int d;
…
cur=window
d=Pt_TRAVERSE_START;
while( ( d=PtWidgetTree( window, &cur, d ) ) !=
Pt_TRAVERSE_DONE)
PtSetResources( cur, 1, argt );
…
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtNextTopLevelWidget(),
PtValidParent(),
PtWidgetBrotherBehind(),
PtWidgetBrotherInFront(),
PtWidgetChildBack(),
PtWidgetChildFront(),
PtWidgetFamily(),
PtWidgetParent(),
PtWidgetSkip(),
PtWidgetTreeTraverse()
“Ordering widgets”
in the Managing Widgets in Application Code chapter of the
Photon Programmer's Guide
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/lib_ref/pt/ptwidgettree.html on line 153
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/lib_ref/pt/ptwidgettree.html on line 153