// Author: Julian Smart, Robert Roebling
// Modified by:
// Created: 17/09/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart, Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#define SHIFT (8*(sizeof(short int)-sizeof(char)))
-IMPLEMENT_DYNAMIC_CLASS(wxColour,wxGDIObject)
-
wxColour::~wxColour()
{
}
unsigned char wxColour::Red() const
{
- wxCHECK_MSG( Ok(), 0, wxT("invalid colour") );
+ wxCHECK_MSG( IsOk(), 0, wxT("invalid colour") );
#if wxUSE_NANOX
return (unsigned char) M_COLDATA->m_color.red ;
unsigned char wxColour::Green() const
{
- wxCHECK_MSG( Ok(), 0, wxT("invalid colour") );
+ wxCHECK_MSG( IsOk(), 0, wxT("invalid colour") );
#if wxUSE_NANOX
return (unsigned char) M_COLDATA->m_color.green ;
unsigned char wxColour::Blue() const
{
- wxCHECK_MSG( Ok(), 0, wxT("invalid colour") );
+ wxCHECK_MSG( IsOk(), 0, wxT("invalid colour") );
#if wxUSE_NANOX
return (unsigned char) M_COLDATA->m_color.blue ;
void wxColour::CalcPixel( WXColormap cmap )
{
- wxCHECK_RET( Ok(), wxT("invalid colour") );
+ wxCHECK_RET( IsOk(), wxT("invalid colour") );
wxCHECK_RET( cmap, wxT("invalid colormap") );
unsigned long wxColour::GetPixel() const
{
- wxCHECK_MSG( Ok(), 0, wxT("invalid colour") );
+ wxCHECK_MSG( IsOk(), 0, wxT("invalid colour") );
return M_COLDATA->m_color.pixel;
}
WXColor *wxColour::GetColor() const
{
- wxCHECK_MSG( Ok(), NULL, wxT("invalid colour") );
+ wxCHECK_MSG( IsOk(), NULL, wxT("invalid colour") );
return (WXColor*) &M_COLDATA->m_color;
}