Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::DrawImageRectOp Struct Referencefinal

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawImageRectOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawImageRectOp (const sk_sp< DlImage > &image, const DlRect &src, const DlRect &dst, DlImageSampling sampling, bool render_with_attributes, DlSrcRectConstraint constraint)
 
void dispatch (DlOpReceiver &receiver) const
 
DisplayListCompare equals (const DrawImageRectOp *other) const
 
- Public Member Functions inherited from flutter::DrawOpBase
 DrawOpBase (DisplayListOpType type)
 
- Public Member Functions inherited from flutter::DLOp
 DLOp (DisplayListOpType type)
 
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

const DlRect src
 
const DlRect dst
 
const DlImageSampling sampling
 
const bool render_with_attributes
 
const DlSrcRectConstraint constraint
 
const sk_sp< DlImageimage
 
- Public Attributes inherited from flutter::DLOp
const DisplayListOpType type
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kDrawImageRect
 
- Static Public Attributes inherited from flutter::DrawOpBase
static constexpr uint32_t kDepthInc = 1
 
static constexpr uint32_t kRenderOpInc = 1
 
- Static Public Attributes inherited from flutter::DLOp
static constexpr uint32_t kDepthInc = 0
 
static constexpr uint32_t kRenderOpInc = 0
 

Detailed Description

Definition at line 766 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawImageRectOp()

flutter::DrawImageRectOp::DrawImageRectOp ( const sk_sp< DlImage > &  image,
const DlRect src,
const DlRect dst,
DlImageSampling  sampling,
bool  render_with_attributes,
DlSrcRectConstraint  constraint 
)
inline

Definition at line 769 of file dl_op_records.h.

775 : DrawOpBase(kType),
776 src(src),
777 dst(dst),
781 image(image) {}
const sk_sp< DlImage > image
static constexpr auto kType
const DlSrcRectConstraint constraint
const DlImageSampling sampling
DrawOpBase(DisplayListOpType type)

Member Function Documentation

◆ dispatch()

void flutter::DrawImageRectOp::dispatch ( DlOpReceiver receiver) const
inline

Definition at line 790 of file dl_op_records.h.

790 {
791 receiver.drawImageRect(image, src, dst, sampling, render_with_attributes,
792 constraint);
793 }

References constraint, flutter::DlOpReceiver::drawImageRect(), dst, image, render_with_attributes, sampling, and src.

◆ equals()

DisplayListCompare flutter::DrawImageRectOp::equals ( const DrawImageRectOp other) const
inline

Definition at line 795 of file dl_op_records.h.

795 {
796 return (src == other->src && dst == other->dst &&
797 sampling == other->sampling &&
798 render_with_attributes == other->render_with_attributes &&
799 constraint == other->constraint && image->Equals(other->image))
802 }

References constraint, dst, image, flutter::kEqual, flutter::kNotEqual, render_with_attributes, sampling, and src.

Member Data Documentation

◆ constraint

const DlSrcRectConstraint flutter::DrawImageRectOp::constraint

Definition at line 787 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ dst

const DlRect flutter::DrawImageRectOp::dst

Definition at line 784 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ image

const sk_sp<DlImage> flutter::DrawImageRectOp::image

Definition at line 788 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ kType

constexpr auto flutter::DrawImageRectOp::kType = DisplayListOpType::kDrawImageRect
staticconstexpr

Definition at line 767 of file dl_op_records.h.

◆ render_with_attributes

const bool flutter::DrawImageRectOp::render_with_attributes

Definition at line 786 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ sampling

const DlImageSampling flutter::DrawImageRectOp::sampling

Definition at line 785 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ src

const DlRect flutter::DrawImageRectOp::src

Definition at line 783 of file dl_op_records.h.

Referenced by dispatch(), and equals().


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