Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a type and functions for handling focus rings of widgets. Note that this interface is merely provided for managing the focus state for a sequence of widget names; it does not do anything beyond keep track of that.
This interface is experimental.
- data FocusRing
- focusRing :: [Name] -> FocusRing
- focusNext :: FocusRing -> FocusRing
- focusPrev :: FocusRing -> FocusRing
- focusGetCurrent :: FocusRing -> Maybe Name
- focusRingCursor :: (a -> FocusRing) -> a -> [CursorLocation] -> Maybe CursorLocation
Documentation
A focus ring containing a sequence of widget names to focus and a currently-focused widget name.
focusGetCurrent :: FocusRing -> Maybe Name Source
Get the currently-focused widget name from the ring. If the ring is
emtpy, return Nothing
.
:: (a -> FocusRing) | The function used to get the focus ring out of your application state. |
-> a | Your application state. |
-> [CursorLocation] | The list of available cursor positions. |
-> Maybe CursorLocation | The cursor position, if any, that matches the name
currently focused by the |
Cursor selection convenience function for use as an
appChooseCursor
value.