-class WXDLLEXPORT wxFontData: public wxObject
-{
-public:
- wxFontData();
- ~wxFontData();
-
- wxFontData(const wxFontData& data)
- : wxObject()
- , fontColour(data.fontColour)
- , showHelp(data.showHelp)
- , allowSymbols(data.allowSymbols)
- , enableEffects(data.enableEffects)
- , initialFont(data.initialFont)
- , chosenFont(data.chosenFont)
- , minSize(data.minSize)
- , maxSize(data.maxSize)
- , m_encoding(data.m_encoding)
- , m_encodingInfo(data.m_encodingInfo)
- {
- }
-
- wxFontData& operator=(const wxFontData& data)
- {
- wxObject::operator=(data);
- fontColour = data.fontColour;
- showHelp = data.showHelp;
- allowSymbols = data.allowSymbols;
- enableEffects = data.enableEffects;
- initialFont = data.initialFont;
- chosenFont = data.chosenFont;
- minSize = data.minSize;
- maxSize = data.maxSize;
- m_encoding = data.m_encoding;
- m_encodingInfo = data.m_encodingInfo;
- return *this;
- }
-
- void SetAllowSymbols(bool flag) { allowSymbols = flag; }
- bool GetAllowSymbols() const { return allowSymbols; }
-
- void SetColour(const wxColour& colour) { fontColour = colour; }
- wxColour &GetColour() { return fontColour; }
-
- void SetShowHelp(bool flag) { showHelp = flag; }
- bool GetShowHelp() const { return showHelp; }
-
- void EnableEffects(bool flag) { enableEffects = flag; }
- bool GetEnableEffects() const { return enableEffects; }
-
- void SetInitialFont(const wxFont& font) { initialFont = font; }
- wxFont GetInitialFont() const { return initialFont; }
-
- void SetChosenFont(const wxFont& font) { chosenFont = font; }
- wxFont GetChosenFont() const { return chosenFont; }
-
- void SetRange(int minRange, int maxRange) { minSize = minRange; maxSize = maxRange; }
-
- // encoding info is split into 2 parts: the logical wxWin encoding
- // (wxFontEncoding) and a structure containing the native parameters for
- // it (wxNativeEncodingInfo)
- wxFontEncoding GetEncoding() const { return m_encoding; }
- void SetEncoding(wxFontEncoding encoding) { m_encoding = encoding; }
-
- wxNativeEncodingInfo& EncodingInfo() { return m_encodingInfo; }