Flutter Engine
 
Loading...
Searching...
No Matches
flutter::DisplayListAttributeFlags Class Reference

#include <dl_op_flags.h>

Inheritance diagram for flutter::DisplayListAttributeFlags:
flutter::DisplayListFlagsBase

Public Member Functions

const DisplayListSpecialGeometryFlags GeometryFlags (bool is_stroked) const
 
constexpr bool ignores_paint () const
 
constexpr bool applies_anti_alias () const
 
constexpr bool applies_color () const
 
constexpr bool applies_alpha () const
 
constexpr bool applies_alpha_or_color () const
 
constexpr bool applies_style () const
 
constexpr bool applies_shader () const
 
constexpr bool applies_color_filter () const
 
constexpr bool applies_blend () const
 The primitive honors the DlBlendMode.
 
constexpr bool applies_mask_filter () const
 
constexpr bool applies_image_filter () const
 
constexpr bool is_geometric () const
 
constexpr bool always_stroked () const
 
constexpr bool is_stroked (DlDrawStyle style=DlDrawStyle::kStroke) const
 
constexpr bool is_flood () const
 
constexpr bool operator== (DisplayListAttributeFlags const &other) const
 

Friends

class DisplayListOpFlags
 

Detailed Description

Definition at line 163 of file dl_op_flags.h.

Member Function Documentation

◆ always_stroked()

constexpr bool flutter::DisplayListAttributeFlags::always_stroked ( ) const
inlineconstexpr

Definition at line 209 of file dl_op_flags.h.

209{ return has_any(kIsStrokedGeometry); }
constexpr bool has_any(int qFlags) const
static constexpr int kIsStrokedGeometry
Definition dl_op_flags.h:36

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kIsStrokedGeometry.

Referenced by flutter::testing::AnnotateAttributes().

◆ applies_alpha()

constexpr bool flutter::DisplayListAttributeFlags::applies_alpha ( ) const
inlineconstexpr

Definition at line 173 of file dl_op_flags.h.

173{ return has_any(kUsesAlpha); }
static constexpr int kUsesAlpha
Definition dl_op_flags.h:83

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kUsesAlpha.

◆ applies_alpha_or_color()

constexpr bool flutter::DisplayListAttributeFlags::applies_alpha_or_color ( ) const
inlineconstexpr

◆ applies_anti_alias()

constexpr bool flutter::DisplayListAttributeFlags::applies_anti_alias ( ) const
inlineconstexpr

◆ applies_blend()

constexpr bool flutter::DisplayListAttributeFlags::applies_blend ( ) const
inlineconstexpr

The primitive honors the DlBlendMode.

Definition at line 198 of file dl_op_flags.h.

198{ return has_any(kUsesBlend); }
static constexpr int kUsesBlend
Definition dl_op_flags.h:85

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kUsesBlend.

Referenced by flutter::Paint::paint(), and flutter::testing::TestParameters::should_match().

◆ applies_color()

constexpr bool flutter::DisplayListAttributeFlags::applies_color ( ) const
inlineconstexpr

◆ applies_color_filter()

constexpr bool flutter::DisplayListAttributeFlags::applies_color_filter ( ) const
inlineconstexpr

The primitive honors the current DlColorFilter, including the related attribute InvertColors

Definition at line 194 of file dl_op_flags.h.

194 {
196 }
static constexpr int kUsesColorFilter
Definition dl_op_flags.h:87

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kUsesColorFilter.

Referenced by flutter::Paint::paint(), and flutter::testing::TestParameters::should_match().

◆ applies_image_filter()

constexpr bool flutter::DisplayListAttributeFlags::applies_image_filter ( ) const
inlineconstexpr

◆ applies_mask_filter()

constexpr bool flutter::DisplayListAttributeFlags::applies_mask_filter ( ) const
inlineconstexpr

The primitive honors the DlMaskFilter whether set using the filter object or using the convenience method |setMaskBlurFilter|

Definition at line 201 of file dl_op_flags.h.

201 {
202 return has_any(kUsesMaskFilter);
203 }
static constexpr int kUsesMaskFilter
Definition dl_op_flags.h:88

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kUsesMaskFilter.

Referenced by flutter::Paint::paint(), and flutter::testing::TestParameters::should_match().

◆ applies_shader()

constexpr bool flutter::DisplayListAttributeFlags::applies_shader ( ) const
inlineconstexpr

The primitive can use any of the stroke attributes, such as StrokeWidth, StrokeMiter, StrokeCap, or StrokeJoin. This method will return if the primitive is defined as one that strokes its geometry (such as |drawLine|) or if it is defined as one that honors the Style attribute. If the Style attribute is known then a more accurate answer can be returned from the |is_stroked| method by supplying the actual setting of the style.

Definition at line 191 of file dl_op_flags.h.

191{ return has_any(kUsesShader); }
static constexpr int kUsesShader
Definition dl_op_flags.h:86

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kUsesShader.

Referenced by flutter::Paint::paint(), flutter::testing::TestParameters::should_match(), and flutter::testing::TestParameters::uses_gradient().

◆ applies_style()

constexpr bool flutter::DisplayListAttributeFlags::applies_style ( ) const
inlineconstexpr

The primitive dynamically determines whether it is a stroke or fill operation (or both) based on the setting of the |Style| attribute.

Definition at line 180 of file dl_op_flags.h.

180{ return has_any(kIsDrawnGeometry); }
static constexpr int kIsDrawnGeometry
Definition dl_op_flags.h:41

References flutter::DisplayListFlagsBase::has_any(), and flutter::DisplayListFlags::kIsDrawnGeometry.

Referenced by flutter::testing::AnnotateAttributes(), and flutter::Paint::paint().

◆ GeometryFlags()

const DisplayListSpecialGeometryFlags flutter::DisplayListAttributeFlags::GeometryFlags ( bool  is_stroked) const
inline

Definition at line 165 of file dl_op_flags.h.

165 {
166 return special_flags_;
167 }

Referenced by flutter::testing::TestParameters::lineAdjust(), and flutter::testing::TestParameters::should_match().

◆ ignores_paint()

constexpr bool flutter::DisplayListAttributeFlags::ignores_paint ( ) const
inlineconstexpr

◆ is_flood()

constexpr bool flutter::DisplayListAttributeFlags::is_flood ( ) const
inlineconstexpr

◆ is_geometric()

constexpr bool flutter::DisplayListAttributeFlags::is_geometric ( ) const
inlineconstexpr

◆ is_stroked()

constexpr bool flutter::DisplayListAttributeFlags::is_stroked ( DlDrawStyle  style = DlDrawStyle::kStroke) const
inlineconstexpr

◆ operator==()

constexpr bool flutter::DisplayListAttributeFlags::operator== ( DisplayListAttributeFlags const &  other) const
inlineconstexpr

Definition at line 217 of file dl_op_flags.h.

217 {
218 return flags_ == other.flags_;
219 }

References flutter::DisplayListFlagsBase::flags_.

Friends And Related Symbol Documentation

◆ DisplayListOpFlags

friend class DisplayListOpFlags
friend

Definition at line 246 of file dl_op_flags.h.


The documentation for this class was generated from the following file: