]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/palette.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/palette.cpp
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
22 #include "wx/palette.h"
25 #include "wx/palmos/private.h"
27 IMPLEMENT_DYNAMIC_CLASS(wxPalette
, wxGDIObject
)
34 wxPaletteRefData::wxPaletteRefData(void)
38 wxPaletteRefData::~wxPaletteRefData(void)
42 wxPalette::wxPalette(void)
46 wxPalette::wxPalette(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
)
50 wxPalette::~wxPalette(void)
54 bool wxPalette::FreeResource(bool WXUNUSED(force
))
59 bool wxPalette::Create(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
)
64 int wxPalette::GetPixel(const unsigned char red
, const unsigned char green
, const unsigned char blue
) const
69 bool wxPalette::GetRGB(int index
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const
74 void wxPalette::SetHPALETTE(WXHPALETTE pal
)
78 #endif // wxUSE_PALETTE