#include <dl_paint.h>
Definition at line 46 of file dl_paint.h.
◆ DlPaint() [1/2]
flutter::DlPaint::DlPaint |
( |
| ) |
|
|
inline |
Definition at line 54 of file dl_paint.h.
static constexpr DlColor kBlack()
◆ DlPaint() [2/2]
flutter::DlPaint::DlPaint |
( |
DlColor |
color | ) |
|
|
explicit |
Definition at line 9 of file dl_paint.cc.
static constexpr float kDefaultWidth
unsigned is_invert_colors_
static constexpr float kDefaultMiter
◆ getAlpha()
uint8_t flutter::DlPaint::getAlpha |
( |
| ) |
const |
|
inline |
Definition at line 75 of file dl_paint.h.
75{
return color_.
argb() >> 24; }
constexpr uint32_t argb() const
◆ getBlendMode()
◆ getColor()
DlColor flutter::DlPaint::getColor |
( |
| ) |
const |
|
inline |
◆ getColorFilter()
std::shared_ptr< const DlColorFilter > flutter::DlPaint::getColorFilter |
( |
| ) |
const |
|
inline |
Definition at line 140 of file dl_paint.h.
140 {
141 return color_filter_;
142 }
◆ getColorFilterPtr()
const DlColorFilter * flutter::DlPaint::getColorFilterPtr |
( |
| ) |
const |
|
inline |
Definition at line 143 of file dl_paint.h.
143{ return color_filter_.get(); }
◆ getColorSource()
std::shared_ptr< const DlColorSource > flutter::DlPaint::getColorSource |
( |
| ) |
const |
|
inline |
Definition at line 127 of file dl_paint.h.
127 {
128 return color_source_;
129 }
◆ getColorSourcePtr()
const DlColorSource * flutter::DlPaint::getColorSourcePtr |
( |
| ) |
const |
|
inline |
Definition at line 130 of file dl_paint.h.
130{ return color_source_.get(); }
◆ getDrawStyle()
◆ getImageFilter()
std::shared_ptr< const DlImageFilter > flutter::DlPaint::getImageFilter |
( |
| ) |
const |
|
inline |
Definition at line 153 of file dl_paint.h.
153 {
154 return image_filter_;
155 }
◆ getImageFilterPtr()
const DlImageFilter * flutter::DlPaint::getImageFilterPtr |
( |
| ) |
const |
|
inline |
Definition at line 156 of file dl_paint.h.
156{ return image_filter_.get(); }
◆ getMaskFilter()
std::shared_ptr< const DlMaskFilter > flutter::DlPaint::getMaskFilter |
( |
| ) |
const |
|
inline |
Definition at line 166 of file dl_paint.h.
166 {
167 return mask_filter_;
168 }
◆ getMaskFilterPtr()
const DlMaskFilter * flutter::DlPaint::getMaskFilterPtr |
( |
| ) |
const |
|
inline |
Definition at line 169 of file dl_paint.h.
169{ return mask_filter_.get(); }
◆ getOpacity()
SkScalar flutter::DlPaint::getOpacity |
( |
| ) |
const |
|
inline |
Definition at line 77 of file dl_paint.h.
constexpr float getAlphaF() const
◆ getStrokeCap()
◆ getStrokeJoin()
◆ getStrokeMiter()
float flutter::DlPaint::getStrokeMiter |
( |
| ) |
const |
|
inline |
Definition at line 121 of file dl_paint.h.
121{ return stroke_miter_; }
◆ getStrokeWidth()
float flutter::DlPaint::getStrokeWidth |
( |
| ) |
const |
|
inline |
Definition at line 115 of file dl_paint.h.
115{ return stroke_width_; }
◆ isAntiAlias()
bool flutter::DlPaint::isAntiAlias |
( |
| ) |
const |
|
inline |
◆ isDefault()
bool flutter::DlPaint::isDefault |
( |
| ) |
const |
|
inline |
Definition at line 179 of file dl_paint.h.
static const DlPaint kDefault
◆ isInvertColors()
bool flutter::DlPaint::isInvertColors |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool flutter::DlPaint::operator!= |
( |
DlPaint const & |
other | ) |
const |
|
inline |
Definition at line 182 of file dl_paint.h.
182{ return !(*this == other); }
◆ operator==()
bool flutter::DlPaint::operator== |
( |
DlPaint const & |
other | ) |
const |
Definition at line 20 of file dl_paint.cc.
20 {
27 color_ == other.color_ &&
28 stroke_width_ == other.stroke_width_ &&
29 stroke_miter_ == other.stroke_miter_ &&
30 Equals(color_source_, other.color_source_) &&
31 Equals(color_filter_, other.color_filter_) &&
32 Equals(image_filter_, other.image_filter_) &&
33 Equals(mask_filter_, other.mask_filter_);
34}
bool Equals(const T *a, const T *b)
◆ setAlpha()
DlPaint & flutter::DlPaint::setAlpha |
( |
uint8_t |
alpha | ) |
|
|
inline |
Definition at line 76 of file dl_paint.h.
DlPaint & setColor(DlColor color)
constexpr DlColor withAlpha(uint8_t alpha) const
◆ setAntiAlias()
DlPaint & flutter::DlPaint::setAntiAlias |
( |
bool |
isAntiAlias | ) |
|
|
inline |
Definition at line 58 of file dl_paint.h.
58 {
60 return *this;
61 }
◆ setBlendMode()
Definition at line 86 of file dl_paint.h.
86 {
88 return *this;
89 }
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
◆ setColor()
Definition at line 70 of file dl_paint.h.
70 {
72 return *this;
73 }
◆ setColorFilter() [1/2]
Definition at line 148 of file dl_paint.h.
148 {
149 color_filter_ = filter ? filter->shared() : nullptr;
150 return *this;
151 }
◆ setColorFilter() [2/2]
Definition at line 144 of file dl_paint.h.
144 {
145 color_filter_ = filter;
146 return *this;
147 }
◆ setColorSource() [1/2]
Definition at line 135 of file dl_paint.h.
135 {
137 return *this;
138 }
◆ setColorSource() [2/2]
Definition at line 131 of file dl_paint.h.
131 {
132 color_source_ = std::move(
source);
133 return *this;
134 }
◆ setDrawStyle()
Definition at line 94 of file dl_paint.h.
94 {
96 return *this;
97 }
◆ setImageFilter() [1/2]
Definition at line 161 of file dl_paint.h.
161 {
162 image_filter_ = filter ? filter->shared() : nullptr;
163 return *this;
164 }
◆ setImageFilter() [2/2]
Definition at line 157 of file dl_paint.h.
157 {
158 image_filter_ = filter;
159 return *this;
160 }
◆ setInvertColors()
DlPaint & flutter::DlPaint::setInvertColors |
( |
bool |
isInvertColors | ) |
|
|
inline |
Definition at line 64 of file dl_paint.h.
64 {
66 return *this;
67 }
bool isInvertColors() const
◆ setMaskFilter() [1/2]
Definition at line 174 of file dl_paint.h.
174 {
175 mask_filter_ = filter ? filter->shared() : nullptr;
176 return *this;
177 }
◆ setMaskFilter() [2/2]
Definition at line 170 of file dl_paint.h.
170 {
171 mask_filter_ = filter;
172 return *this;
173 }
◆ setOpacity()
Definition at line 78 of file dl_paint.h.
78 {
80 return *this;
81 }
#define SkScalarRoundToInt(x)
DlPaint & setAlpha(uint8_t alpha)
◆ setStrokeCap()
Definition at line 102 of file dl_paint.h.
102 {
104 return *this;
105 }
◆ setStrokeJoin()
Definition at line 110 of file dl_paint.h.
110 {
112 return *this;
113 }
static SkString join(const CommandLineFlags::StringArray &)
◆ setStrokeMiter()
DlPaint & flutter::DlPaint::setStrokeMiter |
( |
float |
miter | ) |
|
|
inline |
Definition at line 122 of file dl_paint.h.
122 {
123 stroke_miter_ = miter;
124 return *this;
125 }
◆ setStrokeWidth()
DlPaint & flutter::DlPaint::setStrokeWidth |
( |
float |
width | ) |
|
|
inline |
Definition at line 116 of file dl_paint.h.
116 {
117 stroke_width_ =
width;
118 return *this;
119 }
◆ blend_mode_
unsigned flutter::DlPaint::blend_mode_ |
◆ draw_style_
unsigned flutter::DlPaint::draw_style_ |
◆ is_anti_alias_
unsigned flutter::DlPaint::is_anti_alias_ |
◆ is_invert_colors_
unsigned flutter::DlPaint::is_invert_colors_ |
◆ kDefault
const DlPaint flutter::DlPaint::kDefault |
|
static |
◆ kDefaultColor
◆ kDefaultMiter
constexpr float flutter::DlPaint::kDefaultMiter = 4.0 |
|
staticconstexpr |
◆ kDefaultWidth
constexpr float flutter::DlPaint::kDefaultWidth = 0.0 |
|
staticconstexpr |
◆ stroke_cap_
unsigned flutter::DlPaint::stroke_cap_ |
◆ stroke_join_
unsigned flutter::DlPaint::stroke_join_ |
The documentation for this class was generated from the following files: