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
(
31
const
TGWindow* iParent,
FWBoxIconBase
* iBase, Int_t iID, GContext_t norm, UInt_t
option
)
32
: TGButton(iParent, iID, norm,
option
), m_iconBase(iBase) {
33
Resize(
m_iconBase
->
edgeLength
(),
m_iconBase
->
edgeLength
());
34
}
35
36
// FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
37
// {
38
// // do actual copying here;
39
// }
40
41
FWBoxIconButton::~FWBoxIconButton
() {
delete
m_iconBase
; }
42
43
//
44
// assignment operators
45
//
46
// const FWBoxIconButton& FWBoxIconButton::operator=(const FWBoxIconButton& rhs)
47
// {
48
// //An exception safe implementation is
49
// FWBoxIconButton temp(rhs);
50
// swap(rhs);
51
//
52
// return *this;
53
// }
54
55
//
56
// member functions
57
//
58
void
FWBoxIconButton::DoRedraw
() {
m_iconBase
->
draw
(fId, fNormGC, 0, 0); }
59
60
void
FWBoxIconButton::setNormCG
(GContext_t iContext) { fNormGC = iContext; }
61
62
//
63
// const member functions
64
//
65
66
//
67
// static member functions
68
//
FWBoxIconButton::DoRedraw
void DoRedraw() override
Definition:
FWBoxIconButton.cc:58
fileinputsource_cfi.option
option
Definition:
fileinputsource_cfi.py:87
FWBoxIconBase::draw
void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const
Definition:
FWBoxIconBase.cc:58
FWBoxIconButton::m_iconBase
FWBoxIconBase * m_iconBase
Definition:
FWBoxIconButton.h:54
FWBoxIconButton::~FWBoxIconButton
~FWBoxIconButton() override
Definition:
FWBoxIconButton.cc:41
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
FWBoxIconBase.h
FWBoxIconBase::edgeLength
unsigned int edgeLength() const
Definition:
FWBoxIconBase.h:36
FWBoxIconButton::setNormCG
void setNormCG(GContext_t)
Definition:
FWBoxIconButton.cc:60
FWBoxIconBase
Definition:
FWBoxIconBase.h:28
Generated for CMSSW Reference Manual by
1.8.16