Flutter Engine
 
Loading...
Searching...
No Matches
flutter::DrawTextOp Struct Referencefinal

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawTextOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawTextOp (const std::shared_ptr< DlText > &text, DlScalar x, DlScalar y)
 
void dispatch (DlOpReceiver &receiver) const
 
DisplayListCompare equals (const DrawTextOp *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 DlScalar x
 
const DlScalar y
 
const std::shared_ptr< DlTexttext
 
- Public Attributes inherited from flutter::DLOp
const DisplayListOpType type
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawTextOp()

flutter::DrawTextOp::DrawTextOp ( const std::shared_ptr< DlText > &  text,
DlScalar  x,
DlScalar  y 
)
inline

Definition at line 1006 of file dl_op_records.h.

1007 : DrawOpBase(kType), x(x), y(y), text(text) {}
DrawOpBase(DisplayListOpType type)
static constexpr auto kType
const std::shared_ptr< DlText > text

Member Function Documentation

◆ dispatch()

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

Definition at line 1013 of file dl_op_records.h.

1013{ receiver.drawText(text, x, y); }

References flutter::DlOpReceiver::drawText(), text, x, and y.

◆ equals()

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

Definition at line 1015 of file dl_op_records.h.

1015 {
1016 return Equals(text, other->text) && x == other->x && y == other->y
1019 }
bool Equals(const T *a, const U *b)

References flutter::Equals(), flutter::kEqual, flutter::kNotEqual, text, x, and y.

Member Data Documentation

◆ kType

constexpr auto flutter::DrawTextOp::kType = DisplayListOpType::kDrawText
staticconstexpr

Definition at line 1004 of file dl_op_records.h.

◆ text

const std::shared_ptr<DlText> flutter::DrawTextOp::text

Definition at line 1011 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ x

const DlScalar flutter::DrawTextOp::x

Definition at line 1009 of file dl_op_records.h.

Referenced by dispatch(), and equals().

◆ y

const DlScalar flutter::DrawTextOp::y

Definition at line 1010 of file dl_op_records.h.

Referenced by dispatch(), and equals().


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