Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
skottie::internal::Keyframe::Value Struct Reference

#include <KeyframeAnimator.h>

Public Types

enum class  Type { kIndex , kScalar }
 

Public Member Functions

bool equals (const Value &other, Type ty) const
 

Public Attributes

union { 
 
   uint32_t   idx 
 
   float   flt 
 
};  
 

Detailed Description

Definition at line 39 of file KeyframeAnimator.h.

Member Enumeration Documentation

◆ Type

Enumerator
kIndex 
kScalar 

Definition at line 40 of file KeyframeAnimator.h.

Member Function Documentation

◆ equals()

bool skottie::internal::Keyframe::Value::equals ( const Value other,
Type  ty 
) const
inline

Definition at line 50 of file KeyframeAnimator.h.

50 {
51 return ty == Type::kIndex
52 ? idx == other.idx
53 : flt == other.flt;
54 }

Member Data Documentation

◆ [union]

◆ flt

float skottie::internal::Keyframe::Value::flt

Definition at line 47 of file KeyframeAnimator.h.

◆ idx

uint32_t skottie::internal::Keyframe::Value::idx

Definition at line 46 of file KeyframeAnimator.h.


The documentation for this struct was generated from the following file: