Function activate_pointer

Source
pub fn activate_pointer(
    release: &Release,
    elements: &Tree<Element>,
    node_id: &NodeId,
    action_buffer: &mut Vec<(NodeId, Action)>,
)
Expand description

Builtin button control ‘ActivatePointer’.

Given the target node, traverses subtree to find the top-most element that intersects with the pointer; if the element is in state Enabled, then it is focused. If the element is also a button, then push the button.

Note that this control does not need to be bound to a frame widget; it can be bound to any arbitrary widget.