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 hover related actions.
Synopsis
- isPointInNodeVp :: WidgetNode s e -> Point -> Bool
- isPointInNodeEllipse :: WidgetNode s e -> Point -> Bool
- isNodeActive :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeInfoActive :: Bool -> WidgetEnv s e -> WidgetNodeInfo -> Bool
- isNodePressed :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeInfoPressed :: Bool -> WidgetEnv s e -> WidgetNodeInfo -> Bool
- isNodeTreeActive :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeTreePressed :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeDragged :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeInfoDragged :: WidgetEnv s e -> WidgetNodeInfo -> Bool
- isNodeHovered :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeInfoHovered :: WidgetEnv s e -> WidgetNodeInfo -> Bool
- isNodeHoveredEllipse_ :: Rect -> WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeTopLevel :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeInfoTopLevel :: WidgetEnv s e -> WidgetNodeInfo -> Bool
- isNodeInOverlay :: WidgetEnv s e -> WidgetNode s e -> Bool
- isNodeInfoInOverlay :: WidgetEnv s e -> WidgetNodeInfo -> Bool
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.