Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:36

0001 #ifndef Fireworks_Core_FWBoxIconBase_h
0002 #define Fireworks_Core_FWBoxIconBase_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWBoxIconBase
0007 //
0008 /**\class FWBoxIconBase FWBoxIconBase.h Fireworks/Core/interface/FWBoxIconBase.h
0009 
0010  Description: Base class for rendering an icon which has a box as an outline
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Thu Feb 19 15:09:30 CST 2009
0019 //
0020 
0021 // system include files
0022 #include "GuiTypes.h"
0023 
0024 // user include files
0025 
0026 // forward declarations
0027 
0028 class FWBoxIconBase {
0029 public:
0030   FWBoxIconBase(unsigned int iEdgeLength);
0031   virtual ~FWBoxIconBase();
0032 
0033   // ---------- const member functions ---------------------
0034   void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const;
0035 
0036   unsigned int edgeLength() const { return m_edgeLength; }
0037   // ---------- static member functions --------------------
0038 
0039   // ---------- member functions ---------------------------
0040 
0041   FWBoxIconBase(const FWBoxIconBase&) = delete;  // stop default
0042 
0043   const FWBoxIconBase& operator=(const FWBoxIconBase&) = delete;  // stop default
0044 
0045 private:
0046   virtual void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const = 0;
0047 
0048   // ---------- member data --------------------------------
0049   unsigned int m_edgeLength;
0050 };
0051 
0052 #endif