#ifndef ROOT_TGTableHeader
#define ROOT_TGTableHeader
#ifndef ROOT_TGTableCell
#include "TGTableCell.h"
#endif
enum EHeaderType {
kColumnHeader,
kRowHeader,
kTableHeader
};
class TGWindow;
class TGTableHeader : public TGTableCell {
protected:
EHeaderType fType;
UInt_t fWidth;
UInt_t fHeight;
Bool_t fReadOnly;
Bool_t fEnabled;
Bool_t fHasOwnLabel;
void Init();
public:
TGTableHeader(const TGWindow *p = 0, TGTable *table = 0,
TGString *label = 0, UInt_t position = 0,
EHeaderType type = kColumnHeader, UInt_t width = 80,
UInt_t height = 25, GContext_t norm = GetDefaultGC()(),
FontStruct_t font = GetDefaultFontStruct(),
UInt_t option = 0);
TGTableHeader(const TGWindow *p, TGTable *table, const char *label,
UInt_t position, EHeaderType type = kColumnHeader,
UInt_t width = 80, UInt_t height = 25,
GContext_t norm = GetDefaultGC()(),
FontStruct_t font = GetDefaultFontStruct(),
UInt_t option = 0);
virtual ~TGTableHeader();
virtual void SetWidth(UInt_t width);
virtual void SetHeight(UInt_t height);
virtual void SetLabel(const char *label);
virtual void SetDefaultLabel();
virtual void SetPosition(UInt_t pos);
virtual void Resize(UInt_t width, UInt_t height);
virtual void Resize(TGDimension newsize);
virtual void Sort(Bool_t order = kSortAscending);
virtual void UpdatePosition();
virtual EHeaderType GetType() { return fType; }
ClassDef(TGTableHeader, 0)
};
#endif