Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkCanvas::ImageSetEntry Struct Reference

#include <SkCanvas.h>

Public Member Functions

 ImageSetEntry (sk_sp< const SkImage > image, const SkRect &srcRect, const SkRect &dstRect, int matrixIndex, float alpha, unsigned aaFlags, bool hasClip)
 
 ImageSetEntry (sk_sp< const SkImage > image, const SkRect &srcRect, const SkRect &dstRect, float alpha, unsigned aaFlags)
 
 ImageSetEntry ()
 
 ~ImageSetEntry ()
 
 ImageSetEntry (const ImageSetEntry &)
 
ImageSetEntryoperator= (const ImageSetEntry &)
 

Public Attributes

sk_sp< const SkImagefImage
 
SkRect fSrcRect
 
SkRect fDstRect
 
int fMatrixIndex = -1
 
float fAlpha = 1.f
 
unsigned fAAFlags = kNone_QuadAAFlags
 
bool fHasClip = false
 

Detailed Description

This is used by the experimental API below.

Definition at line 1669 of file SkCanvas.h.

Constructor & Destructor Documentation

◆ ImageSetEntry() [1/4]

SkCanvas::ImageSetEntry::ImageSetEntry ( sk_sp< const SkImage image,
const SkRect srcRect,
const SkRect dstRect,
int  matrixIndex,
float  alpha,
unsigned  aaFlags,
bool  hasClip 
)

Definition at line 2780 of file SkCanvas.cpp.

2783 : fImage(std::move(image))
2784 , fSrcRect(srcRect)
2785 , fDstRect(dstRect)
2786 , fMatrixIndex(matrixIndex)
2787 , fAlpha(alpha)
2788 , fAAFlags(aaFlags)
2789 , fHasClip(hasClip) {}
sk_sp< const SkImage > image
Definition: SkRecords.h:269
sk_sp< const SkImage > fImage
Definition: SkCanvas.h:1681

◆ ImageSetEntry() [2/4]

SkCanvas::ImageSetEntry::ImageSetEntry ( sk_sp< const SkImage image,
const SkRect srcRect,
const SkRect dstRect,
float  alpha,
unsigned  aaFlags 
)

Definition at line 2791 of file SkCanvas.cpp.

2793 : fImage(std::move(image))
2794 , fSrcRect(srcRect)
2795 , fDstRect(dstRect)
2796 , fAlpha(alpha)
2797 , fAAFlags(aaFlags) {}

◆ ImageSetEntry() [3/4]

SkCanvas::ImageSetEntry::ImageSetEntry ( )
default

◆ ~ImageSetEntry()

SkCanvas::ImageSetEntry::~ImageSetEntry ( )
default

◆ ImageSetEntry() [4/4]

SkCanvas::ImageSetEntry::ImageSetEntry ( const ImageSetEntry )
default

Member Function Documentation

◆ operator=()

SkCanvas::ImageSetEntry & SkCanvas::ImageSetEntry::operator= ( const ImageSetEntry )
default

Member Data Documentation

◆ fAAFlags

unsigned SkCanvas::ImageSetEntry::fAAFlags = kNone_QuadAAFlags

Definition at line 1686 of file SkCanvas.h.

◆ fAlpha

float SkCanvas::ImageSetEntry::fAlpha = 1.f

Definition at line 1685 of file SkCanvas.h.

◆ fDstRect

SkRect SkCanvas::ImageSetEntry::fDstRect

Definition at line 1683 of file SkCanvas.h.

◆ fHasClip

bool SkCanvas::ImageSetEntry::fHasClip = false

Definition at line 1687 of file SkCanvas.h.

◆ fImage

sk_sp<const SkImage> SkCanvas::ImageSetEntry::fImage

Definition at line 1681 of file SkCanvas.h.

◆ fMatrixIndex

int SkCanvas::ImageSetEntry::fMatrixIndex = -1

Definition at line 1684 of file SkCanvas.h.

◆ fSrcRect

SkRect SkCanvas::ImageSetEntry::fSrcRect

Definition at line 1682 of file SkCanvas.h.


The documentation for this struct was generated from the following files: