I have this code currently:
It works like I want it to, the user creates a void function with the arguments it says there (they are alreayd defined structs) and than the user simple doesCode:void (*OnPaint)(WindowArgs, PaintArgs);
And they decalre the function like this:Code:OnPaint = func_name;
But the thing is I want the user know what kind of arguments to put inside the callback without looking at the callback code. It is a very vague question so I hope someone can help me. Ask if you need any more info.Code:void paint(WindowArgs args, PaintArgs paint) { //Do stuff here }



LinkBack URL
About LinkBacks


