]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/palette.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "palette.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
26 #include "wx/palette.h"
29 #include "wx/palmos/private.h"
31 IMPLEMENT_DYNAMIC_CLASS(wxPalette
, wxGDIObject
)
38 wxPaletteRefData::wxPaletteRefData(void)
42 wxPaletteRefData::~wxPaletteRefData(void)
46 wxPalette::wxPalette(void)
50 wxPalette::wxPalette(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
)
54 wxPalette::~wxPalette(void)
58 bool wxPalette::FreeResource(bool WXUNUSED(force
))
63 bool wxPalette::Create(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
)
68 int wxPalette::GetPixel(const unsigned char red
, const unsigned char green
, const unsigned char blue
) const
73 bool wxPalette::GetRGB(int index
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const
78 void wxPalette::SetHPALETTE(WXHPALETTE pal
)
82 #endif // wxUSE_PALETTE