Skia
2D Graphics Library
SkLayerDrawLooper::LayerInfo Struct Reference

Info for how to apply the layer's paint and offset. More...

#include <SkLayerDrawLooper.h>

Public Member Functions

 LayerInfo ()
 Initial the LayerInfo. More...
 

Public Attributes

BitFlags fPaintBits
 
SkBlendMode fColorMode
 
SkVector fOffset
 
bool fPostTranslate
 applies to fOffset More...
 

Detailed Description

Info for how to apply the layer's paint and offset.

fColorMode controls how we compute the final color for the layer: The layer's paint's color is treated as the SRC The draw's paint's color is treated as the DST final-color = Mode(layers-color, draws-color); Any SkBlendMode will work. Two common choices are: kSrc: to use the layer's color, ignoring the draw's kDst: to just keep the draw's color, ignoring the layer's

Constructor & Destructor Documentation

◆ LayerInfo()

SkLayerDrawLooper::LayerInfo::LayerInfo ( )

Initial the LayerInfo.

Defaults to settings that will draw the layer with no changes: e.g. fPaintBits == 0 fColorMode == kDst_Mode fOffset == (0, 0)

Member Data Documentation

◆ fColorMode

SkBlendMode SkLayerDrawLooper::LayerInfo::fColorMode

◆ fOffset

SkVector SkLayerDrawLooper::LayerInfo::fOffset

◆ fPaintBits

BitFlags SkLayerDrawLooper::LayerInfo::fPaintBits

◆ fPostTranslate

bool SkLayerDrawLooper::LayerInfo::fPostTranslate

applies to fOffset


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