Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 

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

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)


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