12 std::optional<StrokeParameters> stroke) {
18 std::optional<StrokeParameters> adjusted_stroke =
28 .stroke = adjusted_stroke};
35 std::optional<StrokeParameters> stroke) {
51 std::optional<StrokeParameters> stroke) {
64 std::optional<StrokeParameters> stroke) {
73 radii.bottom_left.width,
radii.top_left.width)};
80 std::optional<StrokeParameters> stroke) {
#define FML_DCHECK(condition)
A structure to store all of the parameters related to stroking a path or basic geometry object.
constexpr TPoint Abs() const
constexpr TSize< Type > GetSize() const
Returns the size of the rectangle which may be negative in either width or height and may have been c...
constexpr Point GetCenter() const
Get the center point as a |Point|.
Parameters for rendering shapes using the UberSDF shader.
Color color
The color used for filling or stroking the shape.
static UberSDFParameters MakeCircle(Color color, const Point ¢er, Scalar radius, std::optional< StrokeParameters > stroke)
Creates UberSDFParameters for a circle.
static UberSDFParameters MakeOval(Color color, const Rect &bounds, std::optional< StrokeParameters > stroke)
Creates UberSDFParameters for an Oval.
Type type
The type of shape to render.
Point center
The center point of the shape in local coordinates.
static UberSDFParameters MakeRoundedRect(Color color, const Rect &rect, const RoundingRadii &radii, std::optional< StrokeParameters > stroke)
Creates UberSDFParameters for a rounded rectangle.
@ kRoundedSuperellipseSymmetric
static UberSDFParameters MakeRoundedSuperellipse(Color color, const Rect &bounds, const RoundSuperellipseParam &round_superellipse_params, std::optional< StrokeParameters > stroke)
Creates UberSDFParameters for an asymmetric round superellipse.
std::optional< StrokeParameters > stroke
The stroke parameters. If std::nullopt, the shape is filled.
static UberSDFParameters MakeRect(Color color, const Rect &rect, std::optional< StrokeParameters > stroke)
Creates UberSDFParameters for a rectangle.