]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/palette.cpp
Trying to repair what CVS can do to source code
[wxWidgets.git] / src / mac / carbon / palette.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: palette.cpp
3// Purpose: wxPalette
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "palette.h"
14#endif
15
16#include "wx/palette.h"
17
18#if !USE_SHARED_LIBRARIES
19IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
20#endif
21
22/*
23 * Palette
24 *
25 */
26
27wxPaletteRefData::wxPaletteRefData()
28{
29 // TODO
30}
31
32wxPaletteRefData::~wxPaletteRefData()
33{
34 // TODO
35}
36
37wxPalette::wxPalette()
38{
39}
40
41wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
42{
43 Create(n, red, green, blue);
44}
45
46wxPalette::~wxPalette()
47{
48}
49
50bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
51{
52 UnRef();
53
54 m_refData = new wxPaletteRefData;
55
56 // TODO
57
58 return FALSE;
59}
60
61int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const
62{
63 if ( !m_refData )
64 return FALSE;
65
66 // TODO
67 return FALSE;
68}
69
70bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
71{
72 if ( !m_refData )
73 return FALSE;
74
75 if (index < 0 || index > 255)
76 return FALSE;
77
78 // TODO
79 return FALSE;
80}
81
82