 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_H_
6 #define FLUTTER_IMPELLER_ENTITY_ENTITY_H_
66 const std::optional<Snapshot>& snapshot,
68 uint32_t clip_depth = 0);
85 const std::optional<Rect>& current_clip_coverage)
const;
87 bool ShouldRender(
const std::optional<Rect>& clip_coverage)
const;
89 void SetContents(std::shared_ptr<Contents> contents);
91 const std::shared_ptr<Contents>&
GetContents()
const;
125 std::shared_ptr<Contents> contents_;
127 uint32_t clip_depth_ = 0u;
133 #endif // FLUTTER_IMPELLER_ENTITY_ENTITY_H_
void SetClipDepth(uint32_t clip_depth)
static constexpr BlendMode kLastPipelineBlendMode
void SetBlendMode(BlendMode blend_mode)
Capture & GetCapture() const
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
static bool IsBlendModeDestructive(BlendMode blend_mode)
Returns true if the blend mode is "destructive", meaning that even fully transparent source colors wo...
void IncrementStencilDepth(uint32_t increment)
void SetCapture(Capture capture) const
void SetContents(std::shared_ptr< Contents > contents)
bool CanInheritOpacity() const
bool ShouldRender(const std::optional< Rect > &clip_coverage) const
bool Render(const ContentContext &renderer, RenderPass &parent_pass) const
bool SetInheritedOpacity(Scalar alpha)
static constexpr BlendMode kLastAdvancedBlendMode
const std::shared_ptr< Contents > & GetContents() const
BlendMode GetBlendMode() const
Render passes encode render commands directed as one specific render target into an underlying comman...
uint32_t GetClipDepth() const
std::optional< Color > AsBackgroundColor(ISize target_size) const
std::optional< Rect > GetCoverage() const
void SetTransform(const Matrix &transform)
Set the global transform matrix for this Entity.
Contents::ClipCoverage GetClipCoverage(const std::optional< Rect > ¤t_clip_coverage) const
Scalar DeriveTextScale() const
static std::optional< Entity > FromSnapshot(const std::optional< Snapshot > &snapshot, BlendMode blend_mode=BlendMode::kSourceOver, uint32_t clip_depth=0)
Create an entity that can be used to render a given snapshot.
A 4x4 matrix using column-major storage.