CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Fireworks/Core/src/FWColorBoxIcon.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Core
00004 // Class  :     FWColorBoxIcon
00005 // 
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Thu Feb 19 15:42:05 CST 2009
00011 // $Id: FWColorBoxIcon.cc,v 1.1 2009/03/04 16:40:51 chrjones Exp $
00012 //
00013 
00014 // system include files
00015 #include "TVirtualX.h"
00016 
00017 // user include files
00018 #include "Fireworks/Core/src/FWColorBoxIcon.h"
00019 
00020 
00021 //
00022 // constants, enums and typedefs
00023 //
00024 
00025 //
00026 // static data member definitions
00027 //
00028 
00029 //
00030 // constructors and destructor
00031 //
00032 FWColorBoxIcon::FWColorBoxIcon(unsigned int iEdgeLength) :
00033 FWBoxIconBase(iEdgeLength),
00034 m_colorContext(0)
00035 {
00036 }
00037 
00038 // FWColorBoxIcon::FWColorBoxIcon(const FWColorBoxIcon& rhs)
00039 // {
00040 //    // do actual copying here;
00041 // }
00042 
00043 //FWColorBoxIcon::~FWColorBoxIcon()
00044 //{
00045 //}
00046 
00047 //
00048 // assignment operators
00049 //
00050 // const FWColorBoxIcon& FWColorBoxIcon::operator=(const FWColorBoxIcon& rhs)
00051 // {
00052 //   //An exception safe implementation is
00053 //   FWColorBoxIcon temp(rhs);
00054 //   swap(rhs);
00055 //
00056 //   return *this;
00057 // }
00058 
00059 //
00060 // member functions
00061 //
00062 
00063 //
00064 // const member functions
00065 //
00066 void 
00067 FWColorBoxIcon::drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const
00068 {
00069    gVirtualX->FillRectangle(iID, m_colorContext, iX+1, iY+1, iSize-2, iSize-2);
00070 }
00071 
00072 //
00073 // static member functions
00074 //