SaveLayerRec contains the state used to create the layer.
More...
#include <SkCanvas.h>
|
| SaveLayerRec () |
| Sets fBounds, fPaint, and fBackdrop to nullptr. More...
|
|
| SaveLayerRec (const SkRect *bounds, const SkPaint *paint, SaveLayerFlags saveLayerFlags=0) |
| Sets fBounds, fPaint, and fSaveLayerFlags; sets fBackdrop to nullptr. More...
|
|
| SaveLayerRec (const SkRect *bounds, const SkPaint *paint, const SkImageFilter *backdrop, SaveLayerFlags saveLayerFlags) |
| Sets fBounds, fPaint, fBackdrop, and fSaveLayerFlags. More...
|
|
SaveLayerRec contains the state used to create the layer.
◆ SaveLayerRec() [1/3]
SkCanvas::SaveLayerRec::SaveLayerRec |
( |
| ) |
|
|
inline |
Sets fBounds, fPaint, and fBackdrop to nullptr.
Clears fSaveLayerFlags.
- Returns
- empty SaveLayerRec
◆ SaveLayerRec() [2/3]
Sets fBounds, fPaint, and fSaveLayerFlags; sets fBackdrop to nullptr.
- Parameters
-
bounds | layer dimensions; may be nullptr |
paint | applied to layer when overlaying prior layer; may be nullptr |
saveLayerFlags | SaveLayerRec options to modify layer |
- Returns
- SaveLayerRec with empty fBackdrop
◆ SaveLayerRec() [3/3]
Sets fBounds, fPaint, fBackdrop, and fSaveLayerFlags.
- Parameters
-
bounds | layer dimensions; may be nullptr |
paint | applied to layer when overlaying prior layer; may be nullptr |
backdrop | If not null, this causes the current layer to be filtered by backdrop, and then drawn into the new layer (respecting the current clip). If null, the new layer is initialized with transparent-black. |
saveLayerFlags | SaveLayerRec options to modify layer |
- Returns
- SaveLayerRec fully specified
◆ SkCanvas
◆ SkCanvasPriv
friend class SkCanvasPriv |
|
friend |
◆ fBackdrop
If not null, this triggers the same initialization behavior as setting kInitWithPrevious_SaveLayerFlag on fSaveLayerFlags: the current layer is copied into the new layer, rather than initializing the new layer with transparent-black.
This is then filtered by fBackdrop (respecting the current clip).
◆ fBounds
const SkRect* SkCanvas::SaveLayerRec::fBounds = nullptr |
hints at layer size limit
◆ fPaint
const SkPaint* SkCanvas::SaveLayerRec::fPaint = nullptr |
◆ fSaveLayerFlags
preserves LCD text, creates with prior layer contents
The documentation for this struct was generated from the following file: