Chatterino
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
chatterino::Fonts Class Referencefinal

#include <Fonts.hpp>

Inheritance diagram for chatterino::Fonts:
[legend]
Collaboration diagram for chatterino::Fonts:
[legend]

Public Member Functions

 Fonts ()
 
virtual void initialize (Settings &settings, Paths &paths) override
 
QFont getFont (FontStyle type, float scale)
 
QFontMetrics getFontMetrics (FontStyle type, float scale)
 
- Public Member Functions inherited from chatterino::Singleton
virtual ~Singleton ()=default
 
virtual void save ()
 

Public Attributes

QStringSetting chatFontFamily
 
IntSetting chatFontSize
 
pajlada::Signals::NoArgSignal fontChanged
 

Static Public Attributes

static Fontsinstance = nullptr
 

Constructor & Destructor Documentation

◆ Fonts()

chatterino::Fonts::Fonts ( )

Member Function Documentation

◆ getFont()

QFont chatterino::Fonts::getFont ( FontStyle  type,
float  scale 
)
Here is the caller graph for this function:

◆ getFontMetrics()

QFontMetrics chatterino::Fonts::getFontMetrics ( FontStyle  type,
float  scale 
)
Here is the caller graph for this function:

◆ initialize()

void chatterino::Fonts::initialize ( Settings settings,
Paths paths 
)
overridevirtual

Reimplemented from chatterino::Singleton.

Here is the call graph for this function:

Member Data Documentation

◆ chatFontFamily

QStringSetting chatterino::Fonts::chatFontFamily

◆ chatFontSize

IntSetting chatterino::Fonts::chatFontSize

◆ fontChanged

pajlada::Signals::NoArgSignal chatterino::Fonts::fontChanged

◆ instance

Fonts * chatterino::Fonts::instance = nullptr
static

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