Skia
2D Graphics Library
|
#include <SkLayerDrawLooper.h>
Public Member Functions | |
Builder () | |
~Builder () | |
SkPaint * | addLayer (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... | |
SkPaint * | addLayerOnTop (const LayerInfo &) |
Similar to addLayer, but adds a layer to the top. More... | |
sk_sp< SkDrawLooper > | detach () |
Pass list of layers on to newly built looper and return it. More... | |
SkLayerDrawLooper::Builder::Builder | ( | ) |
SkLayerDrawLooper::Builder::~Builder | ( | ) |
|
inline |
This layer will with the original paint and no offset.
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().
This layer will draw with the original paint, at the specified offset.
Similar to addLayer, but adds a layer to the top.
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.