]>
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 /////////////////////////////////////////////////////////////////////////////
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;
83 virtual bool IsFixedWidth() const;
85 virtual void SetPointSize(int pointSize
);
86 virtual void SetFamily(int family
);
87 virtual void SetStyle(int style
);
88 virtual void SetWeight(int weight
);
89 virtual void SetFaceName(const wxString
& faceName
);
90 virtual void SetUnderlined(bool underlined
);
91 virtual void SetEncoding(wxFontEncoding encoding
);
93 struct font_t
*GetMGLfont_t(float scale
, bool antialiased
);
96 // common part of all ctors
100 virtual wxObjectRefData
*CreateRefData() const;
101 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
104 DECLARE_DYNAMIC_CLASS(wxFont
)
107 #endif // __WX_FONT_H__