Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkImageFilters::CropRect Struct Reference

#include <SkImageFilters.h>

Inheritance diagram for SkImageFilters::CropRect:

Public Member Functions

 CropRect ()
 
 CropRect (const SkIRect &crop)
 
 CropRect (const SkRect &crop)
 
 CropRect (const std::optional< SkRect > &crop)
 
 CropRect (const std::nullopt_t &)
 
 CropRect (std::nullptr_t)
 
 CropRect (const SkIRect *optionalCrop)
 
 CropRect (const SkRect *optionalCrop)
 
bool operator== (const CropRect &o) const
 

Detailed Description

Definition at line 47 of file SkImageFilters.h.

Constructor & Destructor Documentation

◆ CropRect() [1/8]

SkImageFilters::CropRect::CropRect ( )
inline

Definition at line 48 of file SkImageFilters.h.

48{}

◆ CropRect() [2/8]

SkImageFilters::CropRect::CropRect ( const SkIRect crop)
inline

Definition at line 51 of file SkImageFilters.h.

51: std::optional<SkRect>(SkRect::Make(crop)) {}
static SkRect Make(const SkISize &size)
Definition: SkRect.h:669

◆ CropRect() [3/8]

SkImageFilters::CropRect::CropRect ( const SkRect crop)
inline

Definition at line 52 of file SkImageFilters.h.

52: std::optional<SkRect>(crop) {}

◆ CropRect() [4/8]

SkImageFilters::CropRect::CropRect ( const std::optional< SkRect > &  crop)
inline

Definition at line 53 of file SkImageFilters.h.

53: std::optional<SkRect>(crop) {}

◆ CropRect() [5/8]

SkImageFilters::CropRect::CropRect ( const std::nullopt_t &  )
inline

Definition at line 54 of file SkImageFilters.h.

54: std::optional<SkRect>() {}

◆ CropRect() [6/8]

SkImageFilters::CropRect::CropRect ( std::nullptr_t  )
inline

Definition at line 57 of file SkImageFilters.h.

57{}

◆ CropRect() [7/8]

SkImageFilters::CropRect::CropRect ( const SkIRect optionalCrop)
inline

Definition at line 58 of file SkImageFilters.h.

58 {
59 if (optionalCrop) {
60 *this = SkRect::Make(*optionalCrop);
61 }
62 }

◆ CropRect() [8/8]

SkImageFilters::CropRect::CropRect ( const SkRect optionalCrop)
inline

Definition at line 63 of file SkImageFilters.h.

63 {
64 if (optionalCrop) {
65 *this = *optionalCrop;
66 }
67 }

Member Function Documentation

◆ operator==()

bool SkImageFilters::CropRect::operator== ( const CropRect o) const
inline

Definition at line 70 of file SkImageFilters.h.

70 {
71 return this->has_value() == o.has_value() &&
72 (!this->has_value() || this->value() == *o);
73 }
uint8_t value

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