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

#include <SkImageFilterTypes.h>

Public Member Functions

 LayerSpace ()=default
 
 LayerSpace (const SkRect &geometry)
 
 LayerSpace (SkRect &&geometry)
 
 LayerSpace (const LayerSpace< SkIRect > &rect)
 
 operator const SkRect & () const
 
bool isEmpty () const
 
bool contains (const LayerSpace< SkRect > &r) const
 
SkScalar left () const
 
SkScalar top () const
 
SkScalar right () const
 
SkScalar bottom () const
 
SkScalar width () const
 
SkScalar height () const
 
LayerSpace< SkPointtopLeft () const
 
LayerSpace< SkPointcenter () const
 
LayerSpace< SkSizesize () const
 
LayerSpace< SkIRectround () const
 
LayerSpace< SkIRectroundIn () const
 
LayerSpace< SkIRectroundOut () const
 
bool intersect (const LayerSpace< SkRect > &r)
 
void join (const LayerSpace< SkRect > &r)
 
void offset (const LayerSpace< Vector > &v)
 
void outset (const LayerSpace< SkSize > &delta)
 
void inset (const LayerSpace< SkSize > &delta)
 
LayerSpace< SkPointclamp (LayerSpace< SkPoint > pt) const
 

Static Public Member Functions

static LayerSpace< SkRectEmpty ()
 

Detailed Description

Definition at line 433 of file SkImageFilterTypes.h.

Constructor & Destructor Documentation

◆ LayerSpace() [1/4]

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

◆ LayerSpace() [2/4]

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

Definition at line 436 of file SkImageFilterTypes.h.

436: fData(geometry) {}

◆ LayerSpace() [3/4]

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

Definition at line 437 of file SkImageFilterTypes.h.

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

◆ LayerSpace() [4/4]

skif::LayerSpace< SkRect >::LayerSpace ( const LayerSpace< SkIRect > &  rect)
inlineexplicit

Definition at line 438 of file SkImageFilterTypes.h.

438: fData(SkRect::Make(SkIRect(rect))) {}
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350
Definition: SkRect.h:32
static SkRect Make(const SkISize &size)
Definition: SkRect.h:669

Member Function Documentation

◆ bottom()

SkScalar skif::LayerSpace< SkRect >::bottom ( ) const
inline

Definition at line 450 of file SkImageFilterTypes.h.

450{ return fData.fBottom; }
SkScalar fBottom
larger y-axis bounds
Definition: extension.cpp:17

◆ center()

LayerSpace< SkPoint > skif::LayerSpace< SkRect >::center ( ) const
inline

Definition at line 458 of file SkImageFilterTypes.h.

458 {
459 return LayerSpace<SkPoint>(fData.center());
460 }
constexpr SkPoint center() const
Definition: SkRect.h:792

◆ clamp()

LayerSpace< SkPoint > skif::LayerSpace< SkRect >::clamp ( LayerSpace< SkPoint pt) const
inline

Definition at line 475 of file SkImageFilterTypes.h.

475 {
476 return LayerSpace<SkPoint>(SkPoint::Make(SkTPin(pt.x(), fData.fLeft, fData.fRight),
477 SkTPin(pt.y(), fData.fTop, fData.fBottom)));
478 }
static constexpr const T & SkTPin(const T &x, const T &lo, const T &hi)
Definition: SkTPin.h:19
static constexpr SkPoint Make(float x, float y)
Definition: SkPoint_impl.h:173
SkScalar fLeft
smaller x-axis bounds
Definition: extension.cpp:14
SkScalar fRight
larger x-axis bounds
Definition: extension.cpp:16
SkScalar fTop
smaller y-axis bounds
Definition: extension.cpp:15

◆ contains()

bool skif::LayerSpace< SkRect >::contains ( const LayerSpace< SkRect > &  r) const
inline

Definition at line 445 of file SkImageFilterTypes.h.

445{ return fData.contains(r.fData); }
bool contains(SkScalar x, SkScalar y) const
Definition: extension.cpp:19

◆ Empty()

static LayerSpace< SkRect > skif::LayerSpace< SkRect >::Empty ( )
inlinestatic

Definition at line 441 of file SkImageFilterTypes.h.

441{ return LayerSpace<SkRect>(SkRect::MakeEmpty()); }
static constexpr SkRect MakeEmpty()
Definition: SkRect.h:595

◆ height()

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

Definition at line 453 of file SkImageFilterTypes.h.

453{ return fData.height(); }
constexpr float height() const
Definition: SkRect.h:769

◆ inset()

void skif::LayerSpace< SkRect >::inset ( const LayerSpace< SkSize > &  delta)
inline

Definition at line 473 of file SkImageFilterTypes.h.

473{ fData.inset(delta.width(), delta.height()); }
void inset(float dx, float dy)
Definition: SkRect.h:1060

◆ intersect()

bool skif::LayerSpace< SkRect >::intersect ( const LayerSpace< SkRect > &  r)
inline

Definition at line 469 of file SkImageFilterTypes.h.

469{ return fData.intersect(r.fData); }
bool intersect(const SkRect &r)
Definition: SkRect.cpp:114

◆ isEmpty()

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

Definition at line 444 of file SkImageFilterTypes.h.

444{ return fData.isEmpty(); }
bool isEmpty() const
Definition: SkRect.h:693

◆ join()

void skif::LayerSpace< SkRect >::join ( const LayerSpace< SkRect > &  r)
inline

Definition at line 470 of file SkImageFilterTypes.h.

470{ fData.join(r.fData); }
void join(const SkRect &r)
Definition: SkRect.cpp:126

◆ left()

SkScalar skif::LayerSpace< SkRect >::left ( ) const
inline

Definition at line 447 of file SkImageFilterTypes.h.

447{ return fData.fLeft; }

◆ offset()

void skif::LayerSpace< SkRect >::offset ( const LayerSpace< Vector > &  v)
inline

Definition at line 471 of file SkImageFilterTypes.h.

471{ fData.offset(SkVector(v)); }
SkPoint SkVector
Definition: SkPoint_impl.h:158
void offset(float dx, float dy)
Definition: SkRect.h:1016

◆ operator const SkRect &()

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

Definition at line 439 of file SkImageFilterTypes.h.

439{ return fData; }

◆ outset()

void skif::LayerSpace< SkRect >::outset ( const LayerSpace< SkSize > &  delta)
inline

Definition at line 472 of file SkImageFilterTypes.h.

472{ fData.outset(delta.width(), delta.height()); }
void outset(float dx, float dy)
Definition: SkRect.h:1077

◆ right()

SkScalar skif::LayerSpace< SkRect >::right ( ) const
inline

Definition at line 449 of file SkImageFilterTypes.h.

449{ return fData.fRight; }

◆ round()

LayerSpace< SkIRect > skif::LayerSpace< SkRect >::round ( ) const
inline

Definition at line 465 of file SkImageFilterTypes.h.

465{ return LayerSpace<SkIRect>(fData.round()); }
void round(SkIRect *dst) const
Definition: SkRect.h:1228

◆ roundIn()

LayerSpace< SkIRect > skif::LayerSpace< SkRect >::roundIn ( ) const
inline

Definition at line 466 of file SkImageFilterTypes.h.

466{ return LayerSpace<SkIRect>(RoundIn(fData)); }
SkIRect RoundIn(SkRect r)

◆ roundOut()

LayerSpace< SkIRect > skif::LayerSpace< SkRect >::roundOut ( ) const
inline

Definition at line 467 of file SkImageFilterTypes.h.

467{ return LayerSpace<SkIRect>(RoundOut(fData)); }
SkIRect RoundOut(SkRect r)

◆ size()

LayerSpace< SkSize > skif::LayerSpace< SkRect >::size ( ) const
inline

Definition at line 461 of file SkImageFilterTypes.h.

461 {
462 return LayerSpace<SkSize>(SkSize::Make(fData.width(), fData.height()));
463 }
constexpr float width() const
Definition: SkRect.h:762
static constexpr SkSize Make(SkScalar w, SkScalar h)
Definition: SkSize.h:56

◆ top()

SkScalar skif::LayerSpace< SkRect >::top ( ) const
inline

Definition at line 448 of file SkImageFilterTypes.h.

448{ return fData.fTop; }

◆ topLeft()

LayerSpace< SkPoint > skif::LayerSpace< SkRect >::topLeft ( ) const
inline

Definition at line 455 of file SkImageFilterTypes.h.

455 {
456 return LayerSpace<SkPoint>(SkPoint::Make(fData.fLeft, fData.fTop));
457 }

◆ width()

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

Definition at line 452 of file SkImageFilterTypes.h.

452{ return fData.width(); }

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