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

#include <dl_op_records.h>

Inheritance diagram for flutter::DrawArcOp:
flutter::DrawOpBase flutter::DLOp

Public Member Functions

 DrawArcOp (SkRect bounds, SkScalar start, SkScalar sweep, bool center)
 
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 SkRect bounds
 
const SkScalar start
 
const SkScalar sweep
 
const bool center
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DrawArcOp()

flutter::DrawArcOp::DrawArcOp ( SkRect  bounds,
SkScalar  start,
SkScalar  sweep,
bool  center 
)
inline

Definition at line 764 of file dl_op_records.h.

const SkRect bounds
const SkScalar start
const SkScalar sweep

Member Function Documentation

◆ dispatch()

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

Definition at line 772 of file dl_op_records.h.

772 {
773 if (op_needed(ctx)) {
774 ctx.receiver.drawArc(bounds, start, sweep, center);
775 }
776 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ bounds

const SkRect flutter::DrawArcOp::bounds

Definition at line 767 of file dl_op_records.h.

◆ center

const bool flutter::DrawArcOp::center

Definition at line 770 of file dl_op_records.h.

◆ kType

constexpr auto flutter::DrawArcOp::kType = DisplayListOpType::kDrawArc
staticconstexpr

Definition at line 762 of file dl_op_records.h.

◆ start

const SkScalar flutter::DrawArcOp::start

Definition at line 768 of file dl_op_records.h.

◆ sweep

const SkScalar flutter::DrawArcOp::sweep

Definition at line 769 of file dl_op_records.h.


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