/** * @since Available in iOS 8.2 and later. */ public static UIFont getSystemFont(double fontSize, UIFontWeight weight) { return getSystemFont(fontSize, weight.value()); } /*<methods>*/
@MarshalsPointer public static UIFontWeight toObject(Class<UIFontWeight> cls, long handle, long flags) { NSNumber o = (NSNumber) NSObject.Marshaler.toObject(NSNumber.class, handle, flags); if (o == null) { return null; } return UIFontWeight.valueOf(o.doubleValue()); } @MarshalsPointer
public static /*<name>*/UIFontWeight/*</name>*/ valueOf(/*<type>*/@MachineSizedFloat double/*</type>*/ value) { for (/*<name>*/UIFontWeight/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/UIFontWeight/*</name>*/.class.getName()); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<UIFontWeight> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSNumber> o = (NSArray<NSNumber>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<UIFontWeight> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(UIFontWeight.valueOf(o.get(i).doubleValue())); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(UIFontWeight o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(NSNumber.valueOf(o.value()), flags); } }
@MarshalsPointer public static UIFontWeight toObject(Class<UIFontWeight> cls, long handle, long flags) { NSNumber o = (NSNumber) NSObject.Marshaler.toObject(NSNumber.class, handle, flags); if (o == null) { return null; } return UIFontWeight.valueOf(o.doubleValue()); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<UIFontWeight> l, long flags) { if (l == null) { return 0L; } NSArray<NSNumber> array = new NSMutableArray<>(); for (UIFontWeight o : l) { array.add(NSNumber.valueOf(o.value())); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static UIFontWeight toObject(Class<UIFontWeight> cls, long handle, long flags) { NSNumber o = (NSNumber) NSObject.Marshaler.toObject(NSNumber.class, handle, flags); if (o == null) { return null; } return UIFontWeight.valueOf(o.doubleValue()); } @MarshalsPointer
public static /*<name>*/UIFontWeight/*</name>*/ valueOf(/*<type>*/@MachineSizedFloat double/*</type>*/ value) { for (/*<name>*/UIFontWeight/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/UIFontWeight/*</name>*/.class.getName()); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<UIFontWeight> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSNumber> o = (NSArray<NSNumber>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<UIFontWeight> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(UIFontWeight.valueOf(o.get(i).doubleValue())); } return list; } @MarshalsPointer
/** * @since Available in iOS 8.2 and later. */ public static UIFont getSystemFont(double fontSize, UIFontWeight weight) { return getSystemFont(fontSize, weight.value()); } /*<methods>*/
@SuppressWarnings("unchecked") @MarshalsPointer public static List<UIFontWeight> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSNumber> o = (NSArray<NSNumber>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<UIFontWeight> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(UIFontWeight.valueOf(o.get(i).doubleValue())); } return list; } @MarshalsPointer
/** * @since Available in iOS 8.2 and later. */ public static UIFont getSystemFont(double fontSize, UIFontWeight weight) { return getSystemFont(fontSize, weight.value()); } /*<methods>*/
public static /*<name>*/UIFontWeight/*</name>*/ valueOf(/*<type>*/@MachineSizedFloat double/*</type>*/ value) { for (/*<name>*/UIFontWeight/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/UIFontWeight/*</name>*/.class.getName()); }
@MarshalsPointer public static long toNative(UIFontWeight o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(NSNumber.valueOf(o.value()), flags); } }
@MarshalsPointer public static long toNative(UIFontWeight o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(NSNumber.valueOf(o.value()), flags); } }
@MarshalsPointer public static long toNative(List<UIFontWeight> l, long flags) { if (l == null) { return 0L; } NSArray<NSNumber> array = new NSMutableArray<>(); for (UIFontWeight o : l) { array.add(NSNumber.valueOf(o.value())); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static long toNative(List<UIFontWeight> l, long flags) { if (l == null) { return 0L; } NSArray<NSNumber> array = new NSMutableArray<>(); for (UIFontWeight o : l) { array.add(NSNumber.valueOf(o.value())); } return NSObject.Marshaler.toNative(array, flags); } }