Class OperationsKt

  • All Implemented Interfaces:

    
    public final class OperationsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit animateBy(Drawable $self, Vec2 at, Vec2 size, Double rotation, Float scaleX, Float scaleY, Double skewX, Double skewY, PolyColor color, Animation animation) Bulk add method for all the builtin drawable operations in PolyUI.
      final static Unit animateTo(Drawable $self, Vec2 at, Vec2 size, Double rotation, Double skewX, Double skewY, Float scaleX, Float scaleY, PolyColor color, Animation animation) Bulk add method for all the builtin drawable operations in PolyUI.
      final static <S extends Component> Vec2 getTargetPosition(S $self) Return the position that this component is currently moving to, or its current position if it is not moving.
      final static <S extends Component> Vec2 getTargetSize(S $self) Return the size that this component is currently resizing to, or its current size if it is not resizing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • animateBy

         final static Unit animateBy(Drawable $self, Vec2 at, Vec2 size, Double rotation, Float scaleX, Float scaleY, Double skewX, Double skewY, PolyColor color, Animation animation)

        Bulk add method for all the builtin drawable operations in PolyUI.

        The default values of this method are all zeroes, meaning that nothing is done.

        This is the "by" version of this method, meaning that each value is added to the current one of this drawable. See the animateTo method for the "to" equivalent, which sets each value to the provided one.

      • animateTo

         final static Unit animateTo(Drawable $self, Vec2 at, Vec2 size, Double rotation, Double skewX, Double skewY, Float scaleX, Float scaleY, PolyColor color, Animation animation)

        Bulk add method for all the builtin drawable operations in PolyUI.

        The default values of this method are all the current ones of this drawable, meaning that nothing is done.

        This is the "to" version of this method, meaning that each value is set to the provided one. See the animateBy method for the "by" equivalent, which adds each value to the current one of this drawable.

      • getTargetPosition

         final static <S extends Component> Vec2 getTargetPosition(S $self)

        Return the position that this component is currently moving to, or its current position if it is not moving.

        Since:

        1.6.02

      • getTargetSize

         final static <S extends Component> Vec2 getTargetSize(S $self)

        Return the size that this component is currently resizing to, or its current size if it is not resizing.

        Since:

        1.6.02