Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
flutter::DisplayListSpecialGeometryFlags Class Reference

#include <dl_op_flags.h>

Inheritance diagram for flutter::DisplayListSpecialGeometryFlags:
flutter::DisplayListFlagsBase

Public Member Functions

constexpr bool may_have_end_caps () const
 The geometry may have segments that end without closing the path. More...
 
constexpr bool may_have_joins () const
 The geometry may have segments connect non-continuously. More...
 
constexpr bool butt_cap_becomes_square () const
 Mainly for drawPoints(PointMode) where Butt caps are rendered as squares. More...
 
constexpr bool may_have_diagonal_caps () const
 
constexpr bool may_have_acute_joins () const
 

Friends

class DisplayListAttributeFlags
 

Detailed Description

An attribute class for advertising specific properties of a geometric attribute that can affect the computation of the bounds of the primitive.

Definition at line 122 of file dl_op_flags.h.

Member Function Documentation

◆ butt_cap_becomes_square()

constexpr bool flutter::DisplayListSpecialGeometryFlags::butt_cap_becomes_square ( ) const
inlineconstexpr

Mainly for drawPoints(PointMode) where Butt caps are rendered as squares.

Definition at line 131 of file dl_op_flags.h.

131 {
133 }
constexpr bool has_any(int qFlags) const
Definition: dl_op_flags.h:112
static constexpr int kButtCapIsSquare
Definition: dl_op_flags.h:54

◆ may_have_acute_joins()

constexpr bool flutter::DisplayListSpecialGeometryFlags::may_have_acute_joins ( ) const
inlineconstexpr

The geometry may have segments that meet at vertices at an acute angle such that the miter joins will extend further than the default |strokeWidth * 0.5| margin around the geometry.

Definition at line 146 of file dl_op_flags.h.

146 {
148 }
static constexpr int kMayHaveAcuteJoins
Definition: dl_op_flags.h:75

◆ may_have_diagonal_caps()

constexpr bool flutter::DisplayListSpecialGeometryFlags::may_have_diagonal_caps ( ) const
inlineconstexpr

The geometry may have segments that end on a diagonal such that their end caps extend further than the default |strokeWidth * 0.5| margin around the geometry.

Definition at line 138 of file dl_op_flags.h.

138 {
140 }
static constexpr int kMayHaveDiagonalCaps
Definition: dl_op_flags.h:64

◆ may_have_end_caps()

constexpr bool flutter::DisplayListSpecialGeometryFlags::may_have_end_caps ( ) const
inlineconstexpr

The geometry may have segments that end without closing the path.

Definition at line 125 of file dl_op_flags.h.

125{ return has_any(kMayHaveCaps); }
static constexpr int kMayHaveCaps
Definition: dl_op_flags.h:52

◆ may_have_joins()

constexpr bool flutter::DisplayListSpecialGeometryFlags::may_have_joins ( ) const
inlineconstexpr

The geometry may have segments connect non-continuously.

Definition at line 128 of file dl_op_flags.h.

128{ return has_any(kMayHaveJoins); }
static constexpr int kMayHaveJoins
Definition: dl_op_flags.h:53

Friends And Related Function Documentation

◆ DisplayListAttributeFlags

friend class DisplayListAttributeFlags
friend

Definition at line 160 of file dl_op_flags.h.


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