CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWColorBoxIcon.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWColorBoxIcon
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Thu Feb 19 15:42:05 CST 2009
11 //
12 
13 // system include files
14 #include "TVirtualX.h"
15 
16 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
31 FWColorBoxIcon::FWColorBoxIcon(unsigned int iEdgeLength) :
32 FWBoxIconBase(iEdgeLength),
33 m_colorContext(0)
34 {
35 }
36 
37 // FWColorBoxIcon::FWColorBoxIcon(const FWColorBoxIcon& rhs)
38 // {
39 // // do actual copying here;
40 // }
41 
42 //FWColorBoxIcon::~FWColorBoxIcon()
43 //{
44 //}
45 
46 //
47 // assignment operators
48 //
49 // const FWColorBoxIcon& FWColorBoxIcon::operator=(const FWColorBoxIcon& rhs)
50 // {
51 // //An exception safe implementation is
52 // FWColorBoxIcon temp(rhs);
53 // swap(rhs);
54 //
55 // return *this;
56 // }
57 
58 //
59 // member functions
60 //
61 
62 //
63 // const member functions
64 //
65 void
66 FWColorBoxIcon::drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const
67 {
68  gVirtualX->FillRectangle(iID, m_colorContext, iX+1, iY+1, iSize-2, iSize-2);
69 }
70 
71 //
72 // static member functions
73 //
void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const
FWColorBoxIcon(unsigned int iEdgeLength)
GContext_t m_colorContext