QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskVertex::Color Class Reference

Detailed Description

Definition at line 17 of file QskVertex.h.

Public Member Functions

constexpr Color (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) noexcept
 
 Color (QRgb) noexcept
 
 Color (const QColor &)
 
Color interpolatedTo (Color, qreal ratio) const noexcept
 
constexpr bool operator== (const Color &) const noexcept
 
constexpr bool operator!= (const Color &) const noexcept
 

Public Attributes

unsigned char r
 
unsigned char g
 
unsigned char b
 
unsigned char a
 

Constructor & Destructor Documentation

◆ Color() [1/4]

constexpr QskVertex::Color::Color ( )
inlineconstexprnoexcept

Definition at line 36 of file QskVertex.h.

◆ Color() [2/4]

constexpr QskVertex::Color::Color ( unsigned char  red,
unsigned char  green,
unsigned char  blue,
unsigned char  alpha 
)
inlineconstexprnoexcept

Definition at line 44 of file QskVertex.h.

◆ Color() [3/4]

QskVertex::Color::Color ( QRgb  rgb)
inlinenoexcept

Definition at line 53 of file QskVertex.h.

◆ Color() [4/4]

QskVertex::Color::Color ( const QColor &  color)
inline

Definition at line 70 of file QskVertex.h.

Member Function Documentation

◆ interpolatedTo()

Color QskVertex::Color::interpolatedTo ( Color  colorTo,
qreal  ratio 
) const
inlinenoexcept

Definition at line 75 of file QskVertex.h.

◆ operator!=()

constexpr bool QskVertex::Color::operator!= ( const Color other) const
inlineconstexprnoexcept

Definition at line 100 of file QskVertex.h.

◆ operator==()

constexpr bool QskVertex::Color::operator== ( const Color other) const
inlineconstexprnoexcept

Definition at line 94 of file QskVertex.h.

Member Data Documentation

◆ a

unsigned char QskVertex::Color::a

Definition at line 33 of file QskVertex.h.

◆ b

unsigned char QskVertex::Color::b

Definition at line 33 of file QskVertex.h.

◆ g

unsigned char QskVertex::Color::g

Definition at line 33 of file QskVertex.h.

◆ r

unsigned char QskVertex::Color::r

Definition at line 33 of file QskVertex.h.