Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::graphite::Clip Class Reference

#include <DrawParams.h>

Public Member Functions

 Clip ()=default
 
 Clip (const Rect &drawBounds, const Rect &shapeBounds, const SkIRect &scissor, const SkShader *shader)
 
const RectdrawBounds () const
 
const SkIRectscissor () const
 
const RecttransformedShapeBounds () const
 
const SkShadershader () const
 
bool isClippedOut () const
 

Detailed Description

Definition at line 64 of file DrawParams.h.

Constructor & Destructor Documentation

◆ Clip() [1/2]

skgpu::graphite::Clip::Clip ( )
default

◆ Clip() [2/2]

skgpu::graphite::Clip::Clip ( const Rect drawBounds,
const Rect shapeBounds,
const SkIRect scissor,
const SkShader shader 
)
inline

Definition at line 67 of file DrawParams.h.

71 : fDrawBounds(drawBounds)
72 , fTransformedShapeBounds(shapeBounds)
73 , fScissor(scissor)
74 , fShader(shader) {}
const Rect & drawBounds() const
Definition DrawParams.h:78
const SkShader * shader() const
Definition DrawParams.h:91
const SkIRect & scissor() const
Definition DrawParams.h:83

Member Function Documentation

◆ drawBounds()

const Rect & skgpu::graphite::Clip::drawBounds ( ) const
inline

Definition at line 78 of file DrawParams.h.

78{ return fDrawBounds; }

◆ isClippedOut()

bool skgpu::graphite::Clip::isClippedOut ( ) const
inline

Definition at line 93 of file DrawParams.h.

93{ return fDrawBounds.isEmptyNegativeOrNaN(); }
AI bool isEmptyNegativeOrNaN() const
Definition Rect.h:102

◆ scissor()

const SkIRect & skgpu::graphite::Clip::scissor ( ) const
inline

Definition at line 83 of file DrawParams.h.

83{ return fScissor; }

◆ shader()

const SkShader * skgpu::graphite::Clip::shader ( ) const
inline

Definition at line 91 of file DrawParams.h.

91{ return fShader; }

◆ transformedShapeBounds()

const Rect & skgpu::graphite::Clip::transformedShapeBounds ( ) const
inline

Definition at line 88 of file DrawParams.h.

88{ return fTransformedShapeBounds; }

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