CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWBoxIconButton.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWBoxIconButton
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Thu Feb 19 19:04:10 CST 2009
11 //
12 
13 // system include files
14 
15 // user include files
18 
19 //
20 // constants, enums and typedefs
21 //
22 
23 //
24 // static data member definitions
25 //
26 
27 //
28 // constructors and destructor
29 //
30 FWBoxIconButton::FWBoxIconButton(const TGWindow* iParent,
31  FWBoxIconBase* iBase,
32  Int_t iID,
33  GContext_t norm ,
34  UInt_t option):
35 TGButton(iParent,iID,norm,option),
36 m_iconBase(iBase)
37 {
39 }
40 
41 // FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
42 // {
43 // // do actual copying here;
44 // }
45 
47 {
48  delete m_iconBase;
49 }
50 
51 //
52 // assignment operators
53 //
54 // const FWBoxIconButton& FWBoxIconButton::operator=(const FWBoxIconButton& rhs)
55 // {
56 // //An exception safe implementation is
57 // FWBoxIconButton temp(rhs);
58 // swap(rhs);
59 //
60 // return *this;
61 // }
62 
63 //
64 // member functions
65 //
66 void
68 {
69  m_iconBase->draw(fId,fNormGC,0,0);
70 }
71 
72 void FWBoxIconButton::setNormCG(GContext_t iContext)
73 {
74  fNormGC = iContext;
75 }
76 
77 //
78 // const member functions
79 //
80 
81 //
82 // static member functions
83 //
virtual ~FWBoxIconButton()
unsigned int edgeLength() const
Definition: FWBoxIconBase.h:37
virtual void DoRedraw()
void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const
FWBoxIconButton(const TGWindow *iParent, FWBoxIconBase *iBase, Int_t iID=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
FWBoxIconBase * m_iconBase
void setNormCG(GContext_t)