PtGlobalFocusPrevContainer()

Give focus to a widget in the previous container

Synopsis:

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

Library:

ph

Description:

This function finds the currently focused widget in the same disjoint widget (window, region, menu) as widget and moves the focus to the previous focusable widget in another container.

The widget that's given focus receives the given event as the reason. If event is NULL, this function generates a PhEvent_t structure filled with zeros 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:

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