CMS 3D CMS Logo

FWFramedTextTableCellRenderer.h
Go to the documentation of this file.
1 #ifndef Fireworks_TableWidget_FWFramedTextTableCellRenderer_h
2 #define Fireworks_TableWidget_FWFramedTextTableCellRenderer_h
3 // -*- C++ -*-
4 //
5 // Package: TableWidget
6 // Class : FWFramedTextTableCellRenderer
7 //
17 //
18 // Original Author: Chris Jones
19 // Created: Mon Feb 2 16:43:50 EST 2009
20 //
21 
22 // system include files
23 #include <string>
24 #include "GuiTypes.h"
25 #include "TGResourcePool.h"
26 #include "TGGC.h"
27 
28 // user include files
30 
31 // forward declarations
32 
34 public:
35  static const TGGC& getDefaultGC();
36  static const TGGC& getFillGC();
37 
39 
40  FWFramedTextTableCellRenderer(const TGGC* iTextContext = &(getDefaultGC()),
41  const TGGC* iFillContext = &(getFillGC()),
42  Justify iJustify = kJustifyLeft);
44 
45  // ---------- const member functions ---------------------
46  const TGGC* graphicsContext() const { return m_context; }
47  UInt_t width() const override;
48  UInt_t height() const override;
49 
50  const TGFont* font() const;
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  void setData(const std::string&);
55  void setGraphicsContext(const TGGC* iContext) { m_context = iContext; }
56  void setJustify(Justify);
57 
58  void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override;
59 
60 private:
61  FWFramedTextTableCellRenderer(const FWFramedTextTableCellRenderer&) = delete; // stop default
62 
63  const FWFramedTextTableCellRenderer& operator=(const FWFramedTextTableCellRenderer&) = delete; // stop default
64 
65  // ---------- member data --------------------------------
66  const TGGC* m_context;
67  const TGGC* m_frameContext;
68  TGFont* m_font;
71 };
72 
73 #endif
FWFramedTextTableCellRenderer::m_font
TGFont * m_font
Definition: FWFramedTextTableCellRenderer.h:68
FWFramedTextTableCellRenderer::operator=
const FWFramedTextTableCellRenderer & operator=(const FWFramedTextTableCellRenderer &)=delete
FWFramedTextTableCellRenderer::FWFramedTextTableCellRenderer
FWFramedTextTableCellRenderer(const TGGC *iTextContext=&(getDefaultGC()), const TGGC *iFillContext=&(getFillGC()), Justify iJustify=kJustifyLeft)
Definition: FWFramedTextTableCellRenderer.cc:33
FWFramedTextTableCellRenderer::height
UInt_t height() const override
returns the minimum height of the cell to which the renderer is representing
Definition: FWFramedTextTableCellRenderer.cc:99
FWFramedTextTableCellRenderer::getFillGC
static const TGGC & getFillGC()
Definition: FWFramedTextTableCellRenderer.cc:111
FWFramedTextTableCellRenderer::setData
void setData(const std::string &)
Definition: FWFramedTextTableCellRenderer.cc:86
FWFramedTextTableCellRenderer::m_data
std::string m_data
Definition: FWFramedTextTableCellRenderer.h:69
FWFramedTextTableCellRenderer::kJustifyCenter
Definition: FWFramedTextTableCellRenderer.h:38
FWFramedTextTableCellRenderer
Definition: FWFramedTextTableCellRenderer.h:33
FWFramedTextTableCellRenderer::setJustify
void setJustify(Justify)
Definition: FWFramedTextTableCellRenderer.cc:88
FWFramedTextTableCellRenderer::kJustifyLeft
Definition: FWFramedTextTableCellRenderer.h:38
FWFramedTextTableCellRenderer::kJustifyRight
Definition: FWFramedTextTableCellRenderer.h:38
FWFramedTextTableCellRenderer::m_frameContext
const TGGC * m_frameContext
Definition: FWFramedTextTableCellRenderer.h:67
FWFramedTextTableCellRenderer::Justify
Justify
Definition: FWFramedTextTableCellRenderer.h:38
FWTableCellRendererBase
Definition: FWTableCellRendererBase.h:44
FWFramedTextTableCellRenderer::width
UInt_t width() const override
returns the minimum width of the cell to which the renderer is representing
Definition: FWFramedTextTableCellRenderer.cc:93
FWFramedTextTableCellRenderer::m_context
const TGGC * m_context
Definition: FWFramedTextTableCellRenderer.h:66
FWFramedTextTableCellRenderer::graphicsContext
const TGGC * graphicsContext() const
Definition: FWFramedTextTableCellRenderer.h:46
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWFramedTextTableCellRenderer::~FWFramedTextTableCellRenderer
~FWFramedTextTableCellRenderer() override
Definition: FWFramedTextTableCellRenderer.cc:46
FWFramedTextTableCellRenderer::setGraphicsContext
void setGraphicsContext(const TGGC *iContext)
Definition: FWFramedTextTableCellRenderer.h:55
FWTableCellRendererBase.h
FWFramedTextTableCellRenderer::font
const TGFont * font() const
Definition: FWFramedTextTableCellRenderer.cc:101
FWFramedTextTableCellRenderer::m_justify
Justify m_justify
Definition: FWFramedTextTableCellRenderer.h:70
FWFramedTextTableCellRenderer::getDefaultGC
static const TGGC & getDefaultGC()
Definition: FWFramedTextTableCellRenderer.cc:106
FWFramedTextTableCellRenderer::draw
void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override
Definition: FWFramedTextTableCellRenderer.cc:63