- inline void SetAllowSymbols(bool flag) { allowSymbols = flag; }
- inline bool GetAllowSymbols() const { return allowSymbols; }
-
- inline void SetColour(const wxColour& colour) { fontColour = colour; }
- inline wxColour &GetColour() { return fontColour; }
-
- inline void SetShowHelp(bool flag) { showHelp = flag; }
- inline bool GetShowHelp() const { return showHelp; }
-
- inline void EnableEffects(bool flag) { enableEffects = flag; }
- inline bool GetEnableEffects() const { return enableEffects; }
-
- inline void SetInitialFont(const wxFont& font) { initialFont = font; }
- inline wxFont GetInitialFont() const { return initialFont; }
-
- inline void SetChosenFont(const wxFont& font) { chosenFont = font; }
- inline wxFont GetChosenFont() const { return chosenFont; }
-
- inline void SetRange(int minRange, int maxRange) { minSize = minRange; maxSize = maxRange; }
-
- void operator=(const wxFontData& data);
+ 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)
+ {
+ (*this) = data;
+ 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; }