]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/colour.h
Fixed wxDatePickerCtrl under OS X
[wxWidgets.git] / include / wx / gtk / colour.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
edc536d3 2// Name: wx/gtk/colour.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
0416c418
PC
10#ifndef _WX_GTK_COLOUR_H_
11#define _WX_GTK_COLOUR_H_
c801d85f
KB
12
13//-----------------------------------------------------------------------------
14// wxColour
15//-----------------------------------------------------------------------------
16
40989e46 17class WXDLLIMPEXP_CORE wxColour : public wxColourBase
c801d85f 18{
e4a81a2e 19public:
edc536d3
WS
20 // constructors
21 // ------------
40989e46 22 DEFINE_STD_WXCOLOUR_CONSTRUCTORS
c6685317 23 wxColour(const GdkColor& gdkColor);
401eb3de 24
d3c7fc99 25 virtual ~wxColour();
c89f5c02 26
8f884a0d
VZ
27 bool operator==(const wxColour& col) const;
28 bool operator!=(const wxColour& col) const { return !(*this == col); }
c89f5c02 29
c89f5c02
RR
30 unsigned char Red() const;
31 unsigned char Green() const;
32 unsigned char Blue() const;
dc888336 33 unsigned char Alpha() const;
c89f5c02 34
c89f5c02
RR
35 // Implementation part
36 void CalcPixel( GdkColormap *cmap );
37 int GetPixel() const;
c6685317 38 const GdkColor *GetColor() const;
c0ac1c32 39
68dda785 40protected:
aea95b1c
VZ
41 virtual void
42 InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
43
e86d4e59 44 virtual bool FromString(const wxString& str);
68dda785
VZ
45
46private:
c89f5c02 47 DECLARE_DYNAMIC_CLASS(wxColour)
c801d85f 48};
c0ac1c32 49
0416c418 50#endif // _WX_GTK_COLOUR_H_