/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/generic/paletteg.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/generic/paletteg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 10 months ago) by william
File MIME type: text/plain
File size: 1650 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/paletteg.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // RCS-ID: $Id: paletteg.h 42752 2006-10-30 19:26:48Z VZ $
7 // Copyright: (c) 1998 Robert Roebling and Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __WX_PALETTEG_H__
13 #define __WX_PALETTEG_H__
14
15 #include "wx/defs.h"
16 #include "wx/object.h"
17 #include "wx/gdiobj.h"
18 #include "wx/gdicmn.h"
19
20 //-----------------------------------------------------------------------------
21 // classes
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxPalette;
25
26 //-----------------------------------------------------------------------------
27 // wxPalette
28 //-----------------------------------------------------------------------------
29
30 class WXDLLIMPEXP_CORE wxPalette: public wxPaletteBase
31 {
32 public:
33 wxPalette();
34 wxPalette( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue );
35 virtual ~wxPalette();
36 virtual bool Ok() const { return IsOk(); }
37 virtual bool IsOk() const;
38
39 bool Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
40 int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;
41 bool GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;
42
43 virtual int GetColoursCount() const;
44
45 private:
46 DECLARE_DYNAMIC_CLASS(wxPalette)
47 };
48
49 #endif // __WX_PALETTEG_H__

  ViewVC Help
Powered by ViewVC 1.1.22