コード例 #1
0
ファイル: SCNLightingModel.java プロジェクト: kxlcn/robovm
 @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);
 }
コード例 #2
0
ファイル: CAShapeFillRule.java プロジェクト: wynney/robovm
 @MarshalsPointer
 public static CAShapeFillRule toObject(Class<CAShapeFillRule> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CAShapeFillRule.valueOf(o);
 }
コード例 #3
0
 @MarshalsPointer
 public static AVOutputSettingsPreset toObject(
     Class<AVOutputSettingsPreset> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVOutputSettingsPreset.valueOf(o);
 }
コード例 #4
0
 @MarshalsPointer
 public static AVMediaCharacteristic toObject(
     Class<AVMediaCharacteristic> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMediaCharacteristic.valueOf(o);
 }
コード例 #5
0
 @MarshalsPointer
 public static AVLayerVideoGravity toObject(
     Class<AVLayerVideoGravity> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVLayerVideoGravity.valueOf(o);
 }
コード例 #6
0
 @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);
 }
コード例 #7
0
 @MarshalsPointer
 public static AVMetadataKeyISOUserData toObject(
     Class<AVMetadataKeyISOUserData> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMetadataKeyISOUserData.valueOf(o);
 }
コード例 #8
0
 @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);
 }
コード例 #9
0
 @MarshalsPointer
 public static AVAudioSessionOrientation toObject(
     Class<AVAudioSessionOrientation> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVAudioSessionOrientation.valueOf(o);
 }
コード例 #10
0
 @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);
 }
コード例 #11
0
 @MarshalsPointer
 public static HKDietaryQuantityTypeIdentifier toObject(
     Class<HKDietaryQuantityTypeIdentifier> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return HKDietaryQuantityTypeIdentifier.valueOf(o);
 }
コード例 #12
0
 @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);
 }
コード例 #13
0
 @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);
 }
コード例 #14
0
 @MarshalsPointer
 public static CNInstantMessageAddressPropertyKey toObject(
     Class<CNInstantMessageAddressPropertyKey> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CNInstantMessageAddressPropertyKey.valueOf(o);
 }
コード例 #15
0
 @MarshalsPointer
 public static AVSampleRateConverterSettings toObject(
     Class<AVSampleRateConverterSettings> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new AVSampleRateConverterSettings(o);
 }
コード例 #16
0
 @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);
 }
コード例 #17
0
ファイル: AVVideoSettings.java プロジェクト: kxlcn/robovm
 @MarshalsPointer
 public static AVVideoSettings toObject(Class<AVVideoSettings> 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 AVVideoSettings(o);
 }
コード例 #18
0
 @MarshalsPointer
 public static UITextInputTextStyle toObject(
     Class<UITextInputTextStyle> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new UITextInputTextStyle(o);
 }
コード例 #19
0
 @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);
 }
コード例 #20
0
ファイル: CIDetectorOptions.java プロジェクト: kxlcn/robovm
 @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);
 }
コード例 #21
0
 @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);
 }
コード例 #22
0
 @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);
 }
コード例 #23
0
 @MarshalsPointer
 public static List<AVSampleRateConverterSettings> 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<AVSampleRateConverterSettings> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new AVSampleRateConverterSettings(o.get(i)));
   }
   return list;
 }
コード例 #24
0
ファイル: SCNLightingModel.java プロジェクト: kxlcn/robovm
 @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;
 }
コード例 #25
0
 @MarshalsPointer
 public static List<CBCentralManagerOptions> 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<CBCentralManagerOptions> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CBCentralManagerOptions(o.get(i)));
   }
   return list;
 }
コード例 #26
0
ファイル: CVPixelFormatType.java プロジェクト: wynney/robovm
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CVPixelFormatType> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSNumber> o = (NSArray<NSNumber>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CVPixelFormatType> list = new ArrayList<>();
   for (NSNumber n : o) {
     list.add(CVPixelFormatType.valueOf(n.longValue()));
   }
   return list;
 }
コード例 #27
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CMVideoCodecType> 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<CMVideoCodecType> list = new ArrayList<>();
   for (NSString str : o) {
     list.add(CMVideoCodecType.valueOf(str));
   }
   return list;
 }
コード例 #28
0
ファイル: SCNMatrix4.java プロジェクト: ZeerDonker/robovm
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<SCNMatrix4> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSValue> o = (NSArray<NSValue>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<SCNMatrix4> list = new ArrayList<>();
   for (NSValue val : o) {
     list.add(val.SCNMatrix4Value());
   }
   return list;
 }
コード例 #29
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<HKDietaryQuantityTypeIdentifier> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o =
       (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<HKDietaryQuantityTypeIdentifier> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(HKDietaryQuantityTypeIdentifier.valueOf(o.get(i)));
   }
   return list;
 }
コード例 #30
0
 @MarshalsPointer
 public static List<NSNetServiceErrorUserInfo> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary<NSString, NSObject>> o =
       (NSArray<NSDictionary<NSString, NSObject>>)
           NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<NSNetServiceErrorUserInfo> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new NSNetServiceErrorUserInfo(o.get(i)));
   }
   return list;
 }