Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkRecords::IsDraw Class Reference

#include <SkRecordPattern.h>

Public Member Functions

 IsDraw ()
 
SkPaintget ()
 
template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDrawWithPaint_Tag, bool > operator() (T *draw)
 
template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDraw_Tag, bool > operator() (T *draw)
 
template<typename T >
std::enable_if_t<!(T::kTags &kDraw_Tag), bool > operator() (T *draw)
 

Detailed Description

Definition at line 44 of file SkRecordPattern.h.

Constructor & Destructor Documentation

◆ IsDraw()

SkRecords::IsDraw::IsDraw ( )
inline

Definition at line 46 of file SkRecordPattern.h.

46: fPaint(nullptr) {}

Member Function Documentation

◆ get()

SkPaint * SkRecords::IsDraw::get ( )
inline

Definition at line 48 of file SkRecordPattern.h.

48{ return fPaint; }

◆ operator()() [1/3]

template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDrawWithPaint_Tag, bool > SkRecords::IsDraw::operator() ( T draw)
inline

Definition at line 52 of file SkRecordPattern.h.

52 {
53 fPaint = AsPtr(draw->paint);
54 return true;
55 }
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27

◆ operator()() [2/3]

template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDraw_Tag, bool > SkRecords::IsDraw::operator() ( T draw)
inline

Definition at line 58 of file SkRecordPattern.h.

58 {
59 fPaint = nullptr;
60 return true;
61 }

◆ operator()() [3/3]

template<typename T >
std::enable_if_t<!(T::kTags &kDraw_Tag), bool > SkRecords::IsDraw::operator() ( T draw)
inline

Definition at line 64 of file SkRecordPattern.h.

64 {
65 fPaint = nullptr;
66 return false;
67 }

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