[Previous]
[Bookset]
[Next]

PtGlobalFocusNextFrom()

Give focus to the next widget behind the specified widget

Synopsis:

PtWidget_t *PtGlobalFocusNextFrom( 
                PtWidget_t *widget, 
                PhEvent_t *event ); 

Description:

Unlike PtGlobalFocusNext(), this function doesn't find the currently focused widget first. PtGlobalFocusNextFrom() will move the focus to the next focusable widget after widget in the same disjoint widget (window, region, menu) as widget. The widget that's given focus will receive event as the reason.

If event isn't provided, a NULL event will be generated for you.

Returns:

The widget that was given focus, or NULL if no focusable widgets are found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtContainerGiveFocus(), PtContainerNullFocus(), PtContainerFocusNext(), PtContainerFocusPrev(), PtGlobalFocusNext(), PtGlobalFocusNextContainer(), PtGlobalFocusPrev(), PtGlobalFocusPrevFrom(), PtGlobalFocusPrevContainer(), PtIsFocused()


[Previous]
[Bookset]
[Next]