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

#include <SkImageFilterTypes.h>

Public Member Functions

 LayerSpace ()=default
 
 LayerSpace (const SkPoint &geometry)
 
 LayerSpace (SkPoint &&geometry)
 
 operator const SkPoint & () const
 
SkScalar x () const
 
SkScalar y () const
 
SkScalar distanceToOrigin () const
 
LayerSpace< SkPointoperator+ (const LayerSpace< Vector > &v)
 
LayerSpace< SkPointoperator- (const LayerSpace< Vector > &v)
 
void operator+= (const LayerSpace< Vector > &v)
 
void operator-= (const LayerSpace< Vector > &v)
 
LayerSpace< Vectoroperator- (const LayerSpace< SkPoint > &p)
 
LayerSpace< Vectoroperator- () const
 

Detailed Description

Definition at line 289 of file SkImageFilterTypes.h.

Constructor & Destructor Documentation

◆ LayerSpace() [1/3]

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

◆ LayerSpace() [2/3]

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

Definition at line 292 of file SkImageFilterTypes.h.

292: fData(geometry) {}

◆ LayerSpace() [3/3]

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

Definition at line 293 of file SkImageFilterTypes.h.

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

Member Function Documentation

◆ distanceToOrigin()

SkScalar skif::LayerSpace< SkPoint >::distanceToOrigin ( ) const
inline

Definition at line 300 of file SkImageFilterTypes.h.

300{ return fData.distanceToOrigin(); }
float distanceToOrigin() const
Definition: SkPoint_impl.h:292

◆ operator const SkPoint &()

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

Definition at line 294 of file SkImageFilterTypes.h.

294{ return fData; }

◆ operator+()

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

Definition at line 303 of file SkImageFilterTypes.h.

303 {
304 return LayerSpace<SkPoint>(fData + SkVector(v));
305 }
SkPoint SkVector
Definition: SkPoint_impl.h:158

◆ operator+=()

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

Definition at line 310 of file SkImageFilterTypes.h.

310 {
311 fData += SkVector(v);
312 }

◆ operator-() [1/3]

LayerSpace< Vector > skif::LayerSpace< SkPoint >::operator- ( ) const
inline

Definition at line 322 of file SkImageFilterTypes.h.

322{ return LayerSpace<Vector>({-fData.fX, -fData.fY}); }
float fX
x-axis value
Definition: SkPoint_impl.h:164
float fY
y-axis value
Definition: SkPoint_impl.h:165

◆ operator-() [2/3]

LayerSpace< Vector > skif::LayerSpace< SkPoint >::operator- ( const LayerSpace< SkPoint > &  p)
inline

Definition at line 318 of file SkImageFilterTypes.h.

318 {
319 return LayerSpace<Vector>(Vector(fData - p.fData));
320 }

◆ operator-() [3/3]

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

Definition at line 306 of file SkImageFilterTypes.h.

306 {
307 return LayerSpace<SkPoint>(fData - SkVector(v));
308 }

◆ operator-=()

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

Definition at line 313 of file SkImageFilterTypes.h.

313 {
314 fData -= SkVector(v);
315 }

◆ x()

SkScalar skif::LayerSpace< SkPoint >::x ( ) const
inline

Definition at line 297 of file SkImageFilterTypes.h.

297{ return fData.fX; }

◆ y()

SkScalar skif::LayerSpace< SkPoint >::y ( ) const
inline

Definition at line 298 of file SkImageFilterTypes.h.

298{ return fData.fY; }

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