// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef __GTKFONTH__
-#define __GTKFONTH__
-
-#include "wx/hash.h"
-
-// ----------------------------------------------------------------------------
-// classes
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxDC;
-class WXDLLIMPEXP_CORE wxPaintDC;
-class WXDLLIMPEXP_CORE wxWindow;
-
-class WXDLLIMPEXP_CORE wxFont;
+#ifndef _WX_GTK_FONT_H_
+#define _WX_GTK_FONT_H_
// ----------------------------------------------------------------------------
// wxFont
// wxGTK-specific
bool Create(const wxString& fontname);
- ~wxFont();
+ virtual ~wxFont();
// implement base class pure virtuals
virtual int GetPointSize() const;
virtual void SetFamily( int family );
virtual void SetStyle( int style );
virtual void SetWeight( int weight );
- virtual void SetFaceName( const wxString& faceName );
+ virtual bool SetFaceName( const wxString& faceName );
virtual void SetUnderlined( bool underlined );
virtual void SetEncoding(wxFontEncoding encoding);
// common part of all ctors
void Init();
+ virtual wxObjectRefData* CreateRefData() const;
+ virtual wxObjectRefData* CloneRefData(const wxObjectRefData* data) const;
+
private:
DECLARE_DYNAMIC_CLASS(wxFont)
};
-#endif // __GTKFONTH__
+#endif // _WX_GTK_FONT_H_