@MarshalsPointer public static UIFontDescriptorTraits toObject(Class<UIFontDescriptorTraits> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new UIFontDescriptorTraits(o); } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorAttributes setTraits(UIFontDescriptorTraits traits) { set(UIFontDescriptorAttribute.Traits, traits.getDictionary()); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits setWeightTrait(double weightTrait) { set(Keys.WeightTrait(), NSNumber.valueOf(weightTrait)); return this; } /**
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public UIFontDescriptorTraits set(NSString key, NSObject value) {
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits setSlantTrait(double slantTrait) { set(Keys.SlantTrait(), NSNumber.valueOf(slantTrait)); return this; } /*</methods>*/
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public UIFontDescriptorTraits set(NSString key, NSObject value) {
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits setWidthTrait(double widthTrait) { set(Keys.WidthTrait(), NSNumber.valueOf(widthTrait)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits getTraits() { if (has(UIFontDescriptorAttribute.Traits)) { NSDictionary val = (NSDictionary) get(UIFontDescriptorAttribute.Traits); return new UIFontDescriptorTraits(val); } return null; } /**
@MarshalsPointer public static long toNative(List<UIFontDescriptorTraits> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (UIFontDescriptorTraits i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public UIFontDescriptorTraits set(NSString key, NSObject value) {
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits setSymbolicTraits(UIFontDescriptorSymbolicTraits symbolicTraits) { set(Keys.SymbolicTrait(), NSNumber.valueOf(symbolicTraits.value())); return this; } /**
@MarshalsPointer public static List<UIFontDescriptorTraits> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<UIFontDescriptorTraits> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new UIFontDescriptorTraits(o.get(i))); } return list; } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorAttributes setTraits(UIFontDescriptorTraits traits) { set(UIFontDescriptorAttribute.Traits, traits.getDictionary()); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits setWeightTrait(double weightTrait) { set(Keys.WeightTrait(), NSNumber.valueOf(weightTrait)); return this; } /**
@MarshalsPointer public static UIFontDescriptorTraits toObject(Class<UIFontDescriptorTraits> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new UIFontDescriptorTraits(o); } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorAttributes setTraits(UIFontDescriptorTraits traits) { set(UIFontDescriptorAttribute.Traits, traits.getDictionary()); return this; } /**