Skip to main content

StrokeStyle

The StrokeStyle struct represents the properties of a stroke used in rendering, such as the width, offset, and color.

#include <interface/TellusimTypes.h>

Constructors

StrokeStyle()
explicit StrokeStyle(float32_t width)
explicit StrokeStyle(const Color &color)
StrokeStyle(float32_t width, float32_t offset)
StrokeStyle(float32_t width, const Color &color)
StrokeStyle(float32_t width, float32_t offset, const Color &color)

Methods

Check style.

bool isValid() const
operator bool() const

Variables

TypeNameValueDescription
float32_twidth0.0fStroke width.
float32_toffset0.0fStroke offset.
ColorcolorColor::whiteStroke color.