Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Fireworks
Core
src
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
16
#include "
Fireworks/Core/src/FWBoxIconButton.h
"
17
#include "
Fireworks/Core/src/FWBoxIconBase.h
"
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
{
38
Resize(
m_iconBase
->
edgeLength
(),
m_iconBase
->
edgeLength
());
39
}
40
41
// FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
42
// {
43
// // do actual copying here;
44
// }
45
46
FWBoxIconButton::~FWBoxIconButton
()
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
67
FWBoxIconButton::DoRedraw
()
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
//
FWBoxIconButton::~FWBoxIconButton
virtual ~FWBoxIconButton()
Definition:
FWBoxIconButton.cc:46
FWBoxIconBase::edgeLength
unsigned int edgeLength() const
Definition:
FWBoxIconBase.h:37
FWBoxIconButton::DoRedraw
virtual void DoRedraw()
Definition:
FWBoxIconButton.cc:67
FWBoxIconBase::draw
void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const
Definition:
FWBoxIconBase.cc:65
FWBoxIconButton::FWBoxIconButton
FWBoxIconButton(const TGWindow *iParent, FWBoxIconBase *iBase, Int_t iID=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
Definition:
FWBoxIconButton.cc:30
FWBoxIconButton.h
FWBoxIconButton::m_iconBase
FWBoxIconBase * m_iconBase
Definition:
FWBoxIconButton.h:53
FWBoxIconButton::setNormCG
void setNormCG(GContext_t)
Definition:
FWBoxIconButton.cc:72
FWBoxIconBase.h
FWBoxIconBase
Definition:
FWBoxIconBase.h:28
Generated for CMSSW Reference Manual by
1.8.5