/usr/include/root/TGTableHeader.h is in libroot-gui-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | // Author: Roel Aaij 21/07/2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#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; // Type of header
UInt_t fWidth; // Width for the column
UInt_t fHeight; // Height of the row
Bool_t fReadOnly; // Cell readonly state
Bool_t fEnabled; // Cell enabled state
Bool_t fHasOwnLabel; // Flag on default or specific label usage
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); // Resize width or height
virtual void Resize(TGDimension newsize); // depending on type
virtual void Sort(Bool_t order = kSortAscending);
virtual void UpdatePosition();
virtual EHeaderType GetType() { return fType; }
ClassDef(TGTableHeader, 0) // Header for use in TGTable.
};
#endif
|