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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawDashedLineOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawDashedLineOp (const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length)
 
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 DlPoint p0
 
const DlPoint p1
 
const SkScalar on_length
 
const SkScalar off_length
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawDashedLineOp()

flutter::DrawDashedLineOp::DrawDashedLineOp ( const DlPoint p0,
const DlPoint p1,
DlScalar  on_length,
DlScalar  off_length 
)
inline

Definition at line 742 of file dl_op_records.h.

Member Function Documentation

◆ dispatch()

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

Definition at line 753 of file dl_op_records.h.

753 {
754 if (op_needed(ctx)) {
755 ctx.receiver.drawDashedLine(p0, p1, on_length, off_length);
756 }
757 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ kType

constexpr auto flutter::DrawDashedLineOp::kType = DisplayListOpType::kDrawDashedLine
staticconstexpr

Definition at line 740 of file dl_op_records.h.

◆ off_length

const SkScalar flutter::DrawDashedLineOp::off_length

Definition at line 751 of file dl_op_records.h.

◆ on_length

const SkScalar flutter::DrawDashedLineOp::on_length

Definition at line 750 of file dl_op_records.h.

◆ p0

const DlPoint flutter::DrawDashedLineOp::p0

Definition at line 748 of file dl_op_records.h.

◆ p1

const DlPoint flutter::DrawDashedLineOp::p1

Definition at line 749 of file dl_op_records.h.


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