QskRgbPalette

Public Types

  Name
enum Weight { W50, W100, W200, W300, W400, W500, W600, W700, W800, W900, NumWeights}
enum Theme { Red, Pink, Purple, DeepPurple, Indigo, Blue, LightBlue, Cyan, Teal, Green, LightGreen, Lime, Yellow, Amber, Orange, DeepOrange, Brown, Grey, BlueGrey, NumThemes}

Public Functions

  Name
QskRgbPalette palette(Theme theme)
QskGradientStops colorStops(Theme theme, bool discrete =false)
QskGradientStops colorStops(const QVector< QRgb > & rgb, bool discrete =false)
QRgb rgb(Weight weight) const
QColor color(Weight weight) const
QskGradientStops colorStops(bool discrete =false) const

Protected Attributes

  Name
const QRgb * m_rgb

Public Types Documentation

enum Weight

Enumerator Value Description
W50    
W100    
W200    
W300    
W400    
W500    
W600    
W700    
W800    
W900    
NumWeights    

enum Theme

Enumerator Value Description
Red    
Pink    
Purple    
DeepPurple    
Indigo    
Blue    
LightBlue    
Cyan    
Teal    
Green    
LightGreen    
Lime    
Yellow    
Amber    
Orange    
DeepOrange    
Brown    
Grey    
BlueGrey    
NumThemes    

Public Functions Documentation

function palette

static QskRgbPalette palette(
    Theme theme
)

function colorStops

static QskGradientStops colorStops(
    Theme theme,
    bool discrete =false
)

function colorStops

static QskGradientStops colorStops(
    const QVector< QRgb > & rgb,
    bool discrete =false
)

function rgb

inline QRgb rgb(
    Weight weight
) const

function color

inline QColor color(
    Weight weight
) const

function colorStops

QskGradientStops colorStops(
    bool discrete =false
) const

Protected Attributes Documentation

variable m_rgb

const QRgb * m_rgb;

Updated on 28 July 2023 at 14:02:28 CEST