#include <dl_color_filter.h>
Definition at line 60 of file dl_color_filter.h.
◆ DlBlendColorFilter() [1/3]
◆ DlBlendColorFilter() [2/3]
Definition at line 64 of file dl_color_filter.h.
DlBlendColorFilter(DlColor color, DlBlendMode mode)
◆ DlBlendColorFilter() [3/3]
◆ asBlend()
◆ can_commute_with_opacity()
bool flutter::DlBlendColorFilter::can_commute_with_opacity |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from flutter::DlColorFilter.
Definition at line 90 of file dl_color_filter.cc.
90 {
91 switch (mode_) {
99 return true;
100
124 }
125}
@ kExclusion
rc = s + d - two(s*d), ra = kSrcOver
@ kSaturation
saturation of source with hue and luminosity of destination
@ kColorBurn
darken destination to reflect source
@ kLighten
rc = s + d - min(s*da, d*sa), ra = kSrcOver
@ kHue
hue of source with saturation and luminosity of destination
@ kMultiply
r = s*(1-da) + d*(1-sa) + s*d
@ kColorDodge
brighten destination to reflect source
@ kSrcOver
r = s + (1-sa)*d
@ kXor
r = s*(1-da) + d*(1-sa)
@ kLuminosity
luminosity of source with hue and saturation of destination
@ kSoftLight
lighten or darken, depending on source
@ kDifference
rc = s + d - 2*(min(s*da, d*sa)), ra = kSrcOver
@ kOverlay
multiply or screen, depending on destination
@ kSrcATop
r = s*da + d*(1-sa)
@ kDstATop
r = d*sa + s*(1-da)
@ kDstOver
r = d + (1-da)*s
@ kColor
hue and saturation of source with luminosity of destination
@ kHardLight
multiply or screen, depending on source
@ kDarken
rc = s + d - max(s*da, d*sa), ra = kSrcOver
constexpr bool isTransparent() const
◆ color()
DlColor flutter::DlBlendColorFilter::color |
( |
| ) |
const |
|
inline |
◆ equals_()
bool flutter::DlBlendColorFilter::equals_ |
( |
DlColorFilter const & |
other | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ Make()
Definition at line 11 of file dl_color_filter.cc.
12 {
15 return nullptr;
16 }
19 return nullptr;
20 }
23 }
24 break;
25 }
32 return nullptr;
33 }
34 break;
35 }
38 return nullptr;
39 }
40 break;
41 }
42 default:
43 break;
44 }
45 return std::make_shared<DlBlendColorFilter>(
color,
mode);
46}
constexpr bool isOpaque() const
◆ mode()
DlBlendMode flutter::DlBlendColorFilter::mode |
( |
| ) |
const |
|
inline |
◆ modifies_transparent_black()
bool flutter::DlBlendColorFilter::modifies_transparent_black |
( |
| ) |
const |
|
overridevirtual |
◆ shared()
std::shared_ptr< DlColorFilter > flutter::DlBlendColorFilter::shared |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ size()
size_t flutter::DlBlendColorFilter::size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ type()
The documentation for this class was generated from the following files: