 |
Flutter Impeller
|
|
Go to the documentation of this file.
9 #include "flutter/fml/macros.h"
28 const Matrix& effect_transform,
30 using MaskFilterProc = std::function<std::shared_ptr<FilterContents>(
46 std::shared_ptr<ColorSourceContents> color_source_contents,
51 bool is_solid_color)
const;
75 std::shared_ptr<Contents>
WithFilters(std::shared_ptr<Contents> input)
const;
86 std::shared_ptr<Contents> input,
90 bool cover =
false)
const;
93 std::shared_ptr<Geometry> geometry)
const;
98 std::shared_ptr<Contents>
WithMaskBlur(std::shared_ptr<Contents> input,
99 bool is_solid_color)
const;
103 const Matrix& effect_transform,
107 std::shared_ptr<Contents> WithColorFilter(
108 std::shared_ptr<Contents> input,
112 std::shared_ptr<Contents> WithInvertFilter(
113 std::shared_ptr<Contents> input)
const;
std::shared_ptr< Contents > WithMaskBlur(std::shared_ptr< Contents > input, bool is_solid_color) const
std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, const Matrix &effect_transform, Entity::RenderingMode rendering_mode)> ImageFilterProc
std::shared_ptr< Contents > CreateContentsForEntity(const Path &path={}, bool cover=false) const
FilterContents::BlurStyle style
std::shared_ptr< FilterContents > CreateMaskBlur(std::shared_ptr< ColorSourceContents > color_source_contents, const std::shared_ptr< ColorFilter > &color_filter) const
std::shared_ptr< ColorFilter > color_filter
Paths are lightweight objects that describe a collection of linear, quadratic, or cubic segments....
std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, bool is_solid_color, const Matrix &effect_transform)> MaskFilterProc
In filters that use Gaussian distributions, "sigma" is a size of one standard deviation in terms of t...
std::shared_ptr< FilterContents > WithImageFilter(const FilterInput::Variant &input, const Matrix &effect_transform, Entity::RenderingMode rendering_mode) const
std::function< std::shared_ptr< ColorSourceContents >()> ColorSourceProc
static constexpr Color Black()
std::shared_ptr< Contents > CreateContentsForGeometry(std::shared_ptr< Geometry > geometry) const
bool HasColorFilter() const
Whether this paint has a color filter that can apply opacity.
std::optional< MaskBlurDescriptor > mask_blur_descriptor
std::shared_ptr< Contents > WithFilters(std::shared_ptr< Contents > input) const
Wrap this paint's configured filters to the given contents.
A 4x4 matrix using column-major storage.
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.
std::shared_ptr< ImageFilter > image_filter