// wxFontBase represents a font object
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxFontRefData;
class WXDLLEXPORT wxNativeFontInfo;
class WXDLLEXPORT wxFontBase : public wxGDIObject
static wxFont *New(const wxString& strNativeFontDesc);
// was the font successfully created?
- bool Ok() const { return m_refData != NULL; }
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
// comparison
bool operator == (const wxFont& font) const;
static void SetDefaultEncoding(wxFontEncoding encoding);
protected:
- // get the internal data
- wxFontRefData *GetFontData() const
- { return (wxFontRefData *)m_refData; }
-
// the function called by both overloads of SetNativeFontInfo()
virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info);
#include "wx/os2/font.h"
#endif
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-#define M_FONTDATA GetFontData()
-
#endif
// _WX_FONT_H_BASE_