X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0dbd6262a9ee7d735fb3930707346298f71b2cb7..1a33ac8fb0f5e43c89bd698618d554c6f7b8b452:/include/wx/mac/palette.h diff --git a/include/wx/mac/palette.h b/include/wx/mac/palette.h index 3482b33934..74f9a4dd30 100644 --- a/include/wx/mac/palette.h +++ b/include/wx/mac/palette.h @@ -1,35 +1,37 @@ ///////////////////////////////////////////////////////////////////////////// // Name: palette.h // Purpose: wxPalette class -// Author: AUTHOR +// Author: Stefan Csomor // Modified by: -// Created: ??/??/98 +// Created: 1998-01-01 // RCS-ID: $Id$ -// Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Copyright: (c) Stefan Csomor +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_PALETTE_H_ #define _WX_PALETTE_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "palette.h" #endif +#include "wx/colour.h" #include "wx/gdiobj.h" class WXDLLEXPORT wxPalette; class WXDLLEXPORT wxPaletteRefData: public wxGDIRefData { + DECLARE_NO_COPY_CLASS(wxPaletteRefData) + friend class WXDLLEXPORT wxPalette; public: wxPaletteRefData(); ~wxPaletteRefData(); -/* TODO: implementation protected: - WXHPALETTE m_hPalette; -*/ + wxColour* m_palette; + wxInt32 m_count ; }; #define M_PALETTEDATA ((wxPaletteRefData *)m_refData) @@ -40,7 +42,9 @@ class WXDLLEXPORT wxPalette: public wxGDIObject public: wxPalette(); - inline wxPalette(const wxPalette& palette) { Ref(palette); } + wxPalette(const wxPalette& palette) + : wxGDIObject() + { Ref(palette); } wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue); ~wxPalette();