monomer-1.4.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Main.UserUtil

Description

Helper functions for Monomer users, to simplify common operations such as focus change and clipboard requests.

Synopsis

Documentation

setFocusOnKey :: WidgetEnv s e -> WidgetKey -> EventResponse s e sp ep Source #

Deprecated: Use SetFocusOnKey instead (wenv argument should be removed).

Generates a response to set 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