#include <Font.h>
This is a SmartPtr, so if you copy instances of fonts they will be referencing to the same place. You can't clone fonts because you can't modify them.
HFONT
(W32) wrapper.Public Member Functions | |
Font () | |
Constructs the default font. | |
Font (const Font &font) | |
Makes a reference to the specified font. | |
Font (const Font &font, FontStyle style) | |
Makes a copy of the font changing it's style. | |
Font (String familyName, int size, FontStyle style=FontStyle::Regular) | |
Font (HFONT hfont) | |
Wrapper constructor for HFONT. | |
Font (LPLOGFONT lplf) | |
virtual | ~Font () |
int | getPointSize () const |
Returns the size of the font in points. | |
FontStyle | getStyle () const |
Font & | operator= (const Font &font) |
Makes a copy of font. | |
HFONT | getHandle () const |
bool | getLogFont (LPLOGFONT lplf) const |
Private Member Functions | |
void | assign (LPLOGFONT lplf) |
Friends | |
class | Application |
Font::Font | ( | ) |
Constructs the default font.
Font::Font | ( | const Font & | font | ) |
Makes a reference to the specified font.
Font::Font | ( | HFONT | hfont | ) | [explicit] |
Wrapper constructor for HFONT.
Font::Font | ( | LPLOGFONT | lplf | ) |
Font::~Font | ( | ) | [virtual] |
int Font::getPointSize | ( | ) | const |
Returns the size of the font in points.
FontStyle Font::getStyle | ( | ) | const |
Makes a copy of font.
You can safely delete the font after this method.
HFONT Font::getHandle | ( | ) | const |
bool Font::getLogFont | ( | LPLOGFONT | lplf | ) | const |
void Font::assign | ( | LPLOGFONT | lplf | ) | [private] |
friend class Application [friend] |