Hi all,
I have a small JSNI method calling a javascript method.
public native void requestAnimFrame() /*-{
>
> window.requestAnimationFrame( .... );
>
> }-*/;
>
>
but window.requestAnimationFrame takes a function pointer for parameter as
a callback.
So i need to give as parameter of the JSNI method a pointer to my JAVA
callback function.
Basicaly, i want to do :
public native void requestAnimFrame( function pointer ?? func) /*-{
> window.requestAnimationFrame( func );
> }-*/;
>
> public void myCallback()
> {
> // do things.
> }
>
> public void onModuleLoad()
> {
> requestAnimFrame(myCallback);
> }
Any way to do it ?
Thanks for your attention !
Regards,
Harold
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.