]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/palette.cpp
fixed typo : _ instead of wxT
[wxWidgets.git] / src / stubs / palette.cpp
CommitLineData
93cf77c0
JS
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
93cf77c0 18IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
93cf77c0
JS
19
20/*
21 * Palette
22 *
23 */
24
25wxPaletteRefData::wxPaletteRefData()
26{
27 // TODO
28}
29
30wxPaletteRefData::~wxPaletteRefData()
31{
32 // TODO
33}
34
35wxPalette::wxPalette()
36{
37}
38
39wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
40{
41 Create(n, red, green, blue);
42}
43
44wxPalette::~wxPalette()
45{
46}
47
93cf77c0
JS
48bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
49{
50 UnRef();
51
52 m_refData = new wxPaletteRefData;
53
54 // TODO
55
56 return FALSE;
57}
58
59int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const
60{
61 if ( !m_refData )
62 return FALSE;
63
64 // TODO
65 return FALSE;
66}
67
68bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
69{
70 if ( !m_refData )
71 return FALSE;
72
73 if (index < 0 || index > 255)
74 return FALSE;
75
76 // TODO
77 return FALSE;
78}
79
80