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