@MarshalsPointer public static CTFontDescriptorProgressData toObject(Class<CTFontDescriptorProgressData> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFontDescriptorProgressData(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CTFontDescriptorProgressData> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFontDescriptorProgressData 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 <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; }
@Callback private static boolean cbProgress(CTFontDescriptorMatchingState state, CFDictionary data) { return progressHandler.invoke(state, new CTFontDescriptorProgressData(data)); }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; }
@MarshalsPointer public static long toNative(List<CTFontDescriptorProgressData> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFontDescriptorProgressData i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static List<CTFontDescriptorProgressData> 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<CTFontDescriptorProgressData> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CTFontDescriptorProgressData(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CTFontDescriptorProgressData> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CTFontDescriptorProgressData i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static CTFontDescriptorProgressData toObject(Class<CTFontDescriptorProgressData> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFontDescriptorProgressData(o); } @MarshalsPointer
@MarshalsPointer public static CTFontDescriptorProgressData toObject(Class<CTFontDescriptorProgressData> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CTFontDescriptorProgressData(o); } @MarshalsPointer
@MarshalsPointer public static List<CTFontDescriptorProgressData> 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<CTFontDescriptorProgressData> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CTFontDescriptorProgressData(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static List<CTFontDescriptorProgressData> 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<CTFontDescriptorProgressData> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CTFontDescriptorProgressData(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer