Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.uikit;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coredata.*;
import com.bugvm.apple.coreimage.*;
import com.bugvm.apple.coretext.*;
import com.bugvm.apple.corelocation.*;
/**/
/**/
/**/
/**/@Library("UIKit") @StronglyLinked/**/
@Marshaler(/**/NSAttributedStringAttribute/**/.Marshaler.class)
/**/public/**/ class /**/NSAttributedStringAttribute/**/
extends /**/GlobalValueEnumeration/**/
/**//**/ {
static { Bro.bind(/**/NSAttributedStringAttribute/**/.class); }
/**/
public static class Marshaler {
@MarshalsPointer
public static NSAttributedStringAttribute toObject(Class cls, long handle, long flags) {
NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
if (o == null) {
return null;
}
return NSAttributedStringAttribute.valueOf(o);
}
@MarshalsPointer
public static long toNative(NSAttributedStringAttribute o, long flags) {
if (o == null) {
return 0L;
}
return NSObject.Marshaler.toNative(o.value(), flags);
}
}
public static class AsListMarshaler {
@SuppressWarnings("unchecked")
@MarshalsPointer
public static List toObject(Class extends NSObject> cls, long handle, long flags) {
NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
if (o == null) {
return null;
}
List list = new ArrayList<>();
for (int i = 0; i < o.size(); i++) {
list.add(NSAttributedStringAttribute.valueOf(o.get(i)));
}
return list;
}
@MarshalsPointer
public static long toNative(List l, long flags) {
if (l == null) {
return 0L;
}
NSArray array = new NSMutableArray<>();
for (NSAttributedStringAttribute o : l) {
array.add(o.value());
}
return NSObject.Marshaler.toNative(array, flags);
}
}
/**/
/**/
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
public static final NSAttributedStringAttribute TextFont = new NSAttributedStringAttribute("TextFont");
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
public static final NSAttributedStringAttribute TextColor = new NSAttributedStringAttribute("TextColor");
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
public static final NSAttributedStringAttribute TextShadowColor = new NSAttributedStringAttribute("TextShadowColor");
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
public static final NSAttributedStringAttribute TextShadowOffset = new NSAttributedStringAttribute("TextShadowOffset");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute SpeechPunctuation = new NSAttributedStringAttribute("SpeechPunctuation");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute SpeechLanguage = new NSAttributedStringAttribute("SpeechLanguage");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute SpeechPitch = new NSAttributedStringAttribute("SpeechPitch");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute Font = new NSAttributedStringAttribute("Font");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute ParagraphStyle = new NSAttributedStringAttribute("ParagraphStyle");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute ForegroundColor = new NSAttributedStringAttribute("ForegroundColor");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute BackgroundColor = new NSAttributedStringAttribute("BackgroundColor");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute Ligature = new NSAttributedStringAttribute("Ligature");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute Kern = new NSAttributedStringAttribute("Kern");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute StrikethroughStyle = new NSAttributedStringAttribute("StrikethroughStyle");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute UnderlineStyle = new NSAttributedStringAttribute("UnderlineStyle");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute StrokeColor = new NSAttributedStringAttribute("StrokeColor");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute StrokeWidth = new NSAttributedStringAttribute("StrokeWidth");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute Shadow = new NSAttributedStringAttribute("Shadow");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute TextEffect = new NSAttributedStringAttribute("TextEffect");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute Attachment = new NSAttributedStringAttribute("Attachment");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute Link = new NSAttributedStringAttribute("Link");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute BaselineOffset = new NSAttributedStringAttribute("BaselineOffset");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute UnderlineColor = new NSAttributedStringAttribute("UnderlineColor");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute StrikethroughColor = new NSAttributedStringAttribute("StrikethroughColor");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute Obliqueness = new NSAttributedStringAttribute("Obliqueness");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute Expansion = new NSAttributedStringAttribute("Expansion");
/**
* @since Available in iOS 7.0 and later.
*/
public static final NSAttributedStringAttribute WritingDirection = new NSAttributedStringAttribute("WritingDirection");
/**
* @since Available in iOS 6.0 and later.
*/
public static final NSAttributedStringAttribute VerticalGlyphForm = new NSAttributedStringAttribute("VerticalGlyphForm");
/**/
private static /**/NSAttributedStringAttribute/**/[] values = new /**/NSAttributedStringAttribute/**/[] {/**/TextFont, TextColor, TextShadowColor, TextShadowOffset, SpeechPunctuation, SpeechLanguage, SpeechPitch, Font, ParagraphStyle, ForegroundColor, BackgroundColor, Ligature, Kern, StrikethroughStyle, UnderlineStyle, StrokeColor, StrokeWidth, Shadow, TextEffect, Attachment, Link, BaselineOffset, UnderlineColor, StrikethroughColor, Obliqueness, Expansion, WritingDirection, VerticalGlyphForm/**/};
/**/NSAttributedStringAttribute/**/ (String getterName) {
super(Values.class, getterName);
}
public static /**/NSAttributedStringAttribute/**/ valueOf(/**/NSString/**/ value) {
for (/**/NSAttributedStringAttribute/**/ v : values) {
if (v.value().equals(value)) {
return v;
}
}
throw new IllegalArgumentException("No constant with value " + value + " found in "
+ /**/NSAttributedStringAttribute/**/.class.getName());
}
/**//**/
/**/@Library("UIKit") @StronglyLinked/**/
public static class Values {
static { Bro.bind(Values.class); }
/**/
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@GlobalValue(symbol="UITextAttributeFont", optional=true)
public static native NSString TextFont();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@GlobalValue(symbol="UITextAttributeTextColor", optional=true)
public static native NSString TextColor();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@GlobalValue(symbol="UITextAttributeTextShadowColor", optional=true)
public static native NSString TextShadowColor();
/**
* @since Available in iOS 5.0 and later.
* @deprecated Deprecated in iOS 7.0.
*/
@Deprecated
@GlobalValue(symbol="UITextAttributeTextShadowOffset", optional=true)
public static native NSString TextShadowOffset();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="UIAccessibilitySpeechAttributePunctuation", optional=true)
public static native NSString SpeechPunctuation();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="UIAccessibilitySpeechAttributeLanguage", optional=true)
public static native NSString SpeechLanguage();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="UIAccessibilitySpeechAttributePitch", optional=true)
public static native NSString SpeechPitch();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSFontAttributeName", optional=true)
public static native NSString Font();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSParagraphStyleAttributeName", optional=true)
public static native NSString ParagraphStyle();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSForegroundColorAttributeName", optional=true)
public static native NSString ForegroundColor();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSBackgroundColorAttributeName", optional=true)
public static native NSString BackgroundColor();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSLigatureAttributeName", optional=true)
public static native NSString Ligature();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSKernAttributeName", optional=true)
public static native NSString Kern();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSStrikethroughStyleAttributeName", optional=true)
public static native NSString StrikethroughStyle();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSUnderlineStyleAttributeName", optional=true)
public static native NSString UnderlineStyle();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSStrokeColorAttributeName", optional=true)
public static native NSString StrokeColor();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSStrokeWidthAttributeName", optional=true)
public static native NSString StrokeWidth();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSShadowAttributeName", optional=true)
public static native NSString Shadow();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSTextEffectAttributeName", optional=true)
public static native NSString TextEffect();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSAttachmentAttributeName", optional=true)
public static native NSString Attachment();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSLinkAttributeName", optional=true)
public static native NSString Link();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSBaselineOffsetAttributeName", optional=true)
public static native NSString BaselineOffset();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSUnderlineColorAttributeName", optional=true)
public static native NSString UnderlineColor();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSStrikethroughColorAttributeName", optional=true)
public static native NSString StrikethroughColor();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSObliquenessAttributeName", optional=true)
public static native NSString Obliqueness();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSExpansionAttributeName", optional=true)
public static native NSString Expansion();
/**
* @since Available in iOS 7.0 and later.
*/
@GlobalValue(symbol="NSWritingDirectionAttributeName", optional=true)
public static native NSString WritingDirection();
/**
* @since Available in iOS 6.0 and later.
*/
@GlobalValue(symbol="NSVerticalGlyphFormAttributeName", optional=true)
public static native NSString VerticalGlyphForm();
/**/
}
}