]>
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
29 bool underlined
= FALSE
,
30 const wxString
& face
= wxEmptyString
,
31 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
33 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
36 wxFont(const wxNativeFontInfo
& info
)
41 wxFont(const wxString
& fontDesc
);
47 bool underlined
= FALSE
,
48 const wxString
& face
= wxEmptyString
,
49 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
51 bool Create(const wxNativeFontInfo
& info
);
55 // implement base class pure virtuals
56 virtual int GetPointSize() const;
57 virtual int GetFamily() const;
58 virtual int GetStyle() const;
59 virtual int GetWeight() const;
60 virtual bool GetUnderlined() const;
61 virtual wxString
GetFaceName() const;
62 virtual wxFontEncoding
GetEncoding() const;
63 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
65 virtual void SetPointSize(int pointSize
);
66 virtual void SetFamily(int family
);
67 virtual void SetStyle(int style
);
68 virtual void SetWeight(int weight
);
69 virtual void SetFaceName(const wxString
& faceName
);
70 virtual void SetUnderlined(bool underlined
);
71 virtual void SetEncoding(wxFontEncoding encoding
);
73 // implementation only from now on
74 // -------------------------------
76 virtual bool RealizeResource();
78 // Unofficial API, don't use
79 virtual void SetNoAntiAliasing( bool noAA
= TRUE
) ;
80 virtual bool GetNoAntiAliasing() const ;
82 // Mac-specific, risks to change, don't use in portable code
83 short GetMacFontNum() const;
84 short GetMacFontSize() const;
85 wxByte
GetMacFontStyle() const;
86 wxUint32
GetMacATSUFontID() const;
92 DECLARE_DYNAMIC_CLASS(wxFont
)