Render themes: SVG resources on iOS, improves #69
This commit is contained in:
@@ -16,37 +16,56 @@ import org.robovm.rt.bro.annotation.MachineSizedFloat;
|
||||
import org.robovm.rt.bro.annotation.Pointer;
|
||||
import org.robovm.rt.bro.ptr.Ptr;
|
||||
|
||||
@Library(Library.INTERNAL)
|
||||
@Library(Library.INTERNAL)
|
||||
@NativeClass("SVGRenderer")
|
||||
public class SVGRenderer extends SVGParser implements SVGContext, GHRenderable {
|
||||
public static class SVGRendererPtr extends Ptr<SVGRenderer, SVGRendererPtr> {}
|
||||
static { ObjCRuntime.bind(SVGRenderer.class); }/*</bind>*/
|
||||
public static class SVGRendererPtr extends Ptr<SVGRenderer, SVGRendererPtr> {
|
||||
}
|
||||
|
||||
public SVGRenderer() {};
|
||||
protected SVGRenderer(long handle) { super(handle); }
|
||||
protected SVGRenderer(SkipInit skipInit) { super(skipInit); }
|
||||
static {
|
||||
ObjCRuntime.bind(SVGRenderer.class);
|
||||
}/*</bind>*/
|
||||
|
||||
public SVGRenderer() {
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
protected SVGRenderer(long handle) {
|
||||
super(handle);
|
||||
}
|
||||
|
||||
protected SVGRenderer(SkipInit skipInit) {
|
||||
super(skipInit);
|
||||
}
|
||||
|
||||
public SVGRenderer(String utf8String) {
|
||||
super((SkipInit) null);
|
||||
initObject(init(utf8String));
|
||||
}
|
||||
|
||||
public SVGRenderer(String utf8String) { super((SkipInit) null); initObject(init(utf8String)); }
|
||||
|
||||
@Method(selector = "initWithString:")
|
||||
protected native @Pointer long init(String utf8String);
|
||||
|
||||
protected native
|
||||
@Pointer
|
||||
long init(String utf8String);
|
||||
|
||||
@Property(selector = "viewRect")
|
||||
public native @ByVal CGRect getViewRect();
|
||||
|
||||
public native
|
||||
@ByVal
|
||||
CGRect getViewRect();
|
||||
|
||||
@Method(selector = "colorForSVGColorString:")
|
||||
public native UIColor colorForSVGColorString(String svgColorString);
|
||||
|
||||
@Method(selector = "objectAtURL:")
|
||||
public native NSObject objectAtURL(String aLocation);
|
||||
|
||||
public native NSObject objectAtURL(String aLocation);
|
||||
|
||||
@Property(selector = "transform")
|
||||
public native CGAffineTransform getTransform();
|
||||
|
||||
|
||||
@Property(selector = "hidden")
|
||||
public native boolean isHidden();
|
||||
|
||||
@Method(selector = "asImageWithSize:andScale:")
|
||||
public native UIImage asImageWithSize(@ByVal CGSize maximumSize, @MachineSizedFloat double scale);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user