Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
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. More...
 
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
Definition: dl_op_flags.h:112
static constexpr int kIsStrokedGeometry
Definition: dl_op_flags.h:36

◆ 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

◆ applies_alpha_or_color()

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

Definition at line 174 of file dl_op_flags.h.

174 {
175 return has_any(kUsesAlpha | kUsesColor);
176 }
static constexpr int kUsesColor
Definition: dl_op_flags.h:84

◆ applies_anti_alias()

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

Definition at line 171 of file dl_op_flags.h.

171{ return has_any(kUsesAntiAlias); }
static constexpr int kUsesAntiAlias
Definition: dl_op_flags.h:82

◆ 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

◆ applies_color()

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

Definition at line 172 of file dl_op_flags.h.

172{ return has_any(kUsesColor); }

◆ 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

◆ applies_image_filter()

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

Definition at line 204 of file dl_op_flags.h.

204 {
206 }
static constexpr int kUsesImageFilter
Definition: dl_op_flags.h:89

◆ 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

◆ 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

◆ 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

◆ 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 }

◆ ignores_paint()

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

Definition at line 169 of file dl_op_flags.h.

169{ return has_any(kIgnoresPaint); }
static constexpr int kIgnoresPaint
Definition: dl_op_flags.h:98

◆ is_flood()

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

Definition at line 215 of file dl_op_flags.h.

215{ return has_any(kFloodsSurface); }
static constexpr int kFloodsSurface
Definition: dl_op_flags.h:50

◆ is_geometric()

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

Definition at line 208 of file dl_op_flags.h.

208{ return has_any(kIsAnyGeometryMask); }
static constexpr int kIsAnyGeometryMask
Definition: dl_op_flags.h:43

◆ is_stroked()

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

Definition at line 210 of file dl_op_flags.h.

210 {
211 return (has_any(kIsStrokedGeometry) ||
213 }
@ kFill
fills interior of shapes

◆ 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 }

Friends And Related Function 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: