| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
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)
| RoundingRadii (Scalar radius)
| RoundingRadii (Point radii)
| RoundingRadii (Size radii)
bool | AreAllZero () const

## Public Attributes
Point | top_left
Point | bottom_left
Point | top_right
Point | bottom_right

## Detailed Description

Definition at line 107 of file path_builder.h.

## Constructor & Destructor Documentation

## ◆ RoundingRadii() [1/5]

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

## ◆ RoundingRadii() [2/5]

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

Definition at line 115 of file path_builder.h.

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

## ◆ RoundingRadii() [3/5]

impeller::PathBuilder::RoundingRadii::RoundingRadii | ( | Scalar | radius | ) |
| inline explicit

Definition at line 124 of file path_builder.h.

125 : top_left(radius, radius),
126 bottom_left(radius, radius),
127 top_right(radius, radius),
128 bottom_right(radius, radius) {}

## ◆ RoundingRadii() [4/5]

impeller::PathBuilder::RoundingRadii::RoundingRadii | ( | Point | radii | ) |
| inline explicit

Definition at line 130 of file path_builder.h.

131 : top_left(radii),
132 bottom_left(radii),
133 top_right(radii),
134 bottom_right(radii) {}

## ◆ RoundingRadii() [5/5]

impeller::PathBuilder::RoundingRadii::RoundingRadii | ( | Size | radii | ) |
| inline explicit

Definition at line 136 of file path_builder.h.

137 : top_left(radii),
138 bottom_left(radii),
139 top_right(radii),
140 bottom_right(radii) {}

## Member Function Documentation

## ◆ AreAllZero()

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

Definition at line 142 of file path_builder.h.

142 {
143 return top_left.IsZero() && //
144 bottom_left.IsZero() && //
145 top_right.IsZero() && //
146 bottom_right.IsZero();
147 }

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

Definition at line 109 of file path_builder.h.

Referenced by impeller::PathBuilder::AddRoundedRect(), AreAllZero(), impeller::testing::TEST_P(), and impeller::skia_conversions::ToRoundingRadii().

## ◆ bottom_right

Point impeller::PathBuilder::RoundingRadii::bottom_right

Definition at line 111 of file path_builder.h.

Referenced by impeller::PathBuilder::AddRoundedRect(), AreAllZero(), impeller::testing::TEST_P(), and impeller::skia_conversions::ToRoundingRadii().

## ◆ top_left

Point impeller::PathBuilder::RoundingRadii::top_left

Definition at line 108 of file path_builder.h.

Referenced by impeller::PathBuilder::AddRoundedRect(), AreAllZero(), impeller::testing::TEST_P(), and impeller::skia_conversions::ToRoundingRadii().

## ◆ top_right

Point impeller::PathBuilder::RoundingRadii::top_right

Definition at line 110 of file path_builder.h.

Referenced by impeller::PathBuilder::AddRoundedRect(), AreAllZero(), impeller::testing::TEST_P(), and impeller::skia_conversions::ToRoundingRadii().

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

- impeller/geometry/path_builder.h

impeller::PathBuilder::RoundingRadii::bottom_right
Point bottom_right
Definition: path_builder.h:111
impeller::TPoint::IsZero
constexpr bool IsZero() const
Definition: point.h:229
impeller::PathBuilder::RoundingRadii::top_left
Point top_left
Definition: path_builder.h:108
impeller::PathBuilder::RoundingRadii::top_right
Point top_right
Definition: path_builder.h:110
impeller::PathBuilder::RoundingRadii::bottom_left
Point bottom_left
Definition: path_builder.h:109