]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/fontutil.h
Ensure that the overall table border doesn't get overdrawn by cell borders with a...
[wxWidgets.git] / interface / wx / fontutil.h
CommitLineData
d775ec48
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: fontutil.h
3// Purpose: interface of wxNativeFontInfo
4// Author: wxWidgets team
d775ec48
RD
5// Licence: wxWindows licence
6/////////////////////////////////////////////////////////////////////////////
7
8
9/**
10 @class wxNativeFontInfo
11
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())
17
18 @library{wxcore}
19 @category{gdi}
20*/
21class wxNativeFontInfo
22{
23public:
24 wxNativeFontInfo();
25 wxNativeFontInfo(const wxNativeFontInfo& info);
d775ec48
RD
26 ~wxNativeFontInfo();
27
28 wxNativeFontInfo& operator=(const wxNativeFontInfo& info);
29
30 void Init();
d775ec48
RD
31 void InitFromFont(const wxFont& font);
32
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;
41
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);
50
51 void SetFaceName(const wxArrayString &facenames);
52
53 bool FromString(const wxString& s);
54 wxString ToString() const;
55
56 bool FromUserString(const wxString& s);
57 wxString ToUserString() const;
58};
59
60
61
62