callbackConfigurer

Configures/modifies component of type T with help of a delegate or function.

Encapsulates component configuration logic using a delegate. The algorithm calls delegate, with a locator, a set of Args, and configured component, in order to modify the component.

Note: If component is not a reference type it is recommended to pass it by ref in order to avoid receiving of a copy and not original one in delegate. It is expected that the callback will use somehow method on which it was annotated with.

  1. auto callbackConfigurer(void delegate(Locator!(), X, Args) dg, Args args)
  2. auto callbackConfigurer(void function(Locator!(), X, Args) dg, Args args)
  3. auto callbackConfigurer(void delegate(Locator!(), ref X, Args) dg, Args args)
  4. auto callbackConfigurer(void function(Locator!(), ref X, Args) dg, Args args)
    callbackConfigurer
    (
    T
    X
    Args...
    )
    (
    void function
    (,
    ref X
    ,
    Args
    )
    dg
    ,
    auto ref Args args
    )
    if (
    is(T : X)
    )

Parameters

T

the component

Args

type tuple of arguments used by delegate for customization.

Meta