aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MemFun.hh
AgeCommit message (Collapse)AuthorFilesLines
2010-03-26Minor fix for argument reference in MemFunSelectArgImplHenrik Kinnunen1-3/+3
2010-03-19Added SelectArg and MemFunSelectArg*Henrik Kinnunen1-0/+56
The MemFunSelectArg* functions can be used to select a specific argument from a signal. For example this would select the string argument as argument to the callback: Signal<void, int, float, string> signal; signal.connect(MemFunSelectArg2(obj, &Object::takesOneStringArg)); signal.emit(10, 3.14, "hello"); ... void Object::takesOneStringArg(const string& value) { ... }
2010-03-18minor cleaning in MemFun.hhHenrik Kinnunen1-6/+4
2010-03-18Added MemFunIgnoreArgs which ignores aditional arguments.Henrik Kinnunen1-1/+89
For example connecting a function that takes two arguments to a signal that emits three arguments: struct Functor { void show(int a, int b); }; Functor f; Signal<void, int, int, int> s3; s3.connect(MemFunIgnoreArgs(f, &Functor::show));
2008-09-18Added new Signal/Slot system in FbTkHenrik Kinnunen1-0/+139
This is suppose to replace the obsolete Subject/Observer classes. See the src/tests/testSignals.cc for basic usage.