PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureUiFontWin Class Reference

Pure User Interface Windows Font class. More...

Detailed Description

Pure User Interface Windows Font class.

Definition at line 18 of file PureUiFontWin.h.

#include <PureUiFontWin.h>

Public Member Functions

 PureUiFontWin ()
 
 PureUiFontWin (const std::string &fontFaceName, int height, bool bold, bool italic, bool underline, bool strikeout, HDC wnd_dc)
 
 PureUiFontWin (const PureUiFontWin &uiFont)
 
PureUiFontWinoperator= (const PureUiFontWin &uiFont)
 
virtual ~PureUiFontWin ()
 
CConsole & getConsole () const
 Returns access to console preset with logger module name as this class.
 
const std::string & getFontFaceName () const
 
int getHeight () const
 
bool getBold () const
 
bool getItalic () const
 
bool getUnderline () const
 
bool getStrikeOut () const
 
unsigned int getListBase () const
 
long getTextWidth (const std::string &text) const
 
long getTextHeight (const std::string &text) const
 

Static Public Member Functions

static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 

Private Attributes

HDC hDC
 
HFONT hFont
 
int nHeight
 
int nWeight
 
DWORD bItalic
 
DWORD bUnderline
 
DWORD bStrikeOut
 
std::string sFontFaceName
 
unsigned int base
 

Constructor & Destructor Documentation

◆ PureUiFontWin() [1/3]

PureUiFontWin::PureUiFontWin ( )

Definition at line 21 of file PureUiFontWin.cpp.

◆ PureUiFontWin() [2/3]

PureUiFontWin::PureUiFontWin ( const std::string & fontFaceName,
int height,
bool bold,
bool italic,
bool underline,
bool strikeout,
HDC wnd_dc )

Definition at line 35 of file PureUiFontWin.cpp.

◆ PureUiFontWin() [3/3]

PureUiFontWin::PureUiFontWin ( const PureUiFontWin & uiFont)

Definition at line 106 of file PureUiFontWin.cpp.

◆ ~PureUiFontWin()

PureUiFontWin::~PureUiFontWin ( )
virtual

Definition at line 143 of file PureUiFontWin.cpp.

Member Function Documentation

◆ getBold()

bool PureUiFontWin::getBold ( ) const

Definition at line 211 of file PureUiFontWin.cpp.

◆ getConsole()

CConsole & PureUiFontWin::getConsole ( ) const

Returns access to console preset with logger module name as this class.

Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.

Returns
Console instance used by this class.

Definition at line 180 of file PureUiFontWin.cpp.

◆ getFontFaceName()

const std::string & PureUiFontWin::getFontFaceName ( ) const

Definition at line 199 of file PureUiFontWin.cpp.

◆ getHeight()

int PureUiFontWin::getHeight ( ) const

Definition at line 205 of file PureUiFontWin.cpp.

◆ getItalic()

bool PureUiFontWin::getItalic ( ) const

Definition at line 217 of file PureUiFontWin.cpp.

◆ getListBase()

unsigned int PureUiFontWin::getListBase ( ) const

Definition at line 235 of file PureUiFontWin.cpp.

◆ getLoggerModuleName()

const char * PureUiFontWin::getLoggerModuleName ( )
static

Returns the logger module name of this class.

Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.

Returns
The logger module name of this class.

Definition at line 193 of file PureUiFontWin.cpp.

◆ getStrikeOut()

bool PureUiFontWin::getStrikeOut ( ) const

Definition at line 229 of file PureUiFontWin.cpp.

◆ getTextHeight()

long PureUiFontWin::getTextHeight ( const std::string & text) const

Definition at line 251 of file PureUiFontWin.cpp.

◆ getTextWidth()

long PureUiFontWin::getTextWidth ( const std::string & text) const

Definition at line 241 of file PureUiFontWin.cpp.

◆ getUnderline()

bool PureUiFontWin::getUnderline ( ) const

Definition at line 223 of file PureUiFontWin.cpp.

◆ operator=()

PureUiFontWin & PureUiFontWin::operator= ( const PureUiFontWin & uiFont)

Definition at line 123 of file PureUiFontWin.cpp.

Member Data Documentation

◆ base

unsigned int PureUiFontWin::base
private

Definition at line 71 of file PureUiFontWin.h.

◆ bItalic

DWORD PureUiFontWin::bItalic
private

Definition at line 67 of file PureUiFontWin.h.

◆ bStrikeOut

DWORD PureUiFontWin::bStrikeOut
private

Definition at line 69 of file PureUiFontWin.h.

◆ bUnderline

DWORD PureUiFontWin::bUnderline
private

Definition at line 68 of file PureUiFontWin.h.

◆ hDC

HDC PureUiFontWin::hDC
private

Definition at line 63 of file PureUiFontWin.h.

◆ hFont

HFONT PureUiFontWin::hFont
private

Definition at line 64 of file PureUiFontWin.h.

◆ nHeight

int PureUiFontWin::nHeight
private

Definition at line 65 of file PureUiFontWin.h.

◆ nWeight

int PureUiFontWin::nWeight
private

Definition at line 66 of file PureUiFontWin.h.

◆ sFontFaceName

std::string PureUiFontWin::sFontFaceName
private

Definition at line 70 of file PureUiFontWin.h.


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