JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

Support Class for JKQTBasePlotter, which summarizes a fill style. More...

#include <jkqtpgraphsbasestyle.h>

Public Member Functions

 JKQTFillStyleSummmary (Qt::BrushStyle style=Qt::SolidPattern, const QGradient &grad=QGradient())
 
QBrush brush (const QColor &color) const
 constructs a QBrush from the data in this object, possibly using color to replace JKQTPlotterDrawingTools::CurrentColorPlaceholder color stops and a color for a pattern defined via e.g. brushStyle=Qt::BDiagPattern
 
QString toCSSString () const
 converst the contents to a string representation
 

Static Public Member Functions

static JKQTFillStyleSummmary fromString (const QString &style)
 reads object contents from a string representation, e.g. as created by JKQTFillStyleSummmary::toCSSString()
 

Public Attributes

Qt::BrushStyle brushStyle
 a brushStyle (e.g. pattern) to use for filling
 
QGradient gradient
 a QGradient to use for filling
 
QPixmap texture
 a texture to use for filling
 

Detailed Description

Support Class for JKQTBasePlotter, which summarizes a fill style.

See also
JKQTBasePlotter, JKQTGraphsBaseStyle, Styling System

Constructor & Destructor Documentation

◆ JKQTFillStyleSummmary()

JKQTFillStyleSummmary::JKQTFillStyleSummmary ( Qt::BrushStyle  style = Qt::SolidPattern,
const QGradient &  grad = QGradient() 
)

Member Function Documentation

◆ brush()

QBrush JKQTFillStyleSummmary::brush ( const QColor &  color) const

constructs a QBrush from the data in this object, possibly using color to replace JKQTPlotterDrawingTools::CurrentColorPlaceholder color stops and a color for a pattern defined via e.g. brushStyle=Qt::BDiagPattern

◆ fromString()

static JKQTFillStyleSummmary JKQTFillStyleSummmary::fromString ( const QString &  style)
static

reads object contents from a string representation, e.g. as created by JKQTFillStyleSummmary::toCSSString()

◆ toCSSString()

QString JKQTFillStyleSummmary::toCSSString ( ) const

converst the contents to a string representation

Member Data Documentation

◆ brushStyle

Qt::BrushStyle JKQTFillStyleSummmary::brushStyle

a brushStyle (e.g. pattern) to use for filling

◆ gradient

QGradient JKQTFillStyleSummmary::gradient

a QGradient to use for filling

◆ texture

QPixmap JKQTFillStyleSummmary::texture

a texture to use for filling


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