public static CAShapeFillRule valueOf(NSString value) { for (CAShapeFillRule v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException( "No constant with value " + value + " found in " + /*<name>*/ CAShapeFillRule /*</name>*/.class.getName()); }
@MarshalsPointer public static long toNative(CAShapeFillRule o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); }
@MarshalsPointer public static CAShapeFillRule toObject(Class<CAShapeFillRule> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return CAShapeFillRule.valueOf(o); }