Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkPaintFlagsDrawFilter.h
1 /*
2  * Copyright 2008 The Android Open Source Project
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkPaintFlagsDrawFilter_DEFINED
9 #define SkPaintFlagsDrawFilter_DEFINED
10 
11 #include "SkDrawFilter.h"
12 
13 class SK_API SkPaintFlagsDrawFilter : public SkDrawFilter {
14 public:
15  SkPaintFlagsDrawFilter(uint32_t clearFlags, uint32_t setFlags);
16 
17  bool filter(SkPaint*, Type) override;
18 
19 private:
20  uint16_t fClearFlags; // user specified
21  uint16_t fSetFlags; // user specified
22 };
23 
24 #endif
virtual bool filter(SkPaint *, Type)=0
Called with the paint that will be used to draw the specified type.
The SkPaint class holds the style and color information about how to draw geometries, text and bitmaps.
Definition: SkPaint.h:45
DEPRECATED - use SkPaintFilterCanvas instead.
Definition: SkDrawFilter.h:26
Definition: SkPaintFlagsDrawFilter.h:13