Re: Get an attribute from a GWT object via jsni?

2012-11-25 Thread Andrea Boscolo
Try with return conte...@com.google.gwt.canvas.dom.client.Context2d::webkitBackingStorePixelRatio; but I don't think it will ever work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: Get an attribute from a GWT object via jsni?

2012-11-25 Thread Sebastián Gurin
no, com.google.gwt.canvas.dom.client.Context2d is a JavaScriptObject so just treat it as a javascript object not as a java object in jsni code. . On Sunday, November 25, 2012 9:30:46 AM UTC-2, Andrea Boscolo wrote: Try with return

Get an attribute from a GWT object via jsni?

2012-11-24 Thread markww
Hi, I'm using Canvas, I need to get a property from the context: context.webkitBackingStorePixelRatio; I'm not sure how to make a jsni function to do this (this property does not seem to have a wrapper already in the gwt Context2d class): // How do we define this function and pass in

Re: Get an attribute from a GWT object via jsni?

2012-11-24 Thread Sebastián Gurin
that should work... What is the result ? On Saturday, November 24, 2012 1:05:28 PM UTC-2, markww wrote: Hi, I'm using Canvas, I need to get a property from the context: context.webkitBackingStorePixelRatio; I'm not sure how to make a jsni function to do this (this property does not