]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/fontutil.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxNativeFontInfo
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
10 @class wxNativeFontInfo
12 wxNativeFontInfo is platform-specific font representation: this class
13 should be considered as an opaque font description only used by the native
14 functions, the user code can only get the objects of this type from
15 somewhere and pass it somewhere else (possibly save them somewhere using
16 ToString() and restore them using FromString())
21 class wxNativeFontInfo
25 wxNativeFontInfo(const wxNativeFontInfo
& info
);
28 wxNativeFontInfo
& operator=(const wxNativeFontInfo
& info
);
31 void InitFromFont(const wxFont
& font
);
33 int GetPointSize() const;
34 wxSize
GetPixelSize() const;
35 wxFontStyle
GetStyle() const;
36 wxFontWeight
GetWeight() const;
37 bool GetUnderlined() const;
38 wxString
GetFaceName() const;
39 wxFontFamily
GetFamily() const;
40 wxFontEncoding
GetEncoding() const;
42 void SetPointSize(int pointsize
);
43 void SetPixelSize(const wxSize
& pixelSize
);
44 void SetStyle(wxFontStyle style
);
45 void SetWeight(wxFontWeight weight
);
46 void SetUnderlined(bool underlined
);
47 bool SetFaceName(const wxString
& facename
);
48 void SetFamily(wxFontFamily family
);
49 void SetEncoding(wxFontEncoding encoding
);
51 void SetFaceName(const wxArrayString
&facenames
);
53 bool FromString(const wxString
& s
);
54 wxString
ToString() const;
56 bool FromUserString(const wxString
& s
);
57 wxString
ToUserString() const;