X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55ccdb93e4ae4b606a4068cb37492c1ec3ed77a6..c1ea6afb878385e2586007fc85fef05c2c722a2b:/include/wx/x11/palette.h diff --git a/include/wx/x11/palette.h b/include/wx/x11/palette.h index 8babcd8f59..eac7614b34 100644 --- a/include/wx/x11/palette.h +++ b/include/wx/x11/palette.h @@ -12,10 +12,9 @@ #ifndef _WX_PALETTE_H_ #define _WX_PALETTE_H_ -#include "wx/gdiobj.h" #include "wx/list.h" -class WXDLLEXPORT wxPalette; +class WXDLLIMPEXP_FWD_CORE wxPalette; // Palette for one display class wxXPalette : public wxObject @@ -32,9 +31,9 @@ public: bool m_destroyable; }; -class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData +class WXDLLIMPEXP_CORE wxPaletteRefData: public wxGDIRefData { - friend class WXDLLEXPORT wxPalette; + friend class WXDLLIMPEXP_FWD_CORE wxPalette; public: wxPaletteRefData(); virtual ~wxPaletteRefData(); @@ -45,7 +44,7 @@ protected: #define M_PALETTEDATA ((wxPaletteRefData *)m_refData) -class WXDLLEXPORT wxPalette: public wxPaletteBase +class WXDLLIMPEXP_CORE wxPalette : public wxPaletteBase { DECLARE_DYNAMIC_CLASS(wxPalette) @@ -58,16 +57,16 @@ 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 IsOk(); } - virtual bool IsOk() const { return (m_refData != NULL) ; } - // X-specific WXColormap GetXColormap(WXDisplay* display = NULL) const; bool TransferBitmap(void *data, int depth, int size); bool TransferBitmap8(unsigned char *data, unsigned long size, void *dest, unsigned int bpp); unsigned long *GetXPixArray(WXDisplay* display, int *pix_array_n); void PutXColormap(WXDisplay* display, WXColormap cmap, bool destroyable); + +protected: + virtual wxGDIRefData *CreateGDIRefData() const; + virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; }; -#endif -// _WX_PALETTE_H_ +#endif // _WX_PALETTE_H_