Documentation
¶
Overview ¶
Package viewtree traverses the self-drawn view trees on Windows and Linux.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BarAt ¶
BarAt returns the innermost reachable scrollbar and the point in its view's coordinates. If there is no scrollbar at the point, it returns p unchanged.
func Hit ¶
Hit returns the topmost matching view. The point is in the parent's content coordinates. An unmatched view lets the search continue below it.
Types ¶
type Node ¶
type Node[V any] interface { comparable PointerVisibility() (hidden, transparent bool) PointerReach(p driver.Point) (local driver.Point, self, children bool) PointerChildren(local driver.Point) (content driver.Point, children []V) ScrollbarContains(local driver.Point) bool }
Node gives the traversal access to a backend's current view geometry.