Skia
2D Graphics Library
SkHighContrastConfig Struct Reference

Configuration struct for SkHighContrastFilter. More...

#include <SkHighContrastFilter.h>

Public Types

enum class  InvertStyle { kNoInvert , kInvertBrightness , kInvertLightness , kLast = kInvertLightness }
 

Public Member Functions

 SkHighContrastConfig ()
 
 SkHighContrastConfig (bool grayscale, InvertStyle invertStyle, SkScalar contrast)
 
bool isValid () const
 

Public Attributes

bool fGrayscale
 
InvertStyle fInvertStyle
 
SkScalar fContrast
 

Detailed Description

Configuration struct for SkHighContrastFilter.

Provides transformations to improve contrast for users with low vision.

Member Enumeration Documentation

◆ InvertStyle

Enumerator
kNoInvert 
kInvertBrightness 
kInvertLightness 
kLast 

Constructor & Destructor Documentation

◆ SkHighContrastConfig() [1/2]

SkHighContrastConfig::SkHighContrastConfig ( )
inline

◆ SkHighContrastConfig() [2/2]

SkHighContrastConfig::SkHighContrastConfig ( bool  grayscale,
InvertStyle  invertStyle,
SkScalar  contrast 
)
inline

Member Function Documentation

◆ isValid()

bool SkHighContrastConfig::isValid ( ) const
inline

Member Data Documentation

◆ fContrast

SkScalar SkHighContrastConfig::fContrast

◆ fGrayscale

bool SkHighContrastConfig::fGrayscale

◆ fInvertStyle

InvertStyle SkHighContrastConfig::fInvertStyle

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