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/ptisfocused.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/ptisfocused.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/ptisfocused.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/ptisfocused.html on line 8
Determine to what degree a widget is focused
int PtIsFocused( PtWidget_t *widget );
- widget
- A pointer to the widget whose focus you want to determine.
ph
This function returns a value indicating to what degree a widget is
focused.
The widget family hierarchy is a set of trees.
The widget that you would normally say has focus is called the
focus leaf.
Its parent, grandparent, and so on, up to the root of the tree (typically a
window), form the focus branch.
In other words, a widget is on the focus branch if the focus leaf is
somewhere inside it.
- 0
- The widget isn't focused.
- 1
- The widget is on the focus branch.
- 2
- The widget is the focus leaf.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtContainerFindFocus(),
PtContainerFocusNext(),
PtContainerFocusPrev(),
PtGlobalFocusNext(),
PtGlobalFocusNextFrom(),
PtGlobalFocusPrev(),
PtGlobalFocusPrevFrom()
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/ptisfocused.html on line 123
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/ptisfocused.html on line 123