Package org.polyfrost.polyui.animate
Enum Animation.Type
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum Animation.Type extends Enum<Animation.Type>
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<Animation.Type>entries
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description final Animationcreate(Long durationNanos, Float start, Float end, Function1<Animation, Unit> onFinish)create an animation based on the type. final Animation.TypevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<Animation.Type>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<Animation.Type>getEntries()-
-
Method Detail
-
create
final Animation create(Long durationNanos, Float start, Float end, Function1<Animation, Unit> onFinish)
create an animation based on the type.
-
valueOf
final Animation.Type 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.)
-
values
final Array<Animation.Type> 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.
-
getEntries
final EnumEntries<Animation.Type> getEntries()
-
-
-
-