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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawTextFrameOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawTextFrameOp (const std::shared_ptr< impeller::TextFrame > &text_frame, 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 std::shared_ptr< impeller::TextFrametext_frame
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawTextFrameOp()

flutter::DrawTextFrameOp::DrawTextFrameOp ( const std::shared_ptr< impeller::TextFrame > &  text_frame,
SkScalar  x,
SkScalar  y 
)
inline

Definition at line 1115 of file dl_op_records.h.

1118 : x(x), y(y), text_frame(text_frame) {}
const std::shared_ptr< impeller::TextFrame > text_frame

Member Function Documentation

◆ dispatch()

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

Definition at line 1124 of file dl_op_records.h.

1124 {
1125 if (op_needed(ctx)) {
1126 ctx.receiver.drawTextFrame(text_frame, x, y);
1127 }
1128 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ kType

constexpr auto flutter::DrawTextFrameOp::kType = DisplayListOpType::kDrawTextFrame
staticconstexpr

Definition at line 1113 of file dl_op_records.h.

◆ text_frame

const std::shared_ptr<impeller::TextFrame> flutter::DrawTextFrameOp::text_frame

Definition at line 1122 of file dl_op_records.h.

◆ x

const SkScalar flutter::DrawTextFrameOp::x

Definition at line 1120 of file dl_op_records.h.

◆ y

const SkScalar flutter::DrawTextFrameOp::y

Definition at line 1121 of file dl_op_records.h.


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