| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
NanoUI.Frame.Hit
Description
Layout hit testing for modals, windows, and overlay stacking.
Synopsis
- findNodeByWidgetId :: Context -> WidgetId -> IO (Maybe NodeIdx)
- findNodeByKey :: Context -> Int -> IO (Maybe NodeIdx)
- modalTreeOpen :: Context -> IO Bool
- nodeInSubtree :: Context -> NodeIdx -> NodeIdx -> IO Bool
- widgetIdInSubtree :: Context -> NodeIdx -> WidgetId -> IO Bool
- overlayHitAllowed :: Context -> NodeIdx -> V2 -> IO Bool
- topmostOverlayAtMouse :: Context -> V2 -> IO (Maybe NodeIdx)
- topmostModalAtMouse :: Context -> V2 -> IO (Maybe NodeIdx)
- widgetOverlayAllowed :: Context -> WidgetId -> IO Bool
- scrollHitRect :: Context -> WidgetId -> IO (Maybe Rect)
- nodePointVisible :: Context -> NodeIdx -> V2 -> IO Bool
- nodeClippedHit :: Context -> NodeIdx -> Rect -> V2 -> IO Bool
- nodeInteractionHit :: Context -> NodeIdx -> Rect -> V2 -> IO Bool