]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/colour.h
wxLogWindoe changed again: now takes a parent frame in ctor
[wxWidgets.git] / include / wx / gtk1 / colour.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: colour.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKCOLOURH__
13#define __GTKCOLOURH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/string.h"
22#include "wx/gdiobj.h"
23#include "wx/palette.h"
24
25//-----------------------------------------------------------------------------
26// classes
27//-----------------------------------------------------------------------------
28
29class wxDC;
30class wxPaintDC;
31class wxBitmap;
32class wxWindow;
33
34class wxColour;
35
36//-----------------------------------------------------------------------------
37// wxColour
38//-----------------------------------------------------------------------------
39
40class wxColour: public wxGDIObject
41{
42 DECLARE_DYNAMIC_CLASS(wxColour)
43
44 public:
45
46 wxColour(void);
47 wxColour( char red, char green, char blue );
48 wxColour( const wxString &colourName );
49 wxColour( const wxColour& col );
50 wxColour( const wxColour* col );
51 ~wxColour(void);
52 wxColour& operator = ( const wxColour& col );
53 wxColour& operator = ( const wxString& colourName );
54 bool operator == ( const wxColour& col );
55 bool operator != ( const wxColour& col );
56 void Set( const unsigned char red, const unsigned char green, const unsigned char blue );
57 unsigned char Red(void) const;
58 unsigned char Green(void) const;
59 unsigned char Blue(void) const;
60 bool Ok(void) const;
61
62 private:
63 public:
64
65 friend wxDC;
66 friend wxPaintDC;
67 friend wxBitmap;
68 friend wxWindow;
69
70 void CalcPixel( GdkColormap *cmap );
71 int GetPixel(void);
72 GdkColor *GetColor(void);
73
74 // no data :-)
75};
76
77#endif // __GTKCOLOURH__