Flutter Engine
The Flutter Engine
|
#include <paint.h>
Classes | |
struct | MaskBlurDescriptor |
Public Types | |
enum class | Style { kFill , kStroke } |
using | ImageFilterProc = std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, const Matrix &effect_transform, Entity::RenderingMode rendering_mode)> |
using | MaskFilterProc = std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, bool is_solid_color, const Matrix &effect_transform)> |
using | ColorSourceProc = std::function< std::shared_ptr< ColorSourceContents >()> |
Public Member Functions | |
std::shared_ptr< ColorFilter > | GetColorFilter () const |
std::shared_ptr< Contents > | WithFilters (std::shared_ptr< Contents > input) const |
Wrap this paint's configured filters to the given contents. More... | |
std::shared_ptr< Contents > | WithFiltersForSubpassTarget (std::shared_ptr< Contents > input, const Matrix &effect_transform=Matrix()) const |
Wrap this paint's configured filters to the given contents of subpass target. More... | |
std::shared_ptr< Contents > | CreateContentsForGeometry (const std::shared_ptr< Geometry > &geometry) const |
bool | HasColorFilter () const |
Whether this paint has a color filter that can apply opacity. More... | |
std::shared_ptr< Contents > | WithMaskBlur (std::shared_ptr< Contents > input, bool is_solid_color, const Matrix &ctm) const |
std::shared_ptr< FilterContents > | WithImageFilter (const FilterInput::Variant &input, const Matrix &effect_transform, Entity::RenderingMode rendering_mode) const |
Static Public Member Functions | |
static bool | CanApplyOpacityPeephole (const Paint &paint) |
Whether or not a save layer with the provided paint can perform the opacity peephole optimization. More... | |
Public Attributes | |
Color | color = Color::Black() |
ColorSource | color_source |
Scalar | stroke_width = 0.0 |
Cap | stroke_cap = Cap::kButt |
Join | stroke_join = Join::kMiter |
Scalar | stroke_miter = 4.0 |
Style | style = Style::kFill |
BlendMode | blend_mode = BlendMode::kSourceOver |
bool | invert_colors = false |
std::shared_ptr< ImageFilter > | image_filter |
std::shared_ptr< ColorFilter > | color_filter |
std::optional< MaskBlurDescriptor > | mask_blur_descriptor |
using impeller::Paint::ColorSourceProc = std::function<std::shared_ptr<ColorSourceContents>()> |
using impeller::Paint::ImageFilterProc = std::function<std::shared_ptr<FilterContents>( FilterInput::Ref, const Matrix& effect_transform, Entity::RenderingMode rendering_mode)> |
using impeller::Paint::MaskFilterProc = std::function<std::shared_ptr<FilterContents>( FilterInput::Ref, bool is_solid_color, const Matrix& effect_transform)> |
|
strong |
|
inlinestatic |
std::shared_ptr< Contents > Paint::CreateContentsForGeometry | ( | const std::shared_ptr< Geometry > & | geometry | ) | const |
Definition at line 30 of file paint.cc.
std::shared_ptr< ColorFilter > Paint::GetColorFilter | ( | ) | const |
Definition at line 222 of file paint.cc.
bool Paint::HasColorFilter | ( | ) | const |
Whether this paint has a color filter that can apply opacity.
Wrap this paint's configured filters to the given contents.
[in] | input | The contents to wrap with paint's filters. |
Definition at line 56 of file paint.cc.
std::shared_ptr< Contents > Paint::WithFiltersForSubpassTarget | ( | std::shared_ptr< Contents > | input, |
const Matrix & | effect_transform = Matrix() |
||
) | const |
Wrap this paint's configured filters to the given contents of subpass target.
[in] | input | The contents of subpass target to wrap with paint's filters. |
Definition at line 67 of file paint.cc.
std::shared_ptr< FilterContents > Paint::WithImageFilter | ( | const FilterInput::Variant & | input, |
const Matrix & | effect_transform, | ||
Entity::RenderingMode | rendering_mode | ||
) | const |
Definition at line 90 of file paint.cc.
std::shared_ptr< Contents > Paint::WithMaskBlur | ( | std::shared_ptr< Contents > | input, |
bool | is_solid_color, | ||
const Matrix & | ctm | ||
) | const |
BlendMode impeller::Paint::blend_mode = BlendMode::kSourceOver |
Color impeller::Paint::color = Color::Black() |
std::shared_ptr<ColorFilter> impeller::Paint::color_filter |
ColorSource impeller::Paint::color_source |
std::shared_ptr<ImageFilter> impeller::Paint::image_filter |
std::optional<MaskBlurDescriptor> impeller::Paint::mask_blur_descriptor |
Cap impeller::Paint::stroke_cap = Cap::kButt |
Join impeller::Paint::stroke_join = Join::kMiter |
Style impeller::Paint::style = Style::kFill |