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

746 {
747 if (op_needed(ctx)) {
748 ctx.receiver.drawArc(bounds, start, sweep, center);
749 }
750 }
bool op_needed(const DispatchContext &ctx) const

Member Data Documentation

◆ bounds

const SkRect flutter::DrawArcOp::bounds

Definition at line 741 of file dl_op_records.h.

◆ center

const bool flutter::DrawArcOp::center

Definition at line 744 of file dl_op_records.h.

◆ kType

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

Definition at line 736 of file dl_op_records.h.

◆ start

const SkScalar flutter::DrawArcOp::start

Definition at line 742 of file dl_op_records.h.

◆ sweep

const SkScalar flutter::DrawArcOp::sweep

Definition at line 743 of file dl_op_records.h.


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