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

#include <SkImageFilterTypes.h>

Public Member Functions

 LayerSpace ()=default
 
 LayerSpace (const IVector &geometry)
 
 LayerSpace (IVector &&geometry)
 
 operator const IVector & () const
 
 operator SkIVector () const
 
int32_t x () const
 
int32_t y () const
 
LayerSpace< IVectoroperator- () const
 
LayerSpace< IVectoroperator+ (const LayerSpace< IVector > &v) const
 
LayerSpace< IVectoroperator- (const LayerSpace< IVector > &v) const
 
void operator+= (const LayerSpace< IVector > &v)
 
void operator-= (const LayerSpace< IVector > &v)
 

Detailed Description

Definition at line 154 of file SkImageFilterTypes.h.

Constructor & Destructor Documentation

◆ LayerSpace() [1/3]

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

◆ LayerSpace() [2/3]

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

Definition at line 157 of file SkImageFilterTypes.h.

157: fData(geometry) {}

◆ LayerSpace() [3/3]

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

Definition at line 158 of file SkImageFilterTypes.h.

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

Member Function Documentation

◆ operator const IVector &()

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

Definition at line 159 of file SkImageFilterTypes.h.

159{ return fData; }

◆ operator SkIVector()

skif::LayerSpace< IVector >::operator SkIVector ( ) const
inlineexplicit

Definition at line 161 of file SkImageFilterTypes.h.

161{ return SkIVector::Make(fData.fX, fData.fY); }
static constexpr SkIPoint Make(int32_t x, int32_t y)
Definition: SkPoint_impl.h:38

◆ operator+()

LayerSpace< IVector > skif::LayerSpace< IVector >::operator+ ( const LayerSpace< IVector > &  v) const
inline

Definition at line 168 of file SkImageFilterTypes.h.

168 {
169 LayerSpace<IVector> sum = *this;
170 sum += v;
171 return sum;
172 }

◆ operator+=()

void skif::LayerSpace< IVector >::operator+= ( const LayerSpace< IVector > &  v)
inline

Definition at line 179 of file SkImageFilterTypes.h.

179 {
180 fData.fX += v.fData.fX;
181 fData.fY += v.fData.fY;
182 }

◆ operator-() [1/2]

LayerSpace< IVector > skif::LayerSpace< IVector >::operator- ( ) const
inline

Definition at line 166 of file SkImageFilterTypes.h.

166{ return LayerSpace<IVector>({-fData.fX, -fData.fY}); }

◆ operator-() [2/2]

LayerSpace< IVector > skif::LayerSpace< IVector >::operator- ( const LayerSpace< IVector > &  v) const
inline

Definition at line 173 of file SkImageFilterTypes.h.

173 {
174 LayerSpace<IVector> diff = *this;
175 diff -= v;
176 return diff;
177 }

◆ operator-=()

void skif::LayerSpace< IVector >::operator-= ( const LayerSpace< IVector > &  v)
inline

Definition at line 183 of file SkImageFilterTypes.h.

183 {
184 fData.fX -= v.fData.fX;
185 fData.fY -= v.fData.fY;
186 }

◆ x()

int32_t skif::LayerSpace< IVector >::x ( ) const
inline

Definition at line 163 of file SkImageFilterTypes.h.

163{ return fData.fX; }

◆ y()

int32_t skif::LayerSpace< IVector >::y ( ) const
inline

Definition at line 164 of file SkImageFilterTypes.h.

164{ return fData.fY; }

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