]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fontdata.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / fontdata.h
CommitLineData
081d8d96
PC
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/fontdata.h
3// Author: Julian Smart
081d8d96
PC
4// Copyright: (c) Julian Smart
5// Licence: wxWindows licence
6/////////////////////////////////////////////////////////////////////////////
7
8#ifndef _WX_FONTDATA_H_
9#define _WX_FONTDATA_H_
10
11#include "wx/font.h"
12#include "wx/colour.h"
13#include "wx/encinfo.h"
14
15class WXDLLIMPEXP_CORE wxFontData : public wxObject
16{
17public:
18 wxFontData();
19 virtual ~wxFontData();
20
21 wxFontData(const wxFontData& data);
22 wxFontData& operator=(const wxFontData& data);
23
24 void SetAllowSymbols(bool flag) { m_allowSymbols = flag; }
25 bool GetAllowSymbols() const { return m_allowSymbols; }
26
27 void SetColour(const wxColour& colour) { m_fontColour = colour; }
28 const wxColour& GetColour() const { return m_fontColour; }
29
30 void SetShowHelp(bool flag) { m_showHelp = flag; }
31 bool GetShowHelp() const { return m_showHelp; }
32
33 void EnableEffects(bool flag) { m_enableEffects = flag; }
34 bool GetEnableEffects() const { return m_enableEffects; }
35
36 void SetInitialFont(const wxFont& font) { m_initialFont = font; }
37 wxFont GetInitialFont() const { return m_initialFont; }
38
39 void SetChosenFont(const wxFont& font) { m_chosenFont = font; }
40 wxFont GetChosenFont() const { return m_chosenFont; }
41
42 void SetRange(int minRange, int maxRange) { m_minSize = minRange; m_maxSize = maxRange; }
43
44 // encoding info is split into 2 parts: the logical wxWin encoding
45 // (wxFontEncoding) and a structure containing the native parameters for
46 // it (wxNativeEncodingInfo)
47 wxFontEncoding GetEncoding() const { return m_encoding; }
48 void SetEncoding(wxFontEncoding encoding) { m_encoding = encoding; }
49
50 wxNativeEncodingInfo& EncodingInfo() { return m_encodingInfo; }
51
52
53 // public for backwards compatibility only: don't use directly
54 wxColour m_fontColour;
55 bool m_showHelp;
56 bool m_allowSymbols;
57 bool m_enableEffects;
58 wxFont m_initialFont;
59 wxFont m_chosenFont;
60 int m_minSize;
61 int m_maxSize;
62
63private:
64 wxFontEncoding m_encoding;
65 wxNativeEncodingInfo m_encodingInfo;
66
67 DECLARE_DYNAMIC_CLASS(wxFontData)
68};
69
70#endif // _WX_FONTDATA_H_