/** * @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(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); } }
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()); }
/** * @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()); }
/** * @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 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); } }