1 /////////////////////////////////////////////////////////////////////////////
3 // Author: Vaclav Slavik
5 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
13 #pragma interface "font.h"
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class WXDLLEXPORT wxDC
;
23 class WXDLLEXPORT wxPaintDC
;
24 class WXDLLEXPORT wxWindow
;
25 class WXDLLEXPORT wxFont
;
29 // ----------------------------------------------------------------------------
31 // ----------------------------------------------------------------------------
33 class WXDLLEXPORT wxFont
: public wxFontBase
38 wxFont(const wxFont
& font
) { Init(); Ref(font
); }
40 wxFont(const wxNativeFontInfo
& info
)
51 bool underlined
= FALSE
,
52 const wxString
& face
= wxEmptyString
,
53 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
57 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
64 bool underlined
= FALSE
,
65 const wxString
& face
= wxEmptyString
,
66 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
68 bool Create(const wxNativeFontInfo
& fontinfo
);
73 wxFont
& operator=(const wxFont
& font
);
75 // implement base class pure virtuals
76 virtual int GetPointSize() const;
77 virtual int GetFamily() const;
78 virtual int GetStyle() const;
79 virtual int GetWeight() const;
80 virtual wxString
GetFaceName() const;
81 virtual bool GetUnderlined() const;
82 virtual wxFontEncoding
GetEncoding() const;
84 virtual void SetPointSize(int pointSize
);
85 virtual void SetFamily(int family
);
86 virtual void SetStyle(int style
);
87 virtual void SetWeight(int weight
);
88 virtual void SetFaceName(const wxString
& faceName
);
89 virtual void SetUnderlined(bool underlined
);
90 virtual void SetEncoding(wxFontEncoding encoding
);
92 // implementation from now on
95 struct font_t
*GetMGLfont_t(float scale
, bool antialiased
);
100 // common part of all ctors
104 DECLARE_DYNAMIC_CLASS(wxFont
)
107 #endif // __WX_FONT_H__