]>
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
34 wxFont(const wxFont
& font
) { Init(); Ref(font
); }
36 wxFont(const wxNativeFontInfo
& info
)
47 bool underlined
= FALSE
,
48 const wxString
& face
= wxEmptyString
,
49 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
53 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
60 bool underlined
= FALSE
,
61 const wxString
& face
= wxEmptyString
,
62 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
64 bool Create(const wxNativeFontInfo
& fontinfo
);
69 wxFont
& operator=(const wxFont
& font
);
71 // implement base class pure virtuals
72 virtual int GetPointSize() const;
73 virtual int GetFamily() const;
74 virtual int GetStyle() const;
75 virtual int GetWeight() const;
76 virtual wxString
GetFaceName() const;
77 virtual bool GetUnderlined() const;
78 virtual wxFontEncoding
GetEncoding() const;
79 virtual bool IsFixedWidth() const;
80 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
82 virtual void SetPointSize(int pointSize
);
83 virtual void SetFamily(int family
);
84 virtual void SetStyle(int style
);
85 virtual void SetWeight(int weight
);
86 virtual void SetFaceName(const wxString
& faceName
);
87 virtual void SetUnderlined(bool underlined
);
88 virtual void SetEncoding(wxFontEncoding encoding
);
90 struct font_t
*GetMGLfont_t(float scale
, bool antialiased
);
93 // common part of all ctors
97 virtual wxObjectRefData
*CreateRefData() const;
98 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
101 DECLARE_DYNAMIC_CLASS(wxFont
)
104 #endif // __WX_FONT_H__