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.Widgets.Util.Hover

Description

Helper functions for hover related actions.

Synopsis

Documentation

isPointInNodeVp :: WidgetNode s e -> Point -> Bool Source #

Checks if the given point is inside the node's viewport.

isPointInNodeEllipse :: WidgetNode s e -> Point -> Bool Source #

Checks if the given point is inside the ellipse delimited by the viewport.

isNodeActive :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if the main button is pressed and pointer inside the vieport.

isNodeInfoActive :: Bool -> WidgetEnv s e -> WidgetNodeInfo -> Bool Source #

Checks if the node is active, optionally including children. An active node was clicked with the main button and has the pointer inside its viewport.

isNodePressed :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if the main button is pressed inside the vieport.

isNodeInfoPressed :: Bool -> WidgetEnv s e -> WidgetNodeInfo -> Bool Source #

Checks if the node is pressed, optionally including children. A pressed node was clicked with the main button, but the pointer may not be inside its viewport.

isNodeTreeActive :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if the node or any of its children is active.

isNodeTreePressed :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if the node or any of its children is pressed.

isNodeDragged :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if the node is being dragged. The node must have made a previous request to be in that state.

isNodeInfoDragged :: WidgetEnv s e -> WidgetNodeInfo -> Bool Source #

Checks if the nodeInfo is being dragged.

isNodeHovered :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if node is hovered. Pointer must be in viewport and node top layer.

isNodeInfoHovered :: WidgetEnv s e -> WidgetNodeInfo -> Bool Source #

Checks if nodeInfo is hovered.

isNodeHoveredEllipse_ :: Rect -> WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if node is hovered, limited to an elliptical shape.

isNodeTopLevel :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if a node is in a top layer. Being in zstack can cause this to be False.

isNodeInfoTopLevel :: WidgetEnv s e -> WidgetNodeInfo -> Bool Source #

Checks if a nodeInfo is in a top layer.

isNodeInOverlay :: WidgetEnv s e -> WidgetNode s e -> Bool Source #

Checks if the node is part of the active overlay, if any.

isNodeInfoInOverlay :: WidgetEnv s e -> WidgetNodeInfo -> Bool Source #

Checks if the nodeInfo is part of the active overlay, if any.