public static /*<name>*/EAGLColorFormat/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/EAGLColorFormat/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/EAGLColorFormat/*</name>*/.class.getName()); }
@MarshalsPointer public static EAGLColorFormat toObject(Class<EAGLColorFormat> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return EAGLColorFormat.valueOf(o); } @MarshalsPointer
public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) { set(Keys.ColorFormat(), colorFormat.value()); return this; } /*</methods>*/
@SuppressWarnings("unchecked") @MarshalsPointer public static List<EAGLColorFormat> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<EAGLColorFormat> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(EAGLColorFormat.valueOf(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(EAGLColorFormat o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
public EAGLColorFormat getColorFormat() { if (has(Keys.ColorFormat())) { NSString val = (NSString) get(Keys.ColorFormat()); return EAGLColorFormat.valueOf(val); } return null; } public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) {
@MarshalsPointer public static long toNative(List<EAGLColorFormat> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (EAGLColorFormat o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static EAGLColorFormat toObject(Class<EAGLColorFormat> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return EAGLColorFormat.valueOf(o); } @MarshalsPointer
public static /*<name>*/EAGLColorFormat/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/EAGLColorFormat/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/EAGLColorFormat/*</name>*/.class.getName()); }
@MarshalsPointer public static EAGLColorFormat toObject(Class<EAGLColorFormat> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return EAGLColorFormat.valueOf(o); } @MarshalsPointer
public static /*<name>*/EAGLColorFormat/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/EAGLColorFormat/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/EAGLColorFormat/*</name>*/.class.getName()); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<EAGLColorFormat> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<EAGLColorFormat> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(EAGLColorFormat.valueOf(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(EAGLColorFormat o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<EAGLColorFormat> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<EAGLColorFormat> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(EAGLColorFormat.valueOf(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(EAGLColorFormat o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
public EAGLColorFormat getColorFormat() { if (has(Keys.ColorFormat())) { NSString val = (NSString) get(Keys.ColorFormat()); return EAGLColorFormat.valueOf(val); } return null; } public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) {
public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) { set(Keys.ColorFormat(), colorFormat.value()); return this; } /*</methods>*/
public EAGLColorFormat getColorFormat() { if (has(Keys.ColorFormat())) { NSString val = (NSString) get(Keys.ColorFormat()); return EAGLColorFormat.valueOf(val); } return null; } public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) {
public EAGLDrawableProperties setColorFormat(EAGLColorFormat colorFormat) { set(Keys.ColorFormat(), colorFormat.value()); return this; } /*</methods>*/
@MarshalsPointer public static long toNative(List<EAGLColorFormat> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (EAGLColorFormat o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }