Hi,
-- I tried to find some information regards the topic but found nothing :)
TLDR: Yes, it works.
and then
Who can need it? For example GWT has support for canvas and JS library has function that takes the 2d context as a parameter. So you can ease define the JsType wrapper and simple pass the Context2d as parameter to JavaScript.
@JsType(isNative = true, namespace = GLOBAL)public class PrintBuilder {
public native String createBitImageElement(Context2d context);
}and then
Canvas canvas = Canvas.createIfSupported();
//draw something
String printCommand = new PrintBuilder().createBitImageElement(canvas.getContext2d());Best,
Stas
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment