@MarshalsPointer public static CTFrameAttributes toObject(Class<CTFrameAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFrameAttributes(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CTFrameAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFrameAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.2 and later. */ public CTFrameAttributes setPathWidth(double pathWidth) { set(Keys.PathWidth(), CFNumber.valueOf(pathWidth)); return this; } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CTFrameAttributes set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.2 and later. */ public CTFrameAttributes setPathFillRule(CTFramePathFillRule pathFillRule) { set(Keys.PathFillRule(), CFNumber.valueOf(pathFillRule.value())); return this; } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CTFrameAttributes set(CFString key, NativeObject value) {
/** * @since Available in iOS 3.2 and later. */ public CTFrameAttributes setProgression(CTFrameProgression progression) { set(Keys.Progression(), CFNumber.valueOf(progression.value())); return this; } /**
@MarshalsPointer public static List<CTFrameAttributes> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CTFrameAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CTFrameAttributes(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CTFrameAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFrameAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CTFrameAttributes set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.3 and later. */ public List<CTFrameClippingPath> getClippingPaths() { if (has(Keys.ClippingPaths())) { CFArray val = get(Keys.ClippingPaths(), CFArray.class); List<CTFrameClippingPath> list = new ArrayList<>(); CFDictionary[] array = val.toArray(CFDictionary.class); for (CFDictionary d : array) { list.add(new CTFrameClippingPath(d)); } return list; } return null; } /**
/** * @since Available in iOS 4.3 and later. */ public CTFrameAttributes setClippingPaths(List<CTFrameClippingPath> clippingPaths) { CFArray val = CFMutableArray.create(); for (CTFrameClippingPath e : clippingPaths) { val.add(e.getDictionary()); } set(Keys.ClippingPaths(), val); return this; } /*</methods>*/
@MarshalsPointer public static CTFrameAttributes toObject(Class<CTFrameAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFrameAttributes(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CTFrameAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFrameAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.2 and later. */ public CTFrameAttributes setPathWidth(double pathWidth) { set(Keys.PathWidth(), CFNumber.valueOf(pathWidth)); return this; } /**
@MarshalsPointer public static CTFrameAttributes toObject(Class<CTFrameAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFrameAttributes(o); } @MarshalsPointer