Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:01:18

0001 #ifndef Fireworks_Core_FWColorBoxIcon_h
0002 #define Fireworks_Core_FWColorBoxIcon_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWColorBoxIcon
0007 //
0008 /**\class FWColorBoxIcon FWColorBoxIcon.h Fireworks/Core/interface/FWColorBoxIcon.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Thu Feb 19 15:42:03 CST 2009
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "Fireworks/Core/src/FWBoxIconBase.h"
0025 
0026 // forward declarations
0027 
0028 class FWColorBoxIcon : public FWBoxIconBase {
0029 public:
0030   FWColorBoxIcon(unsigned int iEdgeLength);
0031   //virtual ~FWColorBoxIcon();
0032 
0033   // ---------- const member functions ---------------------
0034 
0035   // ---------- static member functions --------------------
0036 
0037   // ---------- member functions ---------------------------
0038   void setColor(GContext_t iColorContext) { m_colorContext = iColorContext; }
0039 
0040   FWColorBoxIcon(const FWColorBoxIcon&) = delete;  // stop default
0041 
0042   const FWColorBoxIcon& operator=(const FWColorBoxIcon&) = delete;  // stop default
0043 
0044 private:
0045   void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const override;
0046 
0047   // ---------- member data --------------------------------
0048   GContext_t m_colorContext;
0049 };
0050 
0051 #endif