Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter::DrawTextBlobOp Struct Referencefinal

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawTextBlobOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawTextBlobOp (const sk_sp< SkTextBlob > &blob, SkScalar x, SkScalar y)
 
void dispatch (DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DrawOpBase
bool op_needed (const DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DLOp
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

const SkScalar x
 
const SkScalar y
 
const sk_sp< SkTextBlobblob
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

static constexpr auto kType = DisplayListOpType::kDrawTextBlob
 
- 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 1095 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ DrawTextBlobOp()

flutter::DrawTextBlobOp::DrawTextBlobOp ( const sk_sp< SkTextBlob > &  blob,
SkScalar  x,
SkScalar  y 
)
inline

Definition at line 1098 of file dl_op_records.h.

1099 : x(x), y(y), blob(blob) {}
const sk_sp< SkTextBlob > blob

Member Function Documentation

◆ dispatch()

void flutter::DrawTextBlobOp::dispatch ( DispatchContext ctx) const
inline

Definition at line 1105 of file dl_op_records.h.

1105 {
1106 if (op_needed(ctx)) {
1107 ctx.receiver.drawTextBlob(blob, x, y);
1108 }
1109 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ blob

const sk_sp<SkTextBlob> flutter::DrawTextBlobOp::blob

Definition at line 1103 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawTextBlobOp::kType = DisplayListOpType::kDrawTextBlob
staticconstexpr

Definition at line 1096 of file dl_op_records.h.

◆ x

const SkScalar flutter::DrawTextBlobOp::x

Definition at line 1101 of file dl_op_records.h.

◆ y

const SkScalar flutter::DrawTextBlobOp::y

Definition at line 1102 of file dl_op_records.h.


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