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
// $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
17
#include "
Fireworks/Core/src/FWBoxIconButton.h
"
18
#include "
Fireworks/Core/src/FWBoxIconBase.h
"
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
{
39
Resize(
m_iconBase
->
edgeLength
(),
m_iconBase
->
edgeLength
());
40
}
41
42
// FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
43
// {
44
// // do actual copying here;
45
// }
46
47
FWBoxIconButton::~FWBoxIconButton
()
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
68
FWBoxIconButton::DoRedraw
()
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
//
FWBoxIconButton::~FWBoxIconButton
virtual ~FWBoxIconButton()
Definition:
FWBoxIconButton.cc:47
FWBoxIconBase::edgeLength
unsigned int edgeLength() const
Definition:
FWBoxIconBase.h:38
FWBoxIconButton::DoRedraw
virtual void DoRedraw()
Definition:
FWBoxIconButton.cc:68
FWBoxIconBase::draw
void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const
Definition:
FWBoxIconBase.cc:66
FWBoxIconButton::FWBoxIconButton
FWBoxIconButton(const TGWindow *iParent, FWBoxIconBase *iBase, Int_t iID=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
Definition:
FWBoxIconButton.cc:31
evf::UInt_t
unsigned int UInt_t
Definition:
FUTypes.h:12
FWBoxIconButton.h
FWBoxIconButton::m_iconBase
FWBoxIconBase * m_iconBase
Definition:
FWBoxIconButton.h:54
FWBoxIconButton::setNormCG
void setNormCG(GContext_t)
Definition:
FWBoxIconButton.cc:73
FWBoxIconBase.h
FWBoxIconBase
Definition:
FWBoxIconBase.h:29
Generated for CMSSW Reference Manual by
1.8.5