#include <dl_color.h>
Definition at line 12 of file dl_color.h.
◆ DlColor() [1/2]
constexpr flutter::DlColor::DlColor |
( |
| ) |
|
|
inlineconstexpr |
◆ DlColor() [2/2]
constexpr flutter::DlColor::DlColor |
( |
uint32_t |
argb | ) |
|
|
inlineexplicitconstexpr |
Definition at line 15 of file dl_color.h.
constexpr uint32_t argb() const
◆ argb()
constexpr uint32_t flutter::DlColor::argb |
( |
| ) |
const |
|
inlineconstexpr |
◆ getAlpha()
constexpr int flutter::DlColor::getAlpha |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 42 of file dl_color.h.
42{ return argb_ >> 24; }
◆ getAlphaF()
constexpr float flutter::DlColor::getAlphaF |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 47 of file dl_color.h.
constexpr int getAlpha() const
◆ getBlue()
constexpr int flutter::DlColor::getBlue |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 45 of file dl_color.h.
45{ return argb_ & 0xFF; }
◆ getBlueF()
constexpr float flutter::DlColor::getBlueF |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 50 of file dl_color.h.
constexpr int getBlue() const
◆ getGreen()
constexpr int flutter::DlColor::getGreen |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 44 of file dl_color.h.
44{ return (argb_ >> 8) & 0xFF; }
◆ getGreenF()
constexpr float flutter::DlColor::getGreenF |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 49 of file dl_color.h.
constexpr int getGreen() const
◆ getRed()
constexpr int flutter::DlColor::getRed |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 43 of file dl_color.h.
43{ return (argb_ >> 16) & 0xFF; }
◆ getRedF()
constexpr float flutter::DlColor::getRedF |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 48 of file dl_color.h.
constexpr int getRed() const
◆ isOpaque()
constexpr bool flutter::DlColor::isOpaque |
( |
| ) |
const |
|
inlineconstexpr |
◆ isTransparent()
constexpr bool flutter::DlColor::isTransparent |
( |
| ) |
const |
|
inlineconstexpr |
◆ kAliceBlue()
static constexpr DlColor flutter::DlColor::kAliceBlue |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kBlack()
static constexpr DlColor flutter::DlColor::kBlack |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kBlue()
static constexpr DlColor flutter::DlColor::kBlue |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kCyan()
static constexpr DlColor flutter::DlColor::kCyan |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kDarkGrey()
static constexpr DlColor flutter::DlColor::kDarkGrey |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kFuchsia()
static constexpr DlColor flutter::DlColor::kFuchsia |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kGreen()
static constexpr DlColor flutter::DlColor::kGreen |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kLightGrey()
static constexpr DlColor flutter::DlColor::kLightGrey |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kMagenta()
static constexpr DlColor flutter::DlColor::kMagenta |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kMaroon()
static constexpr DlColor flutter::DlColor::kMaroon |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kMidGrey()
static constexpr DlColor flutter::DlColor::kMidGrey |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kRed()
static constexpr DlColor flutter::DlColor::kRed |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kSkyBlue()
static constexpr DlColor flutter::DlColor::kSkyBlue |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kTransparent()
static constexpr DlColor flutter::DlColor::kTransparent |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kWhite()
static constexpr DlColor flutter::DlColor::kWhite |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ kYellow()
static constexpr DlColor flutter::DlColor::kYellow |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ modulateOpacity()
constexpr DlColor flutter::DlColor::modulateOpacity |
( |
float |
opacity | ) |
const |
|
inlineconstexpr |
Definition at line 76 of file dl_color.h.
76 {
78 : opacity >= 1 ? *this
80 }
static void round(SkPoint *p)
constexpr DlColor withAlpha(uint8_t alpha) const
◆ operator!=() [1/2]
bool flutter::DlColor::operator!= |
( |
DlColor const & |
other | ) |
const |
|
inline |
Definition at line 85 of file dl_color.h.
85{ return argb_ != other.argb_; }
◆ operator!=() [2/2]
bool flutter::DlColor::operator!= |
( |
uint32_t const & |
other | ) |
const |
|
inline |
Definition at line 87 of file dl_color.h.
87{ return argb_ != other; }
◆ operator==() [1/2]
bool flutter::DlColor::operator== |
( |
DlColor const & |
other | ) |
const |
|
inline |
Definition at line 84 of file dl_color.h.
84{ return argb_ == other.argb_; }
◆ operator==() [2/2]
bool flutter::DlColor::operator== |
( |
uint32_t const & |
other | ) |
const |
|
inline |
Definition at line 86 of file dl_color.h.
86{ return argb_ == other; }
◆ premultipliedArgb()
constexpr uint32_t flutter::DlColor::premultipliedArgb |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 52 of file dl_color.h.
52 {
54 return argb_;
55 }
57 return (argb_ & 0xFF000000) |
61 }
constexpr float getAlphaF() const
constexpr float getRedF() const
constexpr float getBlueF() const
constexpr float getGreenF() const
constexpr bool isOpaque() const
◆ toAlpha()
static constexpr uint8_t flutter::DlColor::toAlpha |
( |
SkScalar |
opacity | ) |
|
|
inlinestaticconstexpr |
Definition at line 17 of file dl_color.h.
17{ return toC(opacity); }
◆ toOpacity()
static constexpr SkScalar flutter::DlColor::toOpacity |
( |
uint8_t |
alpha | ) |
|
|
inlinestaticconstexpr |
◆ withAlpha()
constexpr DlColor flutter::DlColor::withAlpha |
( |
uint8_t |
alpha | ) |
const |
|
inlineconstexpr |
Definition at line 63 of file dl_color.h.
63 {
64 return DlColor((argb_ & 0x00FFFFFF) | (alpha << 24));
65 }
◆ withBlue()
constexpr DlColor flutter::DlColor::withBlue |
( |
uint8_t |
blue | ) |
const |
|
inlineconstexpr |
Definition at line 72 of file dl_color.h.
72 {
73 return DlColor((argb_ & 0xFFFFFF00) | (blue << 0));
74 }
◆ withGreen()
constexpr DlColor flutter::DlColor::withGreen |
( |
uint8_t |
green | ) |
const |
|
inlineconstexpr |
Definition at line 69 of file dl_color.h.
69 {
70 return DlColor((argb_ & 0xFFFF00FF) | (green << 8));
71 }
◆ withRed()
constexpr DlColor flutter::DlColor::withRed |
( |
uint8_t |
red | ) |
const |
|
inlineconstexpr |
Definition at line 66 of file dl_color.h.
66 {
67 return DlColor((argb_ & 0xFF00FFFF) | (red << 16));
68 }
The documentation for this struct was generated from the following file: