Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:46:23

0001 // -*- C++ -*-
0002 //
0003 // Package:     Core
0004 // Class  :     FWBoxIconButton
0005 //
0006 // Implementation:
0007 //     <Notes on implementation>
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Thu Feb 19 19:04:10 CST 2009
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "Fireworks/Core/src/FWBoxIconButton.h"
0017 #include "Fireworks/Core/src/FWBoxIconBase.h"
0018 
0019 //
0020 // constants, enums and typedefs
0021 //
0022 
0023 //
0024 // static data member definitions
0025 //
0026 
0027 //
0028 // constructors and destructor
0029 //
0030 FWBoxIconButton::FWBoxIconButton(
0031     const TGWindow* iParent, FWBoxIconBase* iBase, Int_t iID, GContext_t norm, UInt_t option)
0032     : TGButton(iParent, iID, norm, option), m_iconBase(iBase) {
0033   Resize(m_iconBase->edgeLength(), m_iconBase->edgeLength());
0034 }
0035 
0036 // FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
0037 // {
0038 //    // do actual copying here;
0039 // }
0040 
0041 FWBoxIconButton::~FWBoxIconButton() { delete m_iconBase; }
0042 
0043 //
0044 // assignment operators
0045 //
0046 // const FWBoxIconButton& FWBoxIconButton::operator=(const FWBoxIconButton& rhs)
0047 // {
0048 //   //An exception safe implementation is
0049 //   FWBoxIconButton temp(rhs);
0050 //   swap(rhs);
0051 //
0052 //   return *this;
0053 // }
0054 
0055 //
0056 // member functions
0057 //
0058 void FWBoxIconButton::DoRedraw() { m_iconBase->draw(fId, fNormGC, 0, 0); }
0059 
0060 void FWBoxIconButton::setNormCG(GContext_t iContext) { fNormGC = iContext; }
0061 
0062 //
0063 // const member functions
0064 //
0065 
0066 //
0067 // static member functions
0068 //