-class WXDLLEXPORT wxColourData: public wxObject
-{
- DECLARE_DYNAMIC_CLASS(wxColourData)
-public:
- wxColourData();
- wxColourData(const wxColourData& data);
- ~wxColourData();
-
- void SetChooseFull(bool flag) { chooseFull = flag; }
- bool GetChooseFull() const { return chooseFull; }
- void SetColour(const wxColour& colour) { dataColour = colour; }
- const wxColour& GetColour() const { return dataColour; }
- wxColour& GetColour() { return dataColour; }
-
- // Array of 16 custom colours
- void SetCustomColour(int i, const wxColour& colour);
- wxColour GetCustomColour(int i);
-
- void operator=(const wxColourData& data);
-
-public:
- wxColour dataColour;
- wxColour custColours[16];
- bool chooseFull;
-};
-
-class WXDLLEXPORT wxFontData: public wxObject
-{
- DECLARE_DYNAMIC_CLASS(wxFontData)
-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; }
-
-public:
- wxColour fontColour;
- bool showHelp;
- bool allowSymbols;
- bool enableEffects;
- wxFont initialFont;
- wxFont chosenFont;
- int minSize;
- int maxSize;
-
-private:
- wxFontEncoding m_encoding;
- wxNativeEncodingInfo m_encodingInfo;
-};