QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskFontRole Class Reference

Detailed Description

Definition at line 12 of file QskFontRole.h.

Public Types

enum  Category {
  Caption , Body , Subtitle , Title ,
  Headline , Display
}
 
enum  Emphasis {
  VeryLow , Low , Normal , High ,
  VeryHigh
}
 

Properties

Category category
 
Emphasis emphasis
 

Public Member Functions

 Q_ENUM (Category)
 
 Q_ENUM (Emphasis)
 
constexpr QskFontRole (Category=Body, Emphasis=Normal) noexcept
 
constexpr bool operator== (const QskFontRole &) const noexcept
 
constexpr bool operator!= (const QskFontRole &) const noexcept
 
void setCategory (Category) noexcept
 
constexpr Category category () const noexcept
 
void setEmphasis (Emphasis) noexcept
 
constexpr Emphasis emphasis () const noexcept
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 

Member Enumeration Documentation

◆ Category

enum QskFontRole::Category

Definition at line 20 of file QskFontRole.h.

◆ Emphasis

enum QskFontRole::Emphasis

Definition at line 31 of file QskFontRole.h.

Constructor & Destructor Documentation

◆ QskFontRole()

constexpr QskFontRole::QskFontRole ( Category  category = Body,
Emphasis  emphasis = Normal 
)
inlineconstexprnoexcept

Definition at line 61 of file QskFontRole.h.

Member Function Documentation

◆ category()

constexpr QskFontRole::Category QskFontRole::category ( ) const
inlineconstexprnoexcept

Definition at line 82 of file QskFontRole.h.

◆ emphasis()

constexpr QskFontRole::Emphasis QskFontRole::emphasis ( ) const
inlineconstexprnoexcept

Definition at line 92 of file QskFontRole.h.

◆ hash()

QskHashValue QskFontRole::hash ( QskHashValue  seed = 0) const
noexcept

Definition at line 20 of file QskFontRole.cpp.

◆ operator!=()

constexpr bool QskFontRole::operator!= ( const QskFontRole other) const
inlineconstexprnoexcept

Definition at line 72 of file QskFontRole.h.

◆ operator==()

constexpr bool QskFontRole::operator== ( const QskFontRole other) const
inlineconstexprnoexcept

Definition at line 67 of file QskFontRole.h.

◆ setCategory()

void QskFontRole::setCategory ( Category  category)
inlinenoexcept

Definition at line 77 of file QskFontRole.h.

◆ setEmphasis()

void QskFontRole::setEmphasis ( Emphasis  emphasis)
inlinenoexcept

Definition at line 87 of file QskFontRole.h.

Property Documentation

◆ category

Category QskFontRole::category
readwrite

Definition at line 16 of file QskFontRole.h.

◆ emphasis

Emphasis QskFontRole::emphasis
readwrite

Definition at line 17 of file QskFontRole.h.