Skia
2D Graphics Library
SkGradientShader::Interpolation Struct Reference

#include <SkGradientShader.h>

Public Types

enum class  InPremul : bool { kNo = false , kYes = true }
 
enum class  ColorSpace : uint8_t {
  kDestination , kSRGBLinear , kLab , kOKLab ,
  kLCH , kOKLCH , kSRGB , kHSL ,
  kHWB , kLastColorSpace = kHWB
}
 
enum class  HueMethod : uint8_t {
  kShorter , kLonger , kIncreasing , kDecreasing ,
  kLastHueMethod = kDecreasing
}
 

Static Public Member Functions

static Interpolation FromFlags (uint32_t flags)
 

Public Attributes

InPremul fInPremul = InPremul::kNo
 
ColorSpace fColorSpace = ColorSpace::kDestination
 
HueMethod fHueMethod = HueMethod::kShorter
 

Static Public Attributes

static constexpr int kColorSpaceCount = static_cast<int>(ColorSpace::kLastColorSpace) + 1
 
static constexpr int kHueMethodCount = static_cast<int>(HueMethod::kLastHueMethod) + 1
 

Member Enumeration Documentation

◆ ColorSpace

Enumerator
kDestination 
kSRGBLinear 
kLab 
kOKLab 
kLCH 
kOKLCH 
kSRGB 
kHSL 
kHWB 
kLastColorSpace 

◆ HueMethod

Enumerator
kShorter 
kLonger 
kIncreasing 
kDecreasing 
kLastHueMethod 

◆ InPremul

Enumerator
kNo 
kYes 

Member Function Documentation

◆ FromFlags()

static Interpolation SkGradientShader::Interpolation::FromFlags ( uint32_t  flags)
inlinestatic

Member Data Documentation

◆ fColorSpace

ColorSpace SkGradientShader::Interpolation::fColorSpace = ColorSpace::kDestination

◆ fHueMethod

HueMethod SkGradientShader::Interpolation::fHueMethod = HueMethod::kShorter

◆ fInPremul

InPremul SkGradientShader::Interpolation::fInPremul = InPremul::kNo

◆ kColorSpaceCount

constexpr int SkGradientShader::Interpolation::kColorSpaceCount = static_cast<int>(ColorSpace::kLastColorSpace) + 1
staticconstexpr

◆ kHueMethodCount

constexpr int SkGradientShader::Interpolation::kHueMethodCount = static_cast<int>(HueMethod::kLastHueMethod) + 1
staticconstexpr

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