Package org.robovm.apple.uikit
Class UIFontDescriptor
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIFontDescriptor
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class UIFontDescriptor extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 7.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIFontDescriptor.UIFontDescriptorPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIFontDescriptor()
UIFontDescriptor(java.lang.String fontName, double size)
UIFontDescriptor(java.lang.String fontName, CGAffineTransform matrix)
UIFontDescriptor(NSCoder aDecoder)
protected
UIFontDescriptor(NSObject.Handle h, long handle)
protected
UIFontDescriptor(NSObject.SkipInit skipInit)
UIFontDescriptor(UIFontDescriptorAttributes attributes)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UIFontDescriptor
public UIFontDescriptor()
-
UIFontDescriptor
protected UIFontDescriptor(NSObject.Handle h, long handle)
-
UIFontDescriptor
protected UIFontDescriptor(NSObject.SkipInit skipInit)
-
UIFontDescriptor
public UIFontDescriptor(NSCoder aDecoder)
-
UIFontDescriptor
public UIFontDescriptor(UIFontDescriptorAttributes attributes)
-
UIFontDescriptor
public UIFontDescriptor(java.lang.String fontName, double size)
-
UIFontDescriptor
public UIFontDescriptor(java.lang.String fontName, CGAffineTransform matrix)
-
-
Method Detail
-
getPostscriptName
public java.lang.String getPostscriptName()
-
getPointSize
public double getPointSize()
-
getMatrix
public CGAffineTransform getMatrix()
-
getSymbolicTraits
public UIFontDescriptorSymbolicTraits getSymbolicTraits()
-
getFontAttributes
public UIFontDescriptorAttributes getFontAttributes()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
getValue
public NSObject getValue(java.lang.String attribute)
-
getValue
public NSObject getValue(UIFontDescriptorAttribute attribute)
-
getMatchingFontDescriptors
public NSArray<UIFontDescriptor> getMatchingFontDescriptors(java.lang.String... mandatoryAttributes)
-
getMatchingFontDescriptors
public NSArray<UIFontDescriptor> getMatchingFontDescriptors(java.util.Set<UIFontDescriptorAttribute> mandatoryAttributes)
-
init
protected long init(NSCoder aDecoder)
-
getMatchingFontDescriptors
protected NSArray<UIFontDescriptor> getMatchingFontDescriptors(NSSet<NSString> mandatoryKeys)
-
init
protected long init(UIFontDescriptorAttributes attributes)
-
newWithAttributes
public UIFontDescriptor newWithAttributes(UIFontDescriptorAttributes attributes)
-
newWithSize
public UIFontDescriptor newWithSize(double newPointSize)
-
newWithMatrix
public UIFontDescriptor newWithMatrix(CGAffineTransform matrix)
-
newWithFace
public UIFontDescriptor newWithFace(java.lang.String newFace)
-
newWithFamily
public UIFontDescriptor newWithFamily(java.lang.String newFamily)
-
newWithSymbolicTraits
public UIFontDescriptor newWithSymbolicTraits(UIFontDescriptorSymbolicTraits symbolicTraits)
-
create
protected static long create(java.lang.String fontName, double size)
-
create
protected static long create(java.lang.String fontName, CGAffineTransform matrix)
-
getPreferredFontDescriptor
public static UIFontDescriptor getPreferredFontDescriptor(UIFontTextStyle style)
-
getPreferredFontDescriptor
public static UIFontDescriptor getPreferredFontDescriptor(UIFontTextStyle style, UITraitCollection traitCollection)
- Since:
- Available in iOS 10.0 and later.
-
-