Package org.robovm.apple.uikit
Class UIFontMetrics
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIFontMetrics
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class UIFontMetrics extends NSObject
- Since:
- Available in iOS 11.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIFontMetrics.UIFontMetricsPtr
-
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 protected
UIFontMetrics()
UIFontMetrics(java.lang.String textStyle)
protected
UIFontMetrics(NSObject.Handle h, long handle)
protected
UIFontMetrics(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UIFontMetrics
getDefaultMetrics()
protected long
initForTextStyle(java.lang.String textStyle)
static UIFontMetrics
metricsForTextStyle(java.lang.String textStyle)
UIFont
scaledFont(UIFont font, double maximumPointSize)
UIFont
scaledFont(UIFont font, double maximumPointSize, UITraitCollection traitCollection)
UIFont
scaledFont(UIFont font, UITraitCollection traitCollection)
UIFont
scaledFontForFont(UIFont font)
double
scaledValue(double value, UITraitCollection traitCollection)
double
scaledValueForValue(double value)
-
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
-
UIFontMetrics
protected UIFontMetrics()
-
UIFontMetrics
protected UIFontMetrics(NSObject.Handle h, long handle)
-
UIFontMetrics
protected UIFontMetrics(NSObject.SkipInit skipInit)
-
UIFontMetrics
public UIFontMetrics(java.lang.String textStyle)
-
-
Method Detail
-
getDefaultMetrics
public static UIFontMetrics getDefaultMetrics()
-
initForTextStyle
protected long initForTextStyle(java.lang.String textStyle)
-
scaledFont
public UIFont scaledFont(UIFont font, UITraitCollection traitCollection)
-
scaledFont
public UIFont scaledFont(UIFont font, double maximumPointSize, UITraitCollection traitCollection)
-
scaledValueForValue
public double scaledValueForValue(double value)
-
scaledValue
public double scaledValue(double value, UITraitCollection traitCollection)
-
metricsForTextStyle
public static UIFontMetrics metricsForTextStyle(java.lang.String textStyle)
-
-