]>
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 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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;
84 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
86 virtual void SetPointSize(int pointSize
);
87 virtual void SetFamily(int family
);
88 virtual void SetStyle(int style
);
89 virtual void SetWeight(int weight
);
90 virtual void SetFaceName(const wxString
& faceName
);
91 virtual void SetUnderlined(bool underlined
);
92 virtual void SetEncoding(wxFontEncoding encoding
);
94 struct font_t
*GetMGLfont_t(float scale
, bool antialiased
);
97 // common part of all ctors
101 virtual wxObjectRefData
*CreateRefData() const;
102 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
105 DECLARE_DYNAMIC_CLASS(wxFont
)
108 #endif // __WX_FONT_H__