Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::graphite::DrawParams Class Reference

#include <DrawParams.h>

Public Member Functions

 DrawParams (const Transform &transform, const Geometry &geometry, const Clip &clip, DrawOrder drawOrder, const StrokeStyle *stroke)
 
const Transformtransform () const
 
const Geometrygeometry () const
 
const Clipclip () const
 
DrawOrder order () const
 
bool isStroke () const
 
const StrokeStylestrokeStyle () const
 

Detailed Description

Definition at line 109 of file DrawParams.h.

Constructor & Destructor Documentation

◆ DrawParams()

skgpu::graphite::DrawParams::DrawParams ( const Transform transform,
const Geometry geometry,
const Clip clip,
DrawOrder  drawOrder,
const StrokeStyle stroke 
)
inline

Definition at line 111 of file DrawParams.h.

116 : fTransform(transform)
117 , fGeometry(geometry)
118 , fClip(clip)
119 , fOrder(drawOrder)
120 , fStroke(stroke ? std::optional<StrokeStyle>(*stroke) : std::nullopt) {}
const Clip & clip() const
Definition: DrawParams.h:124
const Transform & transform() const
Definition: DrawParams.h:122
const Geometry & geometry() const
Definition: DrawParams.h:123

Member Function Documentation

◆ clip()

const Clip & skgpu::graphite::DrawParams::clip ( ) const
inline

Definition at line 124 of file DrawParams.h.

124{ return fClip; }

◆ geometry()

const Geometry & skgpu::graphite::DrawParams::geometry ( ) const
inline

Definition at line 123 of file DrawParams.h.

123{ return fGeometry; }

◆ isStroke()

bool skgpu::graphite::DrawParams::isStroke ( ) const
inline

Definition at line 128 of file DrawParams.h.

128{ return fStroke.has_value(); }

◆ order()

DrawOrder skgpu::graphite::DrawParams::order ( ) const
inline

Definition at line 125 of file DrawParams.h.

125{ return fOrder; }

◆ strokeStyle()

const StrokeStyle & skgpu::graphite::DrawParams::strokeStyle ( ) const
inline

Definition at line 129 of file DrawParams.h.

129 {
130 SkASSERT(this->isStroke());
131 return *fStroke;
132 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ transform()

const Transform & skgpu::graphite::DrawParams::transform ( ) const
inline

Definition at line 122 of file DrawParams.h.

122{ return fTransform; }

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