The type of the delegate.
The delegate to set.
The context pointer, e.g a pointer to a struct or a class instance.
The pointer to the static function.
1 struct Foo 2 { 3 bool fun(){return true;} 4 } 5 Foo foo; 6 bool delegate() atFun; 7 atFun.setDelegate(&foo, &Foo.fun); 8 assert(atFun());
Sets the context and the function of a delegate.