#include <dl_paint.h>
Definition at line 47 of file dl_paint.h.
◆ DlPaint() [1/2]
flutter::DlPaint::DlPaint |
( |
| ) |
|
|
inline |
Definition at line 55 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 76 of file dl_paint.h.
76{
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 141 of file dl_paint.h.
141 {
142 return color_filter_;
143 }
◆ getColorFilterPtr()
const DlColorFilter * flutter::DlPaint::getColorFilterPtr |
( |
| ) |
const |
|
inline |
Definition at line 144 of file dl_paint.h.
144{ return color_filter_.get(); }
◆ getColorSource()
std::shared_ptr< const DlColorSource > flutter::DlPaint::getColorSource |
( |
| ) |
const |
|
inline |
Definition at line 128 of file dl_paint.h.
128 {
129 return color_source_;
130 }
◆ getColorSourcePtr()
const DlColorSource * flutter::DlPaint::getColorSourcePtr |
( |
| ) |
const |
|
inline |
Definition at line 131 of file dl_paint.h.
131{ return color_source_.get(); }
◆ getDrawStyle()
◆ getImageFilter()
std::shared_ptr< const DlImageFilter > flutter::DlPaint::getImageFilter |
( |
| ) |
const |
|
inline |
Definition at line 154 of file dl_paint.h.
154 {
155 return image_filter_;
156 }
◆ getImageFilterPtr()
const DlImageFilter * flutter::DlPaint::getImageFilterPtr |
( |
| ) |
const |
|
inline |
Definition at line 157 of file dl_paint.h.
157{ return image_filter_.get(); }
◆ getMaskFilter()
std::shared_ptr< const DlMaskFilter > flutter::DlPaint::getMaskFilter |
( |
| ) |
const |
|
inline |
Definition at line 167 of file dl_paint.h.
167 {
168 return mask_filter_;
169 }
◆ getMaskFilterPtr()
const DlMaskFilter * flutter::DlPaint::getMaskFilterPtr |
( |
| ) |
const |
|
inline |
Definition at line 170 of file dl_paint.h.
170{ return mask_filter_.get(); }
◆ getOpacity()
SkScalar flutter::DlPaint::getOpacity |
( |
| ) |
const |
|
inline |
Definition at line 78 of file dl_paint.h.
constexpr float getAlphaF() const
◆ getPathEffect()
std::shared_ptr< const DlPathEffect > flutter::DlPaint::getPathEffect |
( |
| ) |
const |
|
inline |
Definition at line 180 of file dl_paint.h.
180 {
181 return path_effect_;
182 }
◆ getPathEffectPtr()
const DlPathEffect * flutter::DlPaint::getPathEffectPtr |
( |
| ) |
const |
|
inline |
Definition at line 183 of file dl_paint.h.
183{ return path_effect_.get(); }
◆ getStrokeCap()
◆ getStrokeJoin()
◆ getStrokeMiter()
float flutter::DlPaint::getStrokeMiter |
( |
| ) |
const |
|
inline |
Definition at line 122 of file dl_paint.h.
122{ return stroke_miter_; }
◆ getStrokeWidth()
float flutter::DlPaint::getStrokeWidth |
( |
| ) |
const |
|
inline |
Definition at line 116 of file dl_paint.h.
116{ return stroke_width_; }
◆ isAntiAlias()
bool flutter::DlPaint::isAntiAlias |
( |
| ) |
const |
|
inline |
◆ isDefault()
bool flutter::DlPaint::isDefault |
( |
| ) |
const |
|
inline |
Definition at line 193 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 196 of file dl_paint.h.
196{ 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 Equals(path_effect_, other.path_effect_);
35}
bool Equals(const T *a, const T *b)
◆ setAlpha()
DlPaint & flutter::DlPaint::setAlpha |
( |
uint8_t |
alpha | ) |
|
|
inline |
Definition at line 77 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 59 of file dl_paint.h.
59 {
61 return *this;
62 }
◆ setBlendMode()
Definition at line 87 of file dl_paint.h.
87 {
89 return *this;
90 }
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 71 of file dl_paint.h.
71 {
73 return *this;
74 }
◆ setColorFilter() [1/2]
Definition at line 149 of file dl_paint.h.
149 {
150 color_filter_ = filter ? filter->shared() : nullptr;
151 return *this;
152 }
◆ setColorFilter() [2/2]
Definition at line 145 of file dl_paint.h.
145 {
146 color_filter_ = filter;
147 return *this;
148 }
◆ setColorSource() [1/2]
Definition at line 136 of file dl_paint.h.
136 {
138 return *this;
139 }
◆ setColorSource() [2/2]
Definition at line 132 of file dl_paint.h.
132 {
133 color_source_ = std::move(
source);
134 return *this;
135 }
◆ setDrawStyle()
Definition at line 95 of file dl_paint.h.
95 {
97 return *this;
98 }
◆ setImageFilter() [1/2]
Definition at line 162 of file dl_paint.h.
162 {
163 image_filter_ = filter ? filter->shared() : nullptr;
164 return *this;
165 }
◆ setImageFilter() [2/2]
Definition at line 158 of file dl_paint.h.
158 {
159 image_filter_ = filter;
160 return *this;
161 }
◆ setInvertColors()
DlPaint & flutter::DlPaint::setInvertColors |
( |
bool |
isInvertColors | ) |
|
|
inline |
Definition at line 65 of file dl_paint.h.
65 {
67 return *this;
68 }
bool isInvertColors() const
◆ setMaskFilter() [1/2]
Definition at line 175 of file dl_paint.h.
175 {
176 mask_filter_ = filter ? filter->shared() : nullptr;
177 return *this;
178 }
◆ setMaskFilter() [2/2]
Definition at line 171 of file dl_paint.h.
171 {
172 mask_filter_ = filter;
173 return *this;
174 }
◆ setOpacity()
Definition at line 79 of file dl_paint.h.
79 {
81 return *this;
82 }
#define SkScalarRoundToInt(x)
DlPaint & setAlpha(uint8_t alpha)
◆ setPathEffect() [1/2]
Definition at line 188 of file dl_paint.h.
188 {
189 path_effect_ = effect ? effect->shared() : nullptr;
190 return *this;
191 }
◆ setPathEffect() [2/2]
DlPaint & flutter::DlPaint::setPathEffect |
( |
const std::shared_ptr< DlPathEffect > & |
pathEffect | ) |
|
|
inline |
Definition at line 184 of file dl_paint.h.
184 {
185 path_effect_ = pathEffect;
186 return *this;
187 }
◆ setStrokeCap()
Definition at line 103 of file dl_paint.h.
103 {
105 return *this;
106 }
◆ setStrokeJoin()
Definition at line 111 of file dl_paint.h.
111 {
113 return *this;
114 }
SINT Vec< 2 *N, T > join(const Vec< N, T > &lo, const Vec< N, T > &hi)
◆ setStrokeMiter()
DlPaint & flutter::DlPaint::setStrokeMiter |
( |
float |
miter | ) |
|
|
inline |
Definition at line 123 of file dl_paint.h.
123 {
124 stroke_miter_ = miter;
125 return *this;
126 }
◆ setStrokeWidth()
DlPaint & flutter::DlPaint::setStrokeWidth |
( |
float |
width | ) |
|
|
inline |
Definition at line 117 of file dl_paint.h.
117 {
118 stroke_width_ =
width;
119 return *this;
120 }
◆ 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: