Flutter Impeller
impeller::PathBuilder::RoundingRadii Struct Reference

#include <path_builder.h>

Public Member Functions

 RoundingRadii ()=default
 
 RoundingRadii (Scalar p_top_left, Scalar p_bottom_left, Scalar p_top_right, Scalar p_bottom_right)
 
bool AreAllZero () const
 

Public Attributes

Point top_left
 
Point bottom_left
 
Point top_right
 
Point bottom_right
 

Detailed Description

Definition at line 108 of file path_builder.h.

Constructor & Destructor Documentation

◆ RoundingRadii() [1/2]

impeller::PathBuilder::RoundingRadii::RoundingRadii ( )
default

◆ RoundingRadii() [2/2]

impeller::PathBuilder::RoundingRadii::RoundingRadii ( Scalar  p_top_left,
Scalar  p_bottom_left,
Scalar  p_top_right,
Scalar  p_bottom_right 
)
inline

Definition at line 116 of file path_builder.h.

120  : top_left(p_top_left, p_top_left),
121  bottom_left(p_bottom_left, p_bottom_left),
122  top_right(p_top_right, p_top_right),
123  bottom_right(p_bottom_right, p_bottom_right) {}

Member Function Documentation

◆ AreAllZero()

bool impeller::PathBuilder::RoundingRadii::AreAllZero ( ) const
inline

Definition at line 125 of file path_builder.h.

125  {
126  return top_left.IsZero() && //
127  bottom_left.IsZero() && //
128  top_right.IsZero() && //
130  }

References bottom_left, bottom_right, impeller::TPoint< T >::IsZero(), top_left, and top_right.

Referenced by impeller::PathBuilder::AddRoundedRect().

Member Data Documentation

◆ bottom_left

Point impeller::PathBuilder::RoundingRadii::bottom_left

◆ bottom_right

Point impeller::PathBuilder::RoundingRadii::bottom_right

◆ top_left

Point impeller::PathBuilder::RoundingRadii::top_left

◆ top_right

Point impeller::PathBuilder::RoundingRadii::top_right

The documentation for this struct was generated from the following file:
impeller::PathBuilder::RoundingRadii::bottom_right
Point bottom_right
Definition: path_builder.h:112
impeller::TPoint::IsZero
constexpr bool IsZero() const
Definition: point.h:227
impeller::PathBuilder::RoundingRadii::top_left
Point top_left
Definition: path_builder.h:109
impeller::PathBuilder::RoundingRadii::top_right
Point top_right
Definition: path_builder.h:111
impeller::PathBuilder::RoundingRadii::bottom_left
Point bottom_left
Definition: path_builder.h:110