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/**/
/**/public/**/ class /**/UIFontWeight/**/
extends /**/GlobalValueEnumeration/**/
/**//**/ {
static { Bro.bind(/**/UIFontWeight/**/.class); }
/**/
public static class Marshaler {
@MarshalsPointer
public static UIFontWeight toObject(Class cls, long handle, long flags) {
NSNumber o = (NSNumber) NSObject.Marshaler.toObject(NSNumber.class, handle, flags);
if (o == null) {
return null;
}
return UIFontWeight.valueOf(o.doubleValue());
}
@MarshalsPointer
public static long toNative(UIFontWeight o, long flags) {
if (o == null) {
return 0L;
}
return NSObject.Marshaler.toNative(NSNumber.valueOf(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(UIFontWeight.valueOf(o.get(i).doubleValue()));
}
return list;
}
@MarshalsPointer
public static long toNative(List l, long flags) {
if (l == null) {
return 0L;
}
NSArray array = new NSMutableArray<>();
for (UIFontWeight o : l) {
array.add(NSNumber.valueOf(o.value()));
}
return NSObject.Marshaler.toNative(array, flags);
}
}
/**/
/**/
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight UltraLight = new UIFontWeight("UltraLight");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Thin = new UIFontWeight("Thin");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Light = new UIFontWeight("Light");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Regular = new UIFontWeight("Regular");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Medium = new UIFontWeight("Medium");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Semibold = new UIFontWeight("Semibold");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Bold = new UIFontWeight("Bold");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Heavy = new UIFontWeight("Heavy");
/**
* @since Available in iOS 8.2 and later.
*/
public static final UIFontWeight Black = new UIFontWeight("Black");
/**/
private static /**/UIFontWeight/**/[] values = new /**/UIFontWeight/**/[] {/**/UltraLight, Thin, Light, Regular, Medium, Semibold, Bold, Heavy, Black/**/};
/**/UIFontWeight/**/ (String getterName) {
super(Values.class, getterName);
}
public static /**/UIFontWeight/**/ valueOf(/**/@MachineSizedFloat double/**/ value) {
for (/**/UIFontWeight/**/ v : values) {
if (v.value().equals(value)) {
return v;
}
}
throw new IllegalArgumentException("No constant with value " + value + " found in "
+ /**/UIFontWeight/**/.class.getName());
}
/**//**/
/**/@Library("UIKit") @StronglyLinked/**/
public static class Values {
static { Bro.bind(Values.class); }
/**/
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightUltraLight", optional=true)
public static native @MachineSizedFloat double UltraLight();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightThin", optional=true)
public static native @MachineSizedFloat double Thin();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightLight", optional=true)
public static native @MachineSizedFloat double Light();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightRegular", optional=true)
public static native @MachineSizedFloat double Regular();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightMedium", optional=true)
public static native @MachineSizedFloat double Medium();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightSemibold", optional=true)
public static native @MachineSizedFloat double Semibold();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightBold", optional=true)
public static native @MachineSizedFloat double Bold();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightHeavy", optional=true)
public static native @MachineSizedFloat double Heavy();
/**
* @since Available in iOS 8.2 and later.
*/
@GlobalValue(symbol="UIFontWeightBlack", optional=true)
public static native @MachineSizedFloat double Black();
/**/
}
}