]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/font.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Author: Vaclav Slavik
5 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLEXPORT wxDC
;
19 class WXDLLEXPORT wxPaintDC
;
20 class WXDLLEXPORT wxWindow
;
21 class WXDLLEXPORT wxFont
;
25 // ----------------------------------------------------------------------------
27 // ----------------------------------------------------------------------------
29 class WXDLLEXPORT wxFont
: public wxFontBase
35 wxFont(const wxNativeFontInfo
& info
)
44 bool underlined
= FALSE
,
45 const wxString
& face
= wxEmptyString
,
46 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
48 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
55 bool underlined
= FALSE
,
56 const wxString
& face
= wxEmptyString
,
57 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
59 bool Create(const wxNativeFontInfo
& fontinfo
);
63 // implement base class pure virtuals
64 virtual int GetPointSize() const;
65 virtual int GetFamily() const;
66 virtual int GetStyle() const;
67 virtual int GetWeight() const;
68 virtual wxString
GetFaceName() const;
69 virtual bool GetUnderlined() const;
70 virtual wxFontEncoding
GetEncoding() const;
71 virtual bool IsFixedWidth() const;
72 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
74 virtual void SetPointSize(int pointSize
);
75 virtual void SetFamily(int family
);
76 virtual void SetStyle(int style
);
77 virtual void SetWeight(int weight
);
78 virtual bool SetFaceName(const wxString
& faceName
);
79 virtual void SetUnderlined(bool underlined
);
80 virtual void SetEncoding(wxFontEncoding encoding
);
82 // Unofficial API, don't use
83 virtual void SetNoAntiAliasing(bool no
= true);
84 virtual bool GetNoAntiAliasing() const;
86 struct font_t
*GetMGLfont_t(float scale
, bool antialiased
);
90 virtual wxObjectRefData
*CreateRefData() const;
91 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
94 DECLARE_DYNAMIC_CLASS(wxFont
)
97 #endif // __WX_FONT_H__