I would like to define a function pointer;
However the Widget class contains a member variable function pointer of type EventCallback (or at least I would like it to).Code:typedef long (*EventCallback)(Widget*,int);
Any ideas how I could make it work without having to use the bare syntax? (eg; long(*callback)(Widget*,int); as member)...
Probably not possible, I would sort of hope not because as far as my understanding of things goes it shouldn't be possible. But to keep updating and modifications easy (eg, changing a single typedef instead of lots of classes out of scope) I wouldn't mind an easier solution to this problem.
Thanks peeps