All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.uikit.UIFont Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
/*
 * 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.*;
/**/

/**/
/**
 * @since Available in iOS 2.0 and later.
 */
/**/
/**/@Library("UIKit") @NativeClass/**/
/**/public/**/ class /**/UIFont/**/ 
    extends /**/NSObject/**/ 
    /**//**/ {

    /**/public static class UIFontPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(UIFont.class); }/**/
    /**//**/
    /**/
    public UIFont() {}
    protected UIFont(SkipInit skipInit) { super(skipInit); }
    /**/
    /**/
    @Property(selector = "familyName")
    public native String getFamilyName();
    @Property(selector = "fontName")
    public native String getFontName();
    @Property(selector = "pointSize")
    public native @MachineSizedFloat double getPointSize();
    @Property(selector = "ascender")
    public native @MachineSizedFloat double getAscender();
    @Property(selector = "descender")
    public native @MachineSizedFloat double getDescender();
    @Property(selector = "capHeight")
    public native @MachineSizedFloat double getCapHeight();
    @Property(selector = "xHeight")
    public native @MachineSizedFloat double getXHeight();
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Property(selector = "lineHeight")
    public native @MachineSizedFloat double getLineHeight();
    @Property(selector = "leading")
    public native @MachineSizedFloat double getLeading();
    /**/
    /**//**/
    /**
     * @since Available in iOS 8.2 and later.
     */
    public static UIFont getSystemFont(double fontSize, UIFontWeight weight) {
        return getSystemFont(fontSize, weight.value());
    }
    /**/
    @Method(selector = "fontWithSize:")
    public native UIFont newWithSize(@MachineSizedFloat double fontSize);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "fontDescriptor")
    public native UIFontDescriptor getFontDescriptor();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "preferredFontForTextStyle:")
    public static native UIFont getPreferredFont(UIFontTextStyle style);
    @Method(selector = "fontWithName:size:")
    public static native UIFont getFont(String fontName, @MachineSizedFloat double fontSize);
    @Method(selector = "familyNames")
    public static native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List getFamilyNames();
    @Method(selector = "fontNamesForFamilyName:")
    public static native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List getFontNamesForFamilyName(String familyName);
    @Method(selector = "systemFontOfSize:")
    public static native UIFont getSystemFont(@MachineSizedFloat double fontSize);
    @Method(selector = "boldSystemFontOfSize:")
    public static native UIFont getBoldSystemFont(@MachineSizedFloat double fontSize);
    @Method(selector = "italicSystemFontOfSize:")
    public static native UIFont getItalicSystemFont(@MachineSizedFloat double fontSize);
    /**
     * @since Available in iOS 8.2 and later.
     */
    @Method(selector = "systemFontOfSize:weight:")
    public static native UIFont getSystemFont(@MachineSizedFloat double fontSize, @MachineSizedFloat double weight);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "monospacedDigitSystemFontOfSize:weight:")
    public static native UIFont getMonospacedDigitSystemFont(@MachineSizedFloat double fontSize, @MachineSizedFloat double weight);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "fontWithDescriptor:size:")
    public static native UIFont getFont(UIFontDescriptor descriptor, @MachineSizedFloat double pointSize);
    @Method(selector = "labelFontSize")
    public static native @MachineSizedFloat double getLabelFontSize();
    @Method(selector = "buttonFontSize")
    public static native @MachineSizedFloat double getButtonFontSize();
    @Method(selector = "smallSystemFontSize")
    public static native @MachineSizedFloat double getSmallSystemFontSize();
    @Method(selector = "systemFontSize")
    public static native @MachineSizedFloat double getSystemFontSize();
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy