Skia
2D Graphics Library
SkLayerDrawLooper::Builder Class Reference

#include <SkLayerDrawLooper.h>

Public Member Functions

 Builder ()
 
 ~Builder ()
 
SkPaintaddLayer (const LayerInfo &)
 Call for each layer you want to add (from top to bottom). More...
 
void addLayer (SkScalar dx, SkScalar dy)
 This layer will draw with the original paint, at the specified offset. More...
 
void addLayer ()
 This layer will with the original paint and no offset. More...
 
SkPaintaddLayerOnTop (const LayerInfo &)
 Similar to addLayer, but adds a layer to the top. More...
 
sk_sp< SkDrawLooperdetach ()
 Pass list of layers on to newly built looper and return it. More...
 

Constructor & Destructor Documentation

◆ Builder()

SkLayerDrawLooper::Builder::Builder ( )

◆ ~Builder()

SkLayerDrawLooper::Builder::~Builder ( )

Member Function Documentation

◆ addLayer() [1/3]

void SkLayerDrawLooper::Builder::addLayer ( )
inline

This layer will with the original paint and no offset.

◆ addLayer() [2/3]

SkPaint* SkLayerDrawLooper::Builder::addLayer ( const LayerInfo )

Call for each layer you want to add (from top to bottom).

This returns a paint you can modify, but that ptr is only valid until the next call made to addLayer().

◆ addLayer() [3/3]

void SkLayerDrawLooper::Builder::addLayer ( SkScalar  dx,
SkScalar  dy 
)

This layer will draw with the original paint, at the specified offset.

◆ addLayerOnTop()

SkPaint* SkLayerDrawLooper::Builder::addLayerOnTop ( const LayerInfo )

Similar to addLayer, but adds a layer to the top.

◆ detach()

sk_sp<SkDrawLooper> SkLayerDrawLooper::Builder::detach ( )

Pass list of layers on to newly built looper and return it.

This will also reset the builder, so it can be used to build another looper.


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