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 the Main module.
Synopsis
- initMonomerCtx :: Window -> TChan (RenderMsg s e) -> Size -> Double -> Double -> s -> MonomerCtx s e
- getWidgetIdPath :: MonomerM s e m => WidgetId -> m Path
- setWidgetIdPath :: MonomerM s e m => WidgetId -> Path -> m ()
- delWidgetIdPath :: MonomerM s e m => WidgetId -> m ()
- getHoveredPath :: MonomerM s e m => m (Maybe Path)
- getFocusedPath :: MonomerM s e m => m Path
- getOverlayPath :: MonomerM s e m => m (Maybe Path)
- getDraggedMsgInfo :: MonomerM s e m => m (Maybe (Path, WidgetDragMsg))
- getCurrentCursorIcon :: MonomerM s e m => m (Maybe (Path, CursorIcon))
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.