monomer-1.6.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 HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Main.Util

Description

Helper functions for the Main module.

Synopsis

Documentation

initMonomerCtx :: Window -> TChan (RenderMsg s e) -> Size -> Double -> Double -> s -> MonomerCtx s e Source #

Initializes the Monomer context with the provided information.

getWidgetIdPath :: MonomerM s e m => WidgetId -> m Path Source #

Returns the path of the provided WidgetId.

setWidgetIdPath :: MonomerM s e m => WidgetId -> Path -> m () Source #

Updates the path associated to a WidgetId.

delWidgetIdPath :: MonomerM s e m => WidgetId -> m () Source #

Removes the association of a path to a WidgetId.

getHoveredPath :: MonomerM s e m => m (Maybe Path) Source #

Returns the path of the currently hovered node, if any.

getFocusedPath :: MonomerM s e m => m Path Source #

Returns the path of the currently focused node.

getOverlayPath :: MonomerM s e m => m (Maybe Path) Source #

Returns the path of the current overlay node, if any.

getDraggedMsgInfo :: MonomerM s e m => m (Maybe (Path, WidgetDragMsg)) Source #

Returns the current drag message and path, if any.

getCurrentCursorIcon :: MonomerM s e m => m (Maybe (Path, CursorIcon)) Source #

Returns the current cursor and path that set it, if any.