Renderer-independent queries over GPUI.Element and serialized element trees.
Summary
Functions
Returns every node matching a selector.
Returns the first matching node, or nil.
Returns the first matching node or raises.
Returns the root-to-node path for the first match.
Returns all nodes in depth-first order.
Types
@type element_node() :: GPUI.Element.t() | map()
@type selector() :: keyword()
Functions
@spec all(element_node(), selector()) :: [element_node()]
Returns every node matching a selector.
@spec find(element_node(), selector()) :: element_node() | nil
Returns the first matching node, or nil.
@spec find!(element_node(), selector()) :: element_node()
Returns the first matching node or raises.
@spec path(element_node(), selector()) :: [element_node()] | nil
Returns the root-to-node path for the first match.
@spec walk(element_node()) :: [element_node()]
Returns all nodes in depth-first order.