X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/include/wx/x11/palette.h?ds=inline diff --git a/include/wx/x11/palette.h b/include/wx/x11/palette.h index f427ec3e23..bb33a74b9b 100644 --- a/include/wx/x11/palette.h +++ b/include/wx/x11/palette.h @@ -15,7 +15,7 @@ #include "wx/gdiobj.h" #include "wx/list.h" -class WXDLLEXPORT wxPalette; +class WXDLLIMPEXP_FWD_CORE wxPalette; // Palette for one display class wxXPalette : public wxObject @@ -34,7 +34,7 @@ public: class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData { - friend class WXDLLEXPORT wxPalette; + friend class WXDLLIMPEXP_FWD_CORE wxPalette; public: wxPaletteRefData(); virtual ~wxPaletteRefData(); @@ -58,10 +58,8 @@ public: int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const; bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const; - virtual bool Ok() const { return (m_refData != NULL) ; } - - bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; } - bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; } + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk() const { return (m_refData != NULL) ; } // X-specific WXColormap GetXColormap(WXDisplay* display = NULL) const;