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

#include <SkImageFilterTypes.h>

Public Member Functions

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

Detailed Description

Definition at line 250 of file SkImageFilterTypes.h.

Constructor & Destructor Documentation

◆ LayerSpace() [1/3]

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

◆ LayerSpace() [2/3]

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

Definition at line 253 of file SkImageFilterTypes.h.

253: fData(geometry) {}

◆ LayerSpace() [3/3]

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

Definition at line 254 of file SkImageFilterTypes.h.

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

Member Function Documentation

◆ operator const SkIPoint &()

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

Definition at line 255 of file SkImageFilterTypes.h.

255{ return fData; }

◆ operator+()

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

Definition at line 262 of file SkImageFilterTypes.h.

262 {
263 return LayerSpace<SkIPoint>(fData + SkIVector(v));
264 }
SkIPoint SkIVector
Definition: SkPoint_impl.h:23

◆ operator+=()

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

Definition at line 269 of file SkImageFilterTypes.h.

269 {
270 fData += SkIVector(v);
271 }

◆ operator-() [1/3]

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

Definition at line 281 of file SkImageFilterTypes.h.

281{ return LayerSpace<IVector>({-fData.fX, -fData.fY}); }
int32_t fX
x-axis value
Definition: SkPoint_impl.h:29
int32_t fY
y-axis value
Definition: SkPoint_impl.h:30

◆ operator-() [2/3]

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

Definition at line 265 of file SkImageFilterTypes.h.

265 {
266 return LayerSpace<SkIPoint>(fData - SkIVector(v));
267 }

◆ operator-() [3/3]

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

Definition at line 277 of file SkImageFilterTypes.h.

277 {
278 return LayerSpace<IVector>(IVector(fData - p.fData));
279 }

◆ operator-=()

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

Definition at line 272 of file SkImageFilterTypes.h.

272 {
273 fData -= SkIVector(v);
274 }

◆ x()

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

Definition at line 258 of file SkImageFilterTypes.h.

258{ return fData.fX; }

◆ y()

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

Definition at line 259 of file SkImageFilterTypes.h.

259{ return fData.fY; }

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