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