This might be useful:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/animation/client/AnimationScheduler.html

Regards,

Alfredo

On Thu, Aug 16, 2012 at 1:36 PM, Harold Comere <[email protected]> wrote:
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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.

Reply via email to