Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skif::LayerSpace< SkSize > Class Reference

#include <SkImageFilterTypes.h>

Public Member Functions

 LayerSpace ()=default
 
 LayerSpace (const SkSize &geometry)
 
 LayerSpace (SkSize &&geometry)
 
 operator const SkSize & () const
 
SkScalar width () const
 
SkScalar height () const
 
bool isEmpty () const
 
bool isZero () const
 
LayerSpace< SkISizeround () const
 
LayerSpace< SkISizeceil () const
 
LayerSpace< SkISizefloor () const
 

Detailed Description

Definition at line 348 of file SkImageFilterTypes.h.

Constructor & Destructor Documentation

◆ LayerSpace() [1/3]

skif::LayerSpace< SkSize >::LayerSpace ( )
default

◆ LayerSpace() [2/3]

skif::LayerSpace< SkSize >::LayerSpace ( const SkSize geometry)
inlineexplicit

Definition at line 351 of file SkImageFilterTypes.h.

351: fData(geometry) {}

◆ LayerSpace() [3/3]

skif::LayerSpace< SkSize >::LayerSpace ( SkSize &&  geometry)
inlineexplicit

Definition at line 352 of file SkImageFilterTypes.h.

352: fData(std::move(geometry)) {}

Member Function Documentation

◆ ceil()

LayerSpace< SkISize > skif::LayerSpace< SkSize >::ceil ( ) const

Definition at line 432 of file SkImageFilterTypes.cpp.

432 {
433 return LayerSpace<SkISize>({SkScalarCeilToInt(fData.fWidth - kRoundEpsilon),
434 SkScalarCeilToInt(fData.fHeight - kRoundEpsilon)});
435}
#define SkScalarCeilToInt(x)
Definition: SkScalar.h:36
SkScalar fHeight
Definition: SkSize.h:54
SkScalar fWidth
Definition: SkSize.h:53

◆ floor()

LayerSpace< SkISize > skif::LayerSpace< SkSize >::floor ( ) const

Definition at line 436 of file SkImageFilterTypes.cpp.

436 {
437 return LayerSpace<SkISize>({SkScalarFloorToInt(fData.fWidth + kRoundEpsilon),
438 SkScalarFloorToInt(fData.fHeight + kRoundEpsilon)});
439}
#define SkScalarFloorToInt(x)
Definition: SkScalar.h:35

◆ height()

SkScalar skif::LayerSpace< SkSize >::height ( ) const
inline

Definition at line 356 of file SkImageFilterTypes.h.

356{ return fData.height(); }
SkScalar height() const
Definition: SkSize.h:77

◆ isEmpty()

bool skif::LayerSpace< SkSize >::isEmpty ( ) const
inline

Definition at line 358 of file SkImageFilterTypes.h.

358{ return fData.isEmpty(); }
bool isEmpty() const
Definition: SkSize.h:71

◆ isZero()

bool skif::LayerSpace< SkSize >::isZero ( ) const
inline

Definition at line 359 of file SkImageFilterTypes.h.

359{ return fData.isZero(); }
bool isZero() const
Definition: SkSize.h:68

◆ operator const SkSize &()

skif::LayerSpace< SkSize >::operator const SkSize & ( ) const
inlineexplicit

Definition at line 353 of file SkImageFilterTypes.h.

353{ return fData; }

◆ round()

LayerSpace< SkISize > skif::LayerSpace< SkSize >::round ( ) const

Definition at line 429 of file SkImageFilterTypes.cpp.

429 {
430 return LayerSpace<SkISize>(fData.toRound());
431}
SkISize toRound() const
Definition: SkSize.h:81

◆ width()

SkScalar skif::LayerSpace< SkSize >::width ( ) const
inline

Definition at line 355 of file SkImageFilterTypes.h.

355{ return fData.width(); }
SkScalar width() const
Definition: SkSize.h:76

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