from_direction


Description:

public static FocusHint from_direction (FocusDirection direction)

Transforms a focus direction to a focus hint.

This is a convenience function for actors that implement the Focusable interface, to pass the correct FocusHint to their children when calling accept_focus.

UP maps to FROM_BELOW , DOWN maps to FROM_ABOVE, LEFT maps to FROM_RIGHT, RIGHT maps to FROM_LEFT, NEXT maps to FIRST, PREVIOUS maps to LAST and anything else maps to PRIOR.

Parameters:

direction

A FocusDirection

Returns:

A FocusHint




2022 vala-language.org