Node.startBranchAction

Start a branch action (or multiple) to run on children of this node.

This should only be used inside drawImpl. The action will stop as soon as the return value goes out of scope.

  1. auto startBranchAction(BranchAction action)
  2. auto startBranchAction(T range)
    class Node
    protected final
    startBranchAction
    (
    T
    )
    ()
    if (
    isForwardRange!T &&
    is(ElementType!T : BranchAction)
    )

Parameters

range T

Multiple actions can be launched at once by passing a range of branch actions.

Return Value

Type: auto

A RAII struct that stops all started actions as soon as the struct leaves the scope.

Meta