Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 1086 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 1089 of file dl_op_records.h.

1092 : 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 1098 of file dl_op_records.h.

1098 {
1099 if (op_needed(ctx)) {
1100 ctx.receiver.drawTextFrame(text_frame, x, y);
1101 }
1102 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ kType

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

Definition at line 1087 of file dl_op_records.h.

◆ text_frame

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

Definition at line 1096 of file dl_op_records.h.

◆ x

const SkScalar flutter::DrawTextFrameOp::x

Definition at line 1094 of file dl_op_records.h.

◆ y

const SkScalar flutter::DrawTextFrameOp::y

Definition at line 1095 of file dl_op_records.h.


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