nodeParent
Return the node of the nearest parent widget that has a non-null accesskit node.
Parameters
- wd_in:*dvui.WidgetData
- *dvui.WidgetData
Source
Implementation
pub fn nodeParent(wd_in: *dvui.WidgetData) *Node {
var iter = wd_in.parent.data().iterator();
while (iter.next()) |wd| {
if (wd.accesskit_node()) |ak_node| {
if (debug_node_tree)
std.debug.print("parent node is {x} at {s}:{d}\n", .{ wd.id, wd.src.file, wd.src.line });
return ak_node;
}
}
unreachable;
}