HoverRace  2.0
Public Types | Public Member Functions | Public Attributes | List of all members
HoverRace::Display::UiFont Struct Reference

Describes a font used for the UI. More...

#include <UiFont.h>

Public Types

enum  Style { BOLD = 0x01, ITALIC = 0x02, BOLD_ITALIC = BOLD | ITALIC }
 

Public Member Functions

 UiFont (const std::string &name, double size=20.0, int style=0)
 
 UiFont (double size=20.0, int style=0)
 
 UiFont (const UiFont &o)=default
 
 UiFont (UiFont &&o) noexcept=default
 
bool isBold () const noexcept
 
bool isItalic () const noexcept
 
UiFontoperator= (const UiFont &o)=default
 
UiFontoperator= (UiFont &&o)=default
 
void Set (const std::string &name, double size=20.0, int style=0)
 
void Set (double size=20.0, int style=0) noexcept
 

Public Attributes

std::string name
 
double size
 
int style
 

Detailed Description

Describes a font used for the UI.

Author
Michael Imamura

Member Enumeration Documentation

Enumerator
BOLD 
ITALIC 
BOLD_ITALIC 

Constructor & Destructor Documentation

HoverRace::Display::UiFont::UiFont ( const std::string &  name,
double  size = 20.0,
int  style = 0 
)
inline
HoverRace::Display::UiFont::UiFont ( double  size = 20.0,
int  style = 0 
)
inline
HoverRace::Display::UiFont::UiFont ( const UiFont o)
default
HoverRace::Display::UiFont::UiFont ( UiFont &&  o)
defaultnoexcept

Member Function Documentation

bool HoverRace::Display::UiFont::isBold ( ) const
inlinenoexcept
bool HoverRace::Display::UiFont::isItalic ( ) const
inlinenoexcept
UiFont& HoverRace::Display::UiFont::operator= ( const UiFont o)
default
UiFont& HoverRace::Display::UiFont::operator= ( UiFont &&  o)
default
void HoverRace::Display::UiFont::Set ( const std::string &  name,
double  size = 20.0,
int  style = 0 
)
inline
void HoverRace::Display::UiFont::Set ( double  size = 20.0,
int  style = 0 
)
inlinenoexcept

Member Data Documentation

std::string HoverRace::Display::UiFont::name
double HoverRace::Display::UiFont::size
int HoverRace::Display::UiFont::style

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