Package org.polyfrost.polyui.data
Enum Font.Weight
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum Font.Weight extends Enum<Font.Weight>
Enum representing weights available to a font in PolyUI.
- Since:
1.0.7
-
-
Field Summary
Fields Modifier and Type Field Description private final Integervalueprivate final Font.Weightfbprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<Font.Weight>entries
-
Method Summary
Modifier and Type Method Description final Font.WeightvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<Font.Weight>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetValue()final Font.WeightgetFb()final EnumEntries<Font.Weight>getEntries()Enum representing weights available to a font in PolyUI. -
-
Method Detail
-
valueOf
final Font.Weight valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Parameters:
value- the weight of the font, as specified by the Google Fonts CSS v2 API.
-
values
final Array<Font.Weight> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getFb
final Font.Weight getFb()
-
getEntries
final EnumEntries<Font.Weight> getEntries()
Enum representing weights available to a font in PolyUI.
- Since:
1.0.7
-
-
-
-