c++ swig class => ruby class

º

ºÎƽ

Hi. everyone

For example I have these class

class CallbackIF{
...
virtual void onMouseClick();
...
};
class EventDispatcher{
CallbackIF* lpCallback;
void fun(){
...
lpCallback->onMouseClick();
...
}
};

so I want to generate CallbackIF a ruby wrapper, exceed it, rewrite the =
onMouseClick function, and set it into EventDispatcher. so that I can =
implement click callback in ruby code.
is that possible?
If not, how can I have callback-like access?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top