@MarshalsPointer
 public static long toNative(CIContextOptions o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(NSNetServiceErrorUserInfo o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(NSStreamSOCKSProxyVersion o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(SCNSceneAttribute o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(NSTextCheckingTransitComponents o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(NSURLProtectionSpaceProxyType o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
Exemple #7
0
 @MarshalsPointer
 public static long toNative(SCNLightingModel o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(NSFileSystemAttributes o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(NSCocoaErrorUserInfoKey o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(SKReceiptRefreshRequestOptions o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.data, flags);
 }
Exemple #11
0
 @MarshalsPointer
 public static SCNLightingModel toObject(Class<SCNLightingModel> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return SCNLightingModel.valueOf(o);
 }
 @MarshalsPointer
 public static NSURLProtectionSpaceProxyType toObject(
     Class<NSURLProtectionSpaceProxyType> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSURLProtectionSpaceProxyType.valueOf(o);
 }
 @MarshalsPointer
 public static CIContextOptions toObject(Class<CIContextOptions> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CIContextOptions(o);
 }
 @MarshalsPointer
 public static NSCocoaErrorUserInfoKey toObject(
     Class<NSCocoaErrorUserInfoKey> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSCocoaErrorUserInfoKey.valueOf(o);
 }
 @MarshalsPointer
 public static SCNSceneAttribute toObject(
     Class<SCNSceneAttribute> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return SCNSceneAttribute.valueOf(o);
 }
 @MarshalsPointer
 public static NSStreamSOCKSProxyVersion toObject(
     Class<NSStreamSOCKSProxyVersion> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSStreamSOCKSProxyVersion.valueOf(o);
 }
 @MarshalsPointer
 public static NSFileSystemAttributes toObject(
     Class<NSFileSystemAttributes> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new NSFileSystemAttributes(o);
 }
 @MarshalsPointer
 public static long toNative(List<NSStreamSOCKSProxyVersion> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (NSStreamSOCKSProxyVersion o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<NSURLProtectionSpaceProxyType> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (NSURLProtectionSpaceProxyType o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static NSNetServiceErrorUserInfo toObject(
     Class<NSNetServiceErrorUserInfo> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new NSNetServiceErrorUserInfo(o);
 }
Exemple #21
0
 @MarshalsPointer
 public static CIDetectorOptions toObject(
     Class<CIDetectorOptions> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CIDetectorOptions(o);
 }
 @MarshalsPointer
 public static long toNative(List<NSNetServiceErrorUserInfo> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSDictionary<NSString, NSObject>> array = new NSMutableArray<>();
   for (NSNetServiceErrorUserInfo i : l) {
     array.add(i.getDictionary());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<NSCocoaErrorUserInfoKey> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (NSCocoaErrorUserInfoKey i : l) {
     array.add(i.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Exemple #24
0
 @MarshalsPointer
 public static long toNative(List<SCNLightingModel> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (SCNLightingModel o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Exemple #25
0
 @MarshalsPointer
 public static long toNative(List<SCNMatrix4> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSValue> array = new NSMutableArray<>();
   for (SCNMatrix4 i : l) {
     array.add(NSValue.valueOf(i));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<CIContextOptions> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSDictionary> array = new NSMutableArray<>();
   for (CIContextOptions i : l) {
     array.add(i.getDictionary());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static NSTextCheckingTransitComponents toObject(
     Class<NSTextCheckingTransitComponents> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new NSTextCheckingTransitComponents(o);
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static SKReceiptRefreshRequestOptions toObject(
     Class<SKReceiptRefreshRequestOptions> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new SKReceiptRefreshRequestOptions(o);
 }
Exemple #29
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<SCNLightingModel> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<SCNLightingModel> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(SCNLightingModel.valueOf(o.get(i)));
   }
   return list;
 }
 @MarshalsPointer
 public static List<CIContextOptions> 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<CIContextOptions> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CIContextOptions(o.get(i)));
   }
   return list;
 }