|
// AsFontInfo.h
//
#if !defined(_ASFONTINFO_H_)
#define _ASFONTINFO_H_
#include "cmString.h"
class CAsFontInfo
{
public:
CAsFontInfo();
CAsFontInfo(const CAsFontInfo& fontInfo);
virtual ~CAsFontInfo();
CAsFontInfo& operator=(const CAsFontInfo& fontInfo);
void SetFontName(const string& fontName);
string GetFontName() const;
void SetFontSize(int fontSize);
int GetFontSize() const;
void SetFontBold(bool fontBold);
bool GetFontBold() const;
CFont* CreateFont();
CFont* GetFont();
void ReleaseFont();
protected:
void Copy(const CAsFontInfo& fontInfo);
string fontName_;
int fontSize_;
bool fontBold_;
CFont* font_;
bool updatePending_;
};
#endif //!defined(_ASFONTINFO_H_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
For all Stefano's latest code, binaries and tutorials visit www.codemachines.com