openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
gFont Class Reference

A softreference to a font. More...

#include <gfont.h>

Inheritance diagram for gFont:
iObject

Public Member Functions

 gFont (const std::string &family, int pointSize)
 Constructs a font with the given name and size. More...
 
virtual ~gFont ()
 
 gFont ()
 
- Public Member Functions inherited from iObject
void operator delete (void *p)
 
virtual void AddRef ()=0
 
virtual void Release ()=0
 

Public Attributes

std::string family
 
int pointSize
 

Additional Inherited Members

- Protected Member Functions inherited from iObject
virtual ~iObject ()
 

Detailed Description

A softreference to a font.

The font is specified by a name and a size. gFont is part of the gdi.

Constructor & Destructor Documentation

◆ gFont() [1/2]

gFont::gFont ( const std::string &  family,
int  pointSize 
)
inline

Constructs a font with the given name and size.

Parameters
familyThe name of the font, for example "NimbusSansL-Regular Sans L Regular".
pointSizethe size of the font in PIXELS.

◆ ~gFont()

virtual gFont::~gFont ( )
inlinevirtual

◆ gFont() [2/2]

gFont::gFont ( )
inline

Member Data Documentation

◆ family

std::string gFont::family

◆ pointSize

int gFont::pointSize

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