RaTweening 1.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
RaTweening.Lambda.RaTweenLambdaRect Class Reference

A RaTweenLambdaBase<ValueT> tween handles the logics of tweening a Rect

‍Note: RaTweenLambda for all methods

More...

Inheritance diagram for RaTweening.Lambda.RaTweenLambdaRect:
RaTweening.Lambda.RaTweenLambdaBase< Rect >

Public Member Functions

 RaTweenLambdaRect (Rect start, Rect end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 
RaTweenLambdaRect SetExcludeValues (RectValue excludeValues)
 Makes it so the given Rect Values are excluded from the tween. So they remain the value they have at the moments of evaluation More...
 
RaTweenLambdaRect OnlyIncludeRectValues (RectValue inclValues)
 Makes it so the given Rect Values which are not specified by the input are excluded. So they remain the value they have at the moments of evaluation More...
 
- Public Member Functions inherited from RaTweening.Lambda.RaTweenLambdaBase< Rect >
delegate void SetterHandler (ValueT value, float normalizedValue)
 The Delegate which passes a value and normalized value to determine the setter logics

‍Note: normalizedValue is a value where 0 == Start and 1 == End. This is passed for extra info.

More...
 
delegate bool IsValidHandler ()
 The Delegate which returns true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)
 
 RaTweenLambdaBase (ValueT start, ValueT end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 
RaTweenLambdaBase< ValueT > SetStartValue (ValueT start)
 This API call Sets the start value of the tween. More...
 
RaTweenLambdaBase< ValueT > SetEndValue (ValueT end)
 This API call Sets the end value of the tween. More...
 
RaTweenLambdaBase< ValueT > SetEndIsDelta (bool enabled=true)
 Makes it so the value set within the end value or reference is calculated as delta at runtime So an end value of 5 while the target is at value 20 would result in a final end value of 25. SetDynamicSetupStep(RaTweenDynamicSetupStep) to see when this value is calculated More...
 
RaTweenLambdaBase< ValueT > SetStartDynamic (bool enabled=true)
 Makes it so the value set within the start value or reference is ignored and rather the value at which the object is at calculation time has is used as start value. SetDynamicSetupStep(RaTweenDynamicSetupStep) to see when this value is calculated More...
 
RaTweenLambdaBase< ValueT > SetDynamicSetupStep (RaTweenDynamicSetupStep step)
 Determines when the SetStartDynamic(bool) and the SetEndIsDelta(bool) are calculated Read RaTweenDynamicSetupStep for the details on the calculation steps

‍Note: When set to RaTweenDynamicSetupStep.Start, it recalculates the values on each loop

More...
 

Protected Member Functions

override RaTweenLambdaBase< Rect > CloneLambdaTween ()
 
override void LambdaEvaluation (float normalizedValue, Rect start, Rect end)
 
override Rect GetEndByDelta (Rect start, Rect delta)
 
- Protected Member Functions inherited from RaTweening.Lambda.RaTweenLambdaBase< Rect >
override void OnSetup ()
 
override void OnStart ()
 
override void SetDefaultValues ()
 
override void ApplyRewind (bool resumeAfterRewind)
 
override void Evaluate (float normalizedValue)
 
override RaTween RaTweenClone ()
 
override void Dispose ()
 
void WriteValue (ValueT value, float normalizedValue)
 
abstract RaTweenLambdaBase< ValueT > CloneLambdaTween ()
 
abstract ValueT GetEndByDelta (ValueT start, ValueT delta)
 
abstract void LambdaEvaluation (float normalizedValue, ValueT start, ValueT end)
 

Additional Inherited Members

- Properties inherited from RaTweening.Lambda.RaTweenLambdaBase< Rect >
ValueT Start [get]
 The Value to start the Tween at (in which state it will begin)
 
ValueT End [get]
 The value to end the Tween to (in which state it will result)
 
ValueT Value [get]
 The value which is recorded by the evaluation of the tween (The current value of the imaginary target)
 
override bool IsValid [get]
 

Detailed Description

A RaTweenLambdaBase<ValueT> tween handles the logics of tweening a Rect

‍Note: RaTweenLambda for all methods

Member Function Documentation

◆ CloneLambdaTween()

override RaTweenLambdaBase< Rect > RaTweening.Lambda.RaTweenLambdaRect.CloneLambdaTween ( )
protectedvirtual

◆ OnlyIncludeRectValues()

RaTweenLambdaRect RaTweening.Lambda.RaTweenLambdaRect.OnlyIncludeRectValues ( RectValue  inclValues)

Makes it so the given Rect Values which are not specified by the input are excluded. So they remain the value they have at the moments of evaluation

Parameters
inclValuesThe Rect Values to include. This is a flagged value

◆ SetExcludeValues()

RaTweenLambdaRect RaTweening.Lambda.RaTweenLambdaRect.SetExcludeValues ( RectValue  excludeValues)

Makes it so the given Rect Values are excluded from the tween. So they remain the value they have at the moments of evaluation

Parameters
excludeValuesThe Rect Values to exclude. This is a flagged value