/*  $Id: Colour.h,v 1.3 1997/04/04 08:22:14 jan Exp $

    Part of XPCE
    Designed and implemented by Anjo Anjewierden and Jan Wielemaker
    E-mail: jan@swi.psy.uva.nl

    Copyright (C) 1993-1997 University of Amsterdam. All rights reserved.
*/

#ifndef _PCE_COLOUR_H
#define _PCE_COLOUR_H

PceExternalClass(ClassColour);
class PceColour :public PceObject
{
public:
  PceColour() :
    PceObject(ClassColour)
  {
  }
  PceColour(PceArg name) :
    PceObject(ClassColour, name)
  {
  }
  PceColour(PceArg name, PceArg red) :
    PceObject(ClassColour, name, red)
  {
  }
  PceColour(PceArg name, PceArg red, PceArg green) :
    PceObject(ClassColour, name, red, green)
  {
  }
  PceColour(PceArg name, PceArg red, PceArg green, PceArg blue) :
    PceObject(ClassColour, name, red, green, blue)
  {
  }
};

inline PceColour
AsColour(PceArg a)
{ return *((PceColour*) &a);
}

#endif /*!_PCE_COLOUR_H*/
