aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/popover.go
Commit message (Collapse)AuthorAgeFilesLines
* Add popoversBen Burwell2019-12-211-0/+62
A popover is a special UI element which can be layered over the rest of the UI (i.e. it is painted last) and can fall anywhere on the screen, not just with the bounds of its parent's viewport/context. With these special abilities comes the restriction that only one popover may be visible on screen at once. Popovers are requested from the UI context passed to Draw calls and specify the anchor point and the desired dimensions. The popover is then fit to the available space and placed relative to the anchor point.