1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
// -*- C++ -*-
//
// Package: Core
// Class : FWBoxIconBase
//
// Implementation:
// <Notes on implementation>
//
// Original Author: Chris Jones
// Created: Thu Feb 19 15:09:45 CST 2009
//
// system include files
#include "TVirtualX.h"
// user include files
#include "Fireworks/Core/src/FWBoxIconBase.h"
//
// constants, enums and typedefs
//
//
// static data member definitions
//
//
// constructors and destructor
//
FWBoxIconBase::FWBoxIconBase(unsigned int iEdgeLength) : m_edgeLength(iEdgeLength) {}
// FWBoxIconBase::FWBoxIconBase(const FWBoxIconBase& rhs)
// {
// // do actual copying here;
// }
FWBoxIconBase::~FWBoxIconBase() {}
//
// assignment operators
//
// const FWBoxIconBase& FWBoxIconBase::operator=(const FWBoxIconBase& rhs)
// {
// //An exception safe implementation is
// FWBoxIconBase temp(rhs);
// swap(rhs);
//
// return *this;
// }
//
// member functions
//
//
// const member functions
//
void FWBoxIconBase::draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const {
//draw in background color
gVirtualX->ClearArea(iID, iX, iY, m_edgeLength - 1, m_edgeLength - 1);
//now draw foreground
gVirtualX->DrawLine(iID, iContext, iX, iY, iX + m_edgeLength - 1, iY);
gVirtualX->DrawLine(iID, iContext, iX + m_edgeLength - 1, iY, iX + m_edgeLength - 1, iY + m_edgeLength - 1);
gVirtualX->DrawLine(iID, iContext, iX, iY + m_edgeLength - 1, iX + m_edgeLength - 1, iY + m_edgeLength - 1);
gVirtualX->DrawLine(iID, iContext, iX, iY, iX, iY + m_edgeLength - 1);
drawInsideBox(iID, iContext, iX + 1, iY + 1, m_edgeLength - 2);
}
//
// static member functions
//
|