Exemple #1
0
 public static CALineCap valueOf(NSString value) {
   for (CALineCap v : values) {
     if (v.value().equals(value)) {
       return v;
     }
   }
   throw new IllegalArgumentException(
       "No constant with value "
           + value
           + " found in "
           + /*<name>*/ CALineCap /*</name>*/.class.getName());
 }
Exemple #2
0
 @MarshalsPointer
 public static long toNative(CALineCap o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
Exemple #3
0
 @MarshalsPointer
 public static CALineCap toObject(Class<CALineCap> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CALineCap.valueOf(o);
 }