Flutter Impeller
impeller::StrokeParameters Struct Reference

A structure to store all of the parameters related to stroking a path or basic geometry object. More...

#include <stroke_parameters.h>

Public Member Functions

constexpr bool operator== (const StrokeParameters &parameters) const
 
constexpr bool operator!= (const StrokeParameters &parameters) const
 

Public Attributes

Scalar width = 0.0f
 
Cap cap = Cap::kButt
 
Join join = Join::kMiter
 
Scalar miter_limit = 4.0f
 

Detailed Description

A structure to store all of the parameters related to stroking a path or basic geometry object.

Definition at line 28 of file stroke_parameters.h.

Member Function Documentation

◆ operator!=()

constexpr bool impeller::StrokeParameters::operator!= ( const StrokeParameters parameters) const
inlineconstexpr

Definition at line 39 of file stroke_parameters.h.

39  {
40  return !(*this == parameters);
41  }

◆ operator==()

constexpr bool impeller::StrokeParameters::operator== ( const StrokeParameters parameters) const
inlineconstexpr

Definition at line 34 of file stroke_parameters.h.

34  {
35  return parameters.width == width && parameters.cap == cap &&
36  parameters.join == join && parameters.miter_limit == miter_limit;
37  }

References cap, join, miter_limit, and width.

Member Data Documentation

◆ cap

◆ join

◆ miter_limit

◆ width


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