#include <TGTableCell.h>
Inheritance diagram for TGTableCell:
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 TGString * | GetLabel () const |
virtual TGPicture * | GetImage () 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 TGString * | GetLabel () const |
virtual TGPicture * | GetImage () 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 TGGC & | GetDefaultGC () |
static FontStruct_t | GetDefaultFontStruct () |
static const TGGC & | GetDefaultGC () |
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 | |
TGString * | fLabel |
TGToolTip * | fTip |
Bool_t | fReadOnly |
Bool_t | fEnabled |
Int_t | fTMode |
TGPicture * | fImage |
UInt_t | fTWidth |
UInt_t | fTHeight |
FontStruct_t | fFontStruct |
Bool_t | fHasOwnFont |
GContext_t | fNormGC |
UInt_t | fColumn |
UInt_t | fRow |
TGTable * | fTable |
TGString * | fLabel |
TGToolTip * | fTip |
TGPicture * | fImage |
TGTable * | fTable |
Static Protected Attributes | |
static const TGGC * | fgDefaultGC |
static const TGFont * | fgDefaultFont |
static const TGGC * | fgDefaultGC |
static const TGFont * | fgDefaultFont |
Friends | |
class | TGTable |
Definition at line 26 of file TGTableCell.h.
TGTableCell::~TGTableCell | ( | ) | [virtual] |
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] |
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().
Definition at line 265 of file TGTableCell.cxx.
References TGFrame::fHeight, fNormGC, TGFrame::fWidth, and gVirtualX.
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().
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] |
void TGTableCell::SetTextJustify | ( | Int_t | tmode | ) | [virtual] |
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] |
virtual UInt_t TGTableCell::GetRow | ( | ) | const [inline, virtual] |
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] |
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] |
virtual void TGTableCell::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
virtual void TGTableCell::DrawBorder | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
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] |
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] |
virtual UInt_t TGTableCell::GetRow | ( | ) | const [inline, virtual] |
virtual TGString* TGTableCell::GetLabel | ( | ) | const [inline, virtual] |
virtual TGPicture* TGTableCell::GetImage | ( | ) | const [inline, virtual] |
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] |
TGTable [friend] |
Definition at line 28 of file TGTableCell.h.
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] |
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] |
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] |
const TGFont* TGTableCell::fgDefaultFont [static, protected] |
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.