TGTableCell Class Reference

#include <TGTableCell.h>

Inheritance diagram for TGTableCell:

TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TGTableHeader TGTableHeader List of all members.

Public Member Functions

 TGTableCell (const TGWindow *p=0, TGTable *table=0, TGString *label=0, UInt_t row=0, UInt_t column=0, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0, Bool_t resize=kTRUE)
 TGTableCell (const TGWindow *p, TGTable *table, const char *label, UInt_t row=0, UInt_t column=0, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0, Bool_t resize=kTRUE)
virtual ~TGTableCell ()
virtual void DrawCopy (Handle_t id, Int_t x, Int_t y)
virtual void SetLabel (const char *label)
virtual void SetImage (TGPicture *image)
virtual void SetTextJustify (Int_t tmode)
virtual void SetFont (FontStruct_t font)
virtual void SetFont (const char *fontName)
virtual void Select ()
virtual void SelectRow ()
virtual void SelectColumn ()
virtual UInt_t GetColumn () const
virtual UInt_t GetRow () const
virtual TGStringGetLabel () const
virtual TGPictureGetImage () const
virtual UInt_t GetWidth () const
virtual UInt_t GetHeight () const
virtual TGDimension GetSize () const
virtual Int_t GetTextJustify () const
 TGTableCell (const TGWindow *p=0, TGTable *table=0, TGString *label=0, UInt_t row=0, UInt_t column=0, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0, Bool_t resize=kTRUE)
 TGTableCell (const TGWindow *p, TGTable *table, const char *label, UInt_t row=0, UInt_t column=0, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0, Bool_t resize=kTRUE)
virtual ~TGTableCell ()
virtual void DrawCopy (Handle_t id, Int_t x, Int_t y)
virtual void SetLabel (const char *label)
virtual void SetImage (TGPicture *image)
virtual void SetTextJustify (Int_t tmode)
virtual void SetFont (FontStruct_t font)
virtual void SetFont (const char *fontName)
virtual void Select ()
virtual void SelectRow ()
virtual void SelectColumn ()
virtual UInt_t GetColumn () const
virtual UInt_t GetRow () const
virtual TGStringGetLabel () const
virtual TGPictureGetImage () const
virtual UInt_t GetWidth () const
virtual UInt_t GetHeight () const
virtual TGDimension GetSize () const
virtual Int_t GetTextJustify () const

Static Public Member Functions

static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()
static FontStruct_t GetDefaultFontStruct ()
static const TGGCGetDefaultGC ()

Protected Member Functions

virtual void DoRedraw ()
virtual void DrawBorder ()
virtual void DrawBorder (Handle_t id, Int_t x, Int_t y)
virtual void MoveDraw (Int_t x, Int_t y)
virtual void Resize (UInt_t width, UInt_t height)
virtual void Resize (TGDimension newsize)
virtual void Highlight ()
void Init (Bool_t resize)
virtual void DoRedraw ()
virtual void DrawBorder ()
virtual void DrawBorder (Handle_t id, Int_t x, Int_t y)
virtual void MoveDraw (Int_t x, Int_t y)
virtual void Resize (UInt_t width, UInt_t height)
virtual void Resize (TGDimension newsize)
virtual void Highlight ()
void Init (Bool_t resize)

Protected Attributes

TGStringfLabel
TGToolTipfTip
Bool_t fReadOnly
Bool_t fEnabled
Int_t fTMode
TGPicturefImage
UInt_t fTWidth
UInt_t fTHeight
FontStruct_t fFontStruct
Bool_t fHasOwnFont
GContext_t fNormGC
UInt_t fColumn
UInt_t fRow
TGTablefTable
TGStringfLabel
TGToolTipfTip
TGPicturefImage
TGTablefTable

Static Protected Attributes

static const TGGCfgDefaultGC
static const TGFontfgDefaultFont
static const TGGCfgDefaultGC
static const TGFontfgDefaultFont

Friends

class TGTable

Detailed Description

Definition at line 26 of file TGTableCell.h.


Constructor & Destructor Documentation

TGTableCell::TGTableCell ( const TGWindow p = 0,
TGTable table = 0,
TGString label = 0,
UInt_t  row = 0,
UInt_t  column = 0,
UInt_t  width = 80,
UInt_t  height = 25,
GContext_t  norm = GetDefaultGC()(),
FontStruct_t  font = GetDefaultFontStruct(),
UInt_t  option = 0,
Bool_t  resize = kTRUE 
)

Definition at line 42 of file TGTableCell.cxx.

References Init().

TGTableCell::TGTableCell ( const TGWindow p,
TGTable table,
const char *  label,
UInt_t  row = 0,
UInt_t  column = 0,
UInt_t  width = 80,
UInt_t  height = 25,
GContext_t  norm = GetDefaultGC()(),
FontStruct_t  font = GetDefaultFontStruct(),
UInt_t  option = 0,
Bool_t  resize = kTRUE 
)

Definition at line 64 of file TGTableCell.cxx.

References fLabel, fNormGC, and Init().

TGTableCell::~TGTableCell (  )  [virtual]

Definition at line 127 of file TGTableCell.cxx.

References fImage, fLabel, and fTip.

TGTableCell::TGTableCell ( const TGWindow p = 0,
TGTable table = 0,
TGString label = 0,
UInt_t  row = 0,
UInt_t  column = 0,
UInt_t  width = 80,
UInt_t  height = 25,
GContext_t  norm = GetDefaultGC()(),
FontStruct_t  font = GetDefaultFontStruct(),
UInt_t  option = 0,
Bool_t  resize = kTRUE 
)

TGTableCell::TGTableCell ( const TGWindow p,
TGTable table,
const char *  label,
UInt_t  row = 0,
UInt_t  column = 0,
UInt_t  width = 80,
UInt_t  height = 25,
GContext_t  norm = GetDefaultGC()(),
FontStruct_t  font = GetDefaultFontStruct(),
UInt_t  option = 0,
Bool_t  resize = kTRUE 
)

virtual TGTableCell::~TGTableCell (  )  [virtual]


Member Function Documentation

void TGTableCell::DoRedraw (  )  [protected, virtual]

Reimplemented from TGFrame.

Definition at line 172 of file TGTableCell.cxx.

References TGFrame::DoRedraw(), TGString::Draw(), TGFrame::fHeight, TGObject::fId, fLabel, fNormGC, fTHeight, fTMode, fTWidth, TGFrame::fWidth, kTextBottom, kTextLeft, kTextRight, kTextTop, x, and y.

Referenced by MoveDraw().

void TGTableCell::DrawBorder (  )  [protected, virtual]

Reimplemented from TGFrame.

Definition at line 256 of file TGTableCell.cxx.

References TGFrame::fHeight, TGObject::fId, fNormGC, TGFrame::fWidth, and gVirtualX.

Referenced by DrawCopy().

void TGTableCell::DrawBorder ( Handle_t  id,
Int_t  x,
Int_t  y 
) [protected, virtual]

Definition at line 265 of file TGTableCell.cxx.

References TGFrame::fHeight, fNormGC, TGFrame::fWidth, and gVirtualX.

void TGTableCell::MoveDraw ( Int_t  x,
Int_t  y 
) [protected, virtual]

Definition at line 206 of file TGTableCell.cxx.

References DoRedraw(), and TGFrame::Move().

void TGTableCell::Resize ( UInt_t  width,
UInt_t  height 
) [protected, virtual]

Reimplemented from TGFrame.

Definition at line 217 of file TGTableCell.cxx.

References TGFrame::fHeight, TGFrame::fWidth, TGFrame::Layout(), and TGFrame::Resize().

Referenced by Init(), TGTableHeader::Resize(), and Resize().

void TGTableCell::Resize ( TGDimension  newsize  )  [protected, virtual]

Reimplemented from TGFrame.

Definition at line 228 of file TGTableCell.cxx.

References TGDimension::fHeight, TGDimension::fWidth, and Resize().

void TGTableCell::Highlight (  )  [protected, virtual]

Definition at line 273 of file TGTableCell.cxx.

void TGTableCell::Init ( Bool_t  resize  )  [protected]

Definition at line 137 of file TGTableCell.cxx.

References fColumn, fFontStruct, TGFrame::fgWhitePixel, TGFrame::fHeight, fLabel, fRow, fTable, fTHeight, fTWidth, TGFrame::fWidth, TGFrame::GetBackground(), TGTable::GetColumnHeader(), GetHeight(), TGString::GetLength(), TGTable::GetRowBackground(), TGTable::GetRowHeader(), TGString::GetString(), GetWidth(), gVirtualX, Resize(), and TGFrame::SetBackgroundColor().

Referenced by TGTableCell().

FontStruct_t TGTableCell::GetDefaultFontStruct (  )  [static]

Definition at line 236 of file TGTableCell.cxx.

References fgDefaultFont, gClient, TGResourcePool::GetDefaultFont(), TGFont::GetFontStruct(), and TGClient::GetResourcePool().

Referenced by G__G__Gui3_380_0_9(), and G__setup_memfuncTGTableCell().

const TGGC & TGTableCell::GetDefaultGC (  )  [static]

Definition at line 246 of file TGTableCell.cxx.

References fgDefaultGC, gClient, TGResourcePool::GetFrameGC(), and TGClient::GetResourcePool().

Referenced by G__G__Gui3_380_0_10(), and G__setup_memfuncTGTableCell().

void TGTableCell::DrawCopy ( Handle_t  id,
Int_t  x,
Int_t  y 
) [virtual]

Reimplemented from TGFrame.

Definition at line 293 of file TGTableCell.cxx.

References TGString::Draw(), DrawBorder(), TGFrame::fgBlackPixel, TGFrame::fgWhitePixel, TGFrame::fHeight, fLabel, fNormGC, fTHeight, fTMode, fTWidth, TGFrame::fWidth, gVirtualX, kTextBottom, kTextLeft, kTextRight, and kTextTop.

void TGTableCell::SetLabel ( const char *  label  )  [virtual]

Definition at line 339 of file TGTableCell.cxx.

References fFontStruct, fLabel, fTHeight, fTWidth, TGString::GetLength(), TGString::GetString(), gVirtualX, and TGString::SetString().

Referenced by TGTableHeader::SetLabel(), and TGTable::UpdateView().

void TGTableCell::SetImage ( TGPicture image  )  [virtual]

Definition at line 354 of file TGTableCell.cxx.

References fImage, and image.

void TGTableCell::SetTextJustify ( Int_t  tmode  )  [virtual]

Definition at line 405 of file TGTableCell.cxx.

References fTMode.

void TGTableCell::SetFont ( FontStruct_t  font  )  [virtual]

Definition at line 369 of file TGTableCell.cxx.

References TGObject::fClient, fFontStruct, fHasOwnFont, TGGCPool::FindGC(), fNormGC, gClient, TGGC::GetAttributes(), TGGC::GetGC(), TGGCPool::GetGC(), TGResourcePool::GetGCPool(), TGClient::GetResourcePool(), gVirtualX, kTRUE, TGClient::NeedRedraw(), and TGGC::SetFont().

Referenced by SetFont().

void TGTableCell::SetFont ( const char *  fontName  )  [virtual]

Definition at line 393 of file TGTableCell.cxx.

References TGObject::fClient, TGClient::GetFont(), TGFont::GetFontStruct(), and SetFont().

void TGTableCell::Select (  )  [virtual]

Definition at line 413 of file TGTableCell.cxx.

void TGTableCell::SelectRow (  )  [virtual]

Definition at line 421 of file TGTableCell.cxx.

void TGTableCell::SelectColumn (  )  [virtual]

Definition at line 429 of file TGTableCell.cxx.

virtual UInt_t TGTableCell::GetColumn (  )  const [inline, virtual]

Definition at line 100 of file TGTableCell.h.

References fColumn.

virtual UInt_t TGTableCell::GetRow (  )  const [inline, virtual]

Definition at line 101 of file TGTableCell.h.

References fRow.

virtual TGString* TGTableCell::GetLabel (  )  const [inline, virtual]

Definition at line 102 of file TGTableCell.h.

References fLabel.

Referenced by TGTable::FindCell(), and TGTable::Show().

virtual TGPicture* TGTableCell::GetImage (  )  const [inline, virtual]

Definition at line 103 of file TGTableCell.h.

References fImage.

virtual UInt_t TGTableCell::GetWidth (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 104 of file TGTableCell.h.

References TGFrame::fWidth.

Referenced by Init(), TGTable::SetHeaderBackground(), and TGTableHeaderFrame::TGTableHeaderFrame().

virtual UInt_t TGTableCell::GetHeight (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 105 of file TGTableCell.h.

References TGFrame::fHeight.

Referenced by Init(), TGTable::SetHeaderBackground(), and TGTableHeaderFrame::TGTableHeaderFrame().

virtual TGDimension TGTableCell::GetSize (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 106 of file TGTableCell.h.

References TGFrame::fHeight, and TGFrame::fWidth.

virtual Int_t TGTableCell::GetTextJustify (  )  const [inline, virtual]

Definition at line 107 of file TGTableCell.h.

References fTMode.

virtual void TGTableCell::DoRedraw (  )  [protected, virtual]

Reimplemented from TGFrame.

virtual void TGTableCell::DrawBorder (  )  [protected, virtual]

Reimplemented from TGFrame.

virtual void TGTableCell::DrawBorder ( Handle_t  id,
Int_t  x,
Int_t  y 
) [protected, virtual]

virtual void TGTableCell::MoveDraw ( Int_t  x,
Int_t  y 
) [protected, virtual]

virtual void TGTableCell::Resize ( UInt_t  width,
UInt_t  height 
) [protected, virtual]

Reimplemented from TGFrame.

virtual void TGTableCell::Resize ( TGDimension  newsize  )  [protected, virtual]

Reimplemented from TGFrame.

virtual void TGTableCell::Highlight (  )  [protected, virtual]

void TGTableCell::Init ( Bool_t  resize  )  [protected]

static FontStruct_t TGTableCell::GetDefaultFontStruct (  )  [static]

static const TGGC& TGTableCell::GetDefaultGC (  )  [static]

virtual void TGTableCell::DrawCopy ( Handle_t  id,
Int_t  x,
Int_t  y 
) [virtual]

Reimplemented from TGFrame.

virtual void TGTableCell::SetLabel ( const char *  label  )  [virtual]

virtual void TGTableCell::SetImage ( TGPicture image  )  [virtual]

virtual void TGTableCell::SetTextJustify ( Int_t  tmode  )  [virtual]

virtual void TGTableCell::SetFont ( FontStruct_t  font  )  [virtual]

virtual void TGTableCell::SetFont ( const char *  fontName  )  [virtual]

virtual void TGTableCell::Select (  )  [virtual]

virtual void TGTableCell::SelectRow (  )  [virtual]

virtual void TGTableCell::SelectColumn (  )  [virtual]

virtual UInt_t TGTableCell::GetColumn (  )  const [inline, virtual]

Definition at line 100 of file TGTableCell.h.

References fColumn.

virtual UInt_t TGTableCell::GetRow (  )  const [inline, virtual]

Definition at line 101 of file TGTableCell.h.

References fRow.

virtual TGString* TGTableCell::GetLabel (  )  const [inline, virtual]

Definition at line 102 of file TGTableCell.h.

References fLabel.

virtual TGPicture* TGTableCell::GetImage (  )  const [inline, virtual]

Definition at line 103 of file TGTableCell.h.

References fImage.

virtual UInt_t TGTableCell::GetWidth (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 104 of file TGTableCell.h.

References TGFrame::fWidth.

virtual UInt_t TGTableCell::GetHeight (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 105 of file TGTableCell.h.

References TGFrame::fHeight.

virtual TGDimension TGTableCell::GetSize (  )  const [inline, virtual]

Reimplemented from TGFrame.

Definition at line 106 of file TGTableCell.h.

References TGFrame::fHeight, and TGFrame::fWidth.

virtual Int_t TGTableCell::GetTextJustify (  )  const [inline, virtual]

Definition at line 107 of file TGTableCell.h.

References fTMode.


Friends And Related Function Documentation

TGTable [friend]

Definition at line 28 of file TGTableCell.h.


Member Data Documentation

TGString* TGTableCell::fLabel [protected]

Definition at line 31 of file TGTableCell.h.

Referenced by DoRedraw(), DrawCopy(), GetLabel(), TGTableHeader::Init(), Init(), TGTableHeader::SetDefaultLabel(), SetLabel(), TGTableCell(), and ~TGTableCell().

TGToolTip* TGTableCell::fTip [protected]

Definition at line 32 of file TGTableCell.h.

Referenced by ~TGTableCell().

Bool_t TGTableCell::fReadOnly [protected]

Definition at line 33 of file TGTableCell.h.

Bool_t TGTableCell::fEnabled [protected]

Definition at line 34 of file TGTableCell.h.

Int_t TGTableCell::fTMode [protected]

Definition at line 35 of file TGTableCell.h.

Referenced by DoRedraw(), DrawCopy(), GetTextJustify(), and SetTextJustify().

TGPicture* TGTableCell::fImage [protected]

Definition at line 36 of file TGTableCell.h.

Referenced by GetImage(), SetImage(), and ~TGTableCell().

UInt_t TGTableCell::fTWidth [protected]

Definition at line 37 of file TGTableCell.h.

Referenced by DoRedraw(), DrawCopy(), TGTableHeader::Init(), Init(), and SetLabel().

UInt_t TGTableCell::fTHeight [protected]

Definition at line 38 of file TGTableCell.h.

Referenced by DoRedraw(), DrawCopy(), TGTableHeader::Init(), Init(), and SetLabel().

FontStruct_t TGTableCell::fFontStruct [protected]

Definition at line 39 of file TGTableCell.h.

Referenced by TGTableHeader::Init(), Init(), SetFont(), and SetLabel().

Bool_t TGTableCell::fHasOwnFont [protected]

Definition at line 40 of file TGTableCell.h.

Referenced by SetFont().

GContext_t TGTableCell::fNormGC [protected]

Definition at line 41 of file TGTableCell.h.

Referenced by DoRedraw(), DrawBorder(), DrawCopy(), SetFont(), and TGTableCell().

UInt_t TGTableCell::fColumn [protected]

Definition at line 42 of file TGTableCell.h.

Referenced by GetColumn(), Init(), TGTableHeader::SetDefaultLabel(), TGTableHeader::SetPosition(), TGTableHeader::TGTableHeader(), and TGTableHeader::UpdatePosition().

UInt_t TGTableCell::fRow [protected]

Definition at line 43 of file TGTableCell.h.

Referenced by GetRow(), Init(), TGTableHeader::SetDefaultLabel(), TGTableHeader::SetPosition(), TGTableHeader::TGTableHeader(), and TGTableHeader::UpdatePosition().

TGTable* TGTableCell::fTable [protected]

Definition at line 44 of file TGTableCell.h.

Referenced by TGTableHeader::Init(), Init(), TGTableHeader::SetDefaultLabel(), and TGTableHeader::UpdatePosition().

const TGGC* TGTableCell::fgDefaultGC [static, protected]

Definition at line 46 of file TGTableCell.h.

Referenced by GetDefaultGC().

const TGFont* TGTableCell::fgDefaultFont [static, protected]

Definition at line 47 of file TGTableCell.h.

Referenced by GetDefaultFontStruct().

TGString* TGTableCell::fLabel [protected]

Definition at line 31 of file TGTableCell.h.

TGToolTip* TGTableCell::fTip [protected]

Definition at line 32 of file TGTableCell.h.

TGPicture* TGTableCell::fImage [protected]

Definition at line 36 of file TGTableCell.h.

TGTable* TGTableCell::fTable [protected]

Definition at line 44 of file TGTableCell.h.

const TGGC* TGTableCell::fgDefaultGC [static, protected]

Definition at line 46 of file TGTableCell.h.

const TGFont* TGTableCell::fgDefaultFont [static, protected]

Definition at line 47 of file TGTableCell.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1