コード例 #1
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextJustification getTextJustification() {
   if (has(Keys.TextJustification())) {
     CFNumber val = get(Keys.TextJustification(), CFNumber.class);
     return CMTextJustification.valueOf(val.longValue());
   }
   return null;
 }
コード例 #2
0
 /** @since Available in iOS 4.0 and later. */
 public int getFieldCount() {
   if (has(CVImageBufferAttribute.FieldCount)) {
     CFNumber val = get(CVImageBufferAttribute.FieldCount, CFNumber.class);
     return val.intValue();
   }
   return 0;
 }
コード例 #3
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextDisplayFlags getDisplayFlags() {
   if (has(Keys.DisplayFlags())) {
     CFNumber val = get(Keys.DisplayFlags(), CFNumber.class);
     return new CMTextDisplayFlags(val.longValue());
   }
   return null;
 }
コード例 #4
0
 /** @since Available in iOS 4.0 and later. */
 public double getGammaLevel() {
   if (has(CVImageBufferAttribute.GammaLevel)) {
     CFNumber val = get(CVImageBufferAttribute.GammaLevel, CFNumber.class);
     return val.doubleValue();
   }
   return 0;
 }
コード例 #5
0
 /** @since Available in iOS 7.0 and later. */
 public CGImagePropertyOrientation getOrientation() {
   if (has(Keys.DestinationOrientation())) {
     CFNumber val = get(Keys.DestinationOrientation(), CFNumber.class);
     return CGImagePropertyOrientation.valueOf(val.longValue());
   }
   return null;
 }
コード例 #6
0
ファイル: ABSource.java プロジェクト: pacificIT/robovm
 public ABSource setType(ABSourceType type) throws NSErrorException {
   if (type == null) {
     setValue(ABSourceProperty.Type, null);
   } else {
     setValue(ABSourceProperty.Type, CFNumber.valueOf((int) type.value()));
   }
   return this;
 }
コード例 #7
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setTextJustification(
     CMTextJustification textJustification) {
   set(Keys.TextJustification(), CFNumber.valueOf(textJustification.value()));
   return this;
 }
コード例 #8
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setHorizontalJustification(
     CMTextJustification horizontalJustification) {
   set(Keys.HorizontalJustification(), CFNumber.valueOf(horizontalJustification.value()));
   return this;
 }
コード例 #9
0
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setDisplayFlags(CMTextDisplayFlags displayFlags) {
   set(Keys.DisplayFlags(), CFNumber.valueOf(displayFlags.value()));
   return this;
 }
コード例 #10
0
 /** @since Available in iOS 4.0 and later. */
 public CVImageBufferAttributes setGammaLevel(double gammaLevel) {
   set(CVImageBufferAttribute.GammaLevel, CFNumber.valueOf(gammaLevel));
   return this;
 }
コード例 #11
0
 /** @since Available in iOS 4.0 and later. */
 public CVImageBufferAttributes setFieldCount(int fieldCount) {
   set(CVImageBufferAttribute.FieldCount, CFNumber.valueOf(fieldCount));
   return this;
 }
コード例 #12
0
ファイル: ABSource.java プロジェクト: pacificIT/robovm
 public ABSourceType getType() {
   CFNumber val = getValue(ABSourceProperty.Type, CFNumber.class);
   if (val != null) return new ABSourceType(val.intValue());
   return null;
 }
コード例 #13
0
 /** @since Available in iOS 7.0 and later. */
 public CGImageDestinationCopySourceOptions setOrientation(
     CGImagePropertyOrientation orientation) {
   set(Keys.DestinationOrientation(), CFNumber.valueOf(orientation.value()));
   return this;
 }