CallbackConfigurerAnnotation

Annotation that specifies a delegate to be used to configure component somehow.

  1. struct CallbackConfigurerAnnotation(Z, Dg, Args...)
    @safe
    struct CallbackConfigurerAnnotation (
    Z
    Dg
    Args...
    ) if (
    is(Dg == void delegate
    (
    Locator!()
    ,
    Z
    ,
    Args
    )
    ) ||
    is(Dg == void function
    (
    Locator!()
    ,
    Z
    ,
    Args
    )
    )
    ||
    is(Dg == void delegate
    (
    Locator!()
    ,
    ref Z
    ,
    Args
    )
    )
    ||
    is(Dg == void function
    (
    Locator!()
    ,
    ref Z
    ,
    Args
    )
    )
    ) {}
  2. auto callback(void delegate(Locator!(), ref T, Args) dg, Args args)
  3. auto callback(void function(Locator!(), ref T, Args) dg, Args args)
  4. auto callback(void delegate(Locator!(), T, Args) dg, Args args)
  5. auto callback(void function(Locator!(), T, Args) dg, Args args)

Constructors

this
this(Dg dg, Args args)

Constructor accepting a configurer delegate, and it's arguments.

Members

Variables

args
Args args;

Args that can be passed to delegate

dg
Dg dg;

Delegate that is used to configure component

Parameters

Z

the type of component that will be returned by the delegate

Args

type tuple of args that can be passed to delegate.

Meta