]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/font.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxFont class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLEXPORT wxFont
: public wxFontBase
24 wxFont(const wxFont
& font
)
35 bool underlined
= FALSE
,
36 const wxString
& face
= wxEmptyString
,
37 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
41 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
44 wxFont(const wxNativeFontInfo
& info
)
51 wxFont(const wxString
& fontDesc
);
57 bool underlined
= FALSE
,
58 const wxString
& face
= wxEmptyString
,
59 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
61 bool Create(const wxNativeFontInfo
& info
);
66 wxFont
& operator=(const wxFont
& font
);
68 // implement base class pure virtuals
69 virtual int GetPointSize() const;
70 virtual int GetFamily() const;
71 virtual int GetStyle() const;
72 virtual int GetWeight() const;
73 virtual bool GetUnderlined() const;
74 virtual wxString
GetFaceName() const;
75 virtual wxFontEncoding
GetEncoding() const;
76 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
78 virtual void SetPointSize(int pointSize
);
79 virtual void SetFamily(int family
);
80 virtual void SetStyle(int style
);
81 virtual void SetWeight(int weight
);
82 virtual void SetFaceName(const wxString
& faceName
);
83 virtual void SetUnderlined(bool underlined
);
84 virtual void SetEncoding(wxFontEncoding encoding
);
86 // implementation only from now on
87 // -------------------------------
89 virtual bool RealizeResource();
91 // Unofficial API, don't use
92 virtual void SetNoAntiAliasing( bool noAA
= TRUE
) ;
93 virtual bool GetNoAntiAliasing() const ;
95 // Mac-specific, risks to change, don't use in portable code
96 short GetMacFontNum() const;
97 short GetMacFontSize() const;
98 wxByte
GetMacFontStyle() const;
99 wxUint32
GetMacATSUFontID() const;
102 // common part of all ctors
108 DECLARE_DYNAMIC_CLASS(wxFont
)