Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
// -*- C++ -*-
//
// Package:     Core
// Class  :     FWBoxIconButton
//
// Implementation:
//     <Notes on implementation>
//
// Original Author:  Chris Jones
//         Created:  Thu Feb 19 19:04:10 CST 2009
//

// system include files

// user include files
#include "Fireworks/Core/src/FWBoxIconButton.h"
#include "Fireworks/Core/src/FWBoxIconBase.h"

//
// constants, enums and typedefs
//

//
// static data member definitions
//

//
// constructors and destructor
//
FWBoxIconButton::FWBoxIconButton(
    const TGWindow* iParent, FWBoxIconBase* iBase, Int_t iID, GContext_t norm, UInt_t option)
    : TGButton(iParent, iID, norm, option), m_iconBase(iBase) {
  Resize(m_iconBase->edgeLength(), m_iconBase->edgeLength());
}

// FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
// {
//    // do actual copying here;
// }

FWBoxIconButton::~FWBoxIconButton() { delete m_iconBase; }

//
// assignment operators
//
// const FWBoxIconButton& FWBoxIconButton::operator=(const FWBoxIconButton& rhs)
// {
//   //An exception safe implementation is
//   FWBoxIconButton temp(rhs);
//   swap(rhs);
//
//   return *this;
// }

//
// member functions
//
void FWBoxIconButton::DoRedraw() { m_iconBase->draw(fId, fNormGC, 0, 0); }

void FWBoxIconButton::setNormCG(GContext_t iContext) { fNormGC = iContext; }

//
// const member functions
//

//
// static member functions
//