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 // $Id: FWBoxIconButton.cc,v 1.3 2010/06/18 10:17:14 yana Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
31 FWBoxIconButton::FWBoxIconButton(const TGWindow* iParent,
32  FWBoxIconBase* iBase,
33  Int_t iID,
34  GContext_t norm ,
35  UInt_t option):
36 TGButton(iParent,iID,norm,option),
37 m_iconBase(iBase)
38 {
40 }
41 
42 // FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
43 // {
44 // // do actual copying here;
45 // }
46 
48 {
49  delete m_iconBase;
50 }
51 
52 //
53 // assignment operators
54 //
55 // const FWBoxIconButton& FWBoxIconButton::operator=(const FWBoxIconButton& rhs)
56 // {
57 // //An exception safe implementation is
58 // FWBoxIconButton temp(rhs);
59 // swap(rhs);
60 //
61 // return *this;
62 // }
63 
64 //
65 // member functions
66 //
67 void
69 {
70  m_iconBase->draw(fId,fNormGC,0,0);
71 }
72 
73 void FWBoxIconButton::setNormCG(GContext_t iContext)
74 {
75  fNormGC = iContext;
76 }
77 
78 //
79 // const member functions
80 //
81 
82 //
83 // static member functions
84 //
virtual ~FWBoxIconButton()
unsigned int edgeLength() const
Definition: FWBoxIconBase.h:38
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)
unsigned int UInt_t
Definition: FUTypes.h:12
FWBoxIconBase * m_iconBase
void setNormCG(GContext_t)