Determine to what degree a widget is focused
int PtIsFocused( PtWidget_t *widget );
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.
PtContainerFindFocus(), PtContainerFocusNext(), PtContainerFocusPrev(), PtGlobalFocusNext(), PtGlobalFocusNextFrom(), PtGlobalFocusPrev(), PtGlobalFocusPrevFrom()