Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Helper functions for Monomer users, to simplify common operations such as focus change and clipboard requests.
Synopsis
- setFocusOnKey :: WidgetEnv s e -> WidgetKey -> EventResponse s e sp ep
- setClipboardData :: ClipboardData -> EventResponse s e sp ep
- setCursorIcon :: WidgetNode s e -> CursorIcon -> EventResponse s e sp ep
- resetCursorIcon :: WidgetNode s e -> EventResponse s e sp ep
- exitApplication :: EventResponse s e sp ep
- cancelExitApplication :: EventResponse s e sp ep
Documentation
setFocusOnKey :: WidgetEnv s e -> WidgetKey -> EventResponse s e sp ep Source #
Generates a response to sets focus on the given key, provided as WidgetKey. If the key does not exist, focus will remain on the currently focused widget.
setClipboardData :: ClipboardData -> EventResponse s e sp ep Source #
Generates a response that sets the clipboard to the given data
setCursorIcon :: WidgetNode s e -> CursorIcon -> EventResponse s e sp ep Source #
Generates a response that sets the cursor to the given icon
resetCursorIcon :: WidgetNode s e -> EventResponse s e sp ep Source #
Generates a response that resets the cursor icon
exitApplication :: EventResponse s e sp ep Source #
Generates a response that exits the application
cancelExitApplication :: EventResponse s e sp ep Source #
Generates a response that cancels a request to exit the application