Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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.
 
constexpr bool may_have_joins () const
 The geometry may have segments connect non-continuously.
 
constexpr bool butt_cap_becomes_square () const
 Mainly for drawPoints(PointMode) where Butt caps are rendered as squares.
 
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 124 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 133 of file dl_op_flags.h.

133 {
135 }
constexpr bool has_any(int qFlags) const
static constexpr int kButtCapIsSquare
Definition dl_op_flags.h:55

◆ 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 148 of file dl_op_flags.h.

148 {
150 }
static constexpr int kMayHaveAcuteJoins
Definition dl_op_flags.h:76

◆ 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 140 of file dl_op_flags.h.

140 {
142 }
static constexpr int kMayHaveDiagonalCaps
Definition dl_op_flags.h:65

◆ 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 127 of file dl_op_flags.h.

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

◆ may_have_joins()

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

The geometry may have segments connect non-continuously.

Definition at line 130 of file dl_op_flags.h.

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

Friends And Related Symbol Documentation

◆ DisplayListAttributeFlags

friend class DisplayListAttributeFlags
friend

Definition at line 162 of file dl_op_flags.h.


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