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.coretext;
/**/
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.corefoundation.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coremedia.*;
import com.bugvm.apple.uikit.*;
/**/
/**/
/**/
/**/@Library("CoreText") @StronglyLinked/**/
@Marshaler(/**/CTFontNameKey/**/.Marshaler.class)
/**/public/**/ class /**/CTFontNameKey/**/
extends /**/GlobalValueEnumeration/**/
/**//**/ {
static { Bro.bind(/**/CTFontNameKey/**/.class); }
/**/
public static class Marshaler {
@MarshalsPointer
public static CTFontNameKey toObject(Class cls, long handle, long flags) {
CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
if (o == null) {
return null;
}
return CTFontNameKey.valueOf(o);
}
@MarshalsPointer
public static long toNative(CTFontNameKey o, long flags) {
if (o == null) {
return 0L;
}
return CFType.Marshaler.toNative(o.value(), flags);
}
}
public static class AsListMarshaler {
@MarshalsPointer
public static List toObject(Class extends CFType> cls, long handle, long flags) {
CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags);
if (o == null) {
return null;
}
List list = new ArrayList<>();
for (int i = 0; i < o.size(); i++) {
list.add(CTFontNameKey.valueOf(o.get(i, CFString.class)));
}
return list;
}
@MarshalsPointer
public static long toNative(List l, long flags) {
if (l == null) {
return 0L;
}
CFArray array = CFMutableArray.create();
for (CTFontNameKey o : l) {
array.add(o.value());
}
return CFType.Marshaler.toNative(array, flags);
}
}
/**/
/**/
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Copyright = new CTFontNameKey("Copyright");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Family = new CTFontNameKey("Family");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey SubFamily = new CTFontNameKey("SubFamily");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Style = new CTFontNameKey("Style");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Unique = new CTFontNameKey("Unique");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Full = new CTFontNameKey("Full");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Version = new CTFontNameKey("Version");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey PostScript = new CTFontNameKey("PostScript");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Trademark = new CTFontNameKey("Trademark");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Manufacturer = new CTFontNameKey("Manufacturer");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Designer = new CTFontNameKey("Designer");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey Description = new CTFontNameKey("Description");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey VendorURL = new CTFontNameKey("VendorURL");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey DesignerURL = new CTFontNameKey("DesignerURL");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey License = new CTFontNameKey("License");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey LicenseURL = new CTFontNameKey("LicenseURL");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey SampleText = new CTFontNameKey("SampleText");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey PostScriptCID = new CTFontNameKey("PostScriptCID");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey FeatureType = new CTFontNameKey("FeatureType");
/**
* @since Available in iOS 3.2 and later.
*/
public static final CTFontNameKey FeatureSelector = new CTFontNameKey("FeatureSelector");
/**/
private static /**/CTFontNameKey/**/[] values = new /**/CTFontNameKey/**/[] {/**/Copyright, Family, SubFamily, Style, Unique, Full, Version, PostScript, Trademark, Manufacturer, Designer, Description, VendorURL, DesignerURL, License, LicenseURL, SampleText, PostScriptCID, FeatureType, FeatureSelector/**/};
/**/CTFontNameKey/**/ (String getterName) {
super(Values.class, getterName);
}
public static /**/CTFontNameKey/**/ valueOf(/**/CFString/**/ value) {
for (/**/CTFontNameKey/**/ v : values) {
if (v.value().equals(value)) {
return v;
}
}
throw new IllegalArgumentException("No constant with value " + value + " found in "
+ /**/CTFontNameKey/**/.class.getName());
}
/**//**/
/**/@Library("CoreText") @StronglyLinked/**/
public static class Values {
static { Bro.bind(Values.class); }
/**/
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontCopyrightNameKey", optional=true)
public static native CFString Copyright();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontFamilyNameKey", optional=true)
public static native CFString Family();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontSubFamilyNameKey", optional=true)
public static native CFString SubFamily();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontStyleNameKey", optional=true)
public static native CFString Style();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontUniqueNameKey", optional=true)
public static native CFString Unique();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontFullNameKey", optional=true)
public static native CFString Full();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontVersionNameKey", optional=true)
public static native CFString Version();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontPostScriptNameKey", optional=true)
public static native CFString PostScript();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontTrademarkNameKey", optional=true)
public static native CFString Trademark();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontManufacturerNameKey", optional=true)
public static native CFString Manufacturer();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontDesignerNameKey", optional=true)
public static native CFString Designer();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontDescriptionNameKey", optional=true)
public static native CFString Description();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontVendorURLNameKey", optional=true)
public static native CFString VendorURL();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontDesignerURLNameKey", optional=true)
public static native CFString DesignerURL();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontLicenseNameKey", optional=true)
public static native CFString License();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontLicenseURLNameKey", optional=true)
public static native CFString LicenseURL();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontSampleTextNameKey", optional=true)
public static native CFString SampleText();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontPostScriptCIDNameKey", optional=true)
public static native CFString PostScriptCID();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontFeatureTypeNameKey", optional=true)
public static native CFString FeatureType();
/**
* @since Available in iOS 3.2 and later.
*/
@GlobalValue(symbol="kCTFontFeatureSelectorNameKey", optional=true)
public static native CFString FeatureSelector();
/**/
}
}