MyGUI
3.2.2
Delegate usage
General information about creating delegate for event :
void
anyFunc(...) { }
// global function
class
AnyClass
{
public
:
static
void
anyStaticMethod(...) { }
// static class method
void
anyMethod(...) { }
// class method
};
AnyClass anyObject;
// class instance
delegate creating:
eventAny =
MyGUI::newDelegate
(anyFunc);
eventAny =
MyGUI::newDelegate
(AnyClass::anyStaticMethod);
eventAny =
MyGUI::newDelegate
(&anyObject, &AnyClass::anyMethod);
usage
newDelegate
MYGUI_TEMPLATE MYGUI_TEMPLATE_PARAMS delegates::IDelegateMYGUI_SUFFIX MYGUI_TEMPLATE_ARGS * newDelegate(void(*_func)(MYGUI_PARAMS))
Definition:
MyGUI_DelegateImplement.h:117
Generated by
1.8.17