11#ifndef ROOT_TGTableCell
12#define ROOT_TGTableCell
76 virtual void SetLabel(
const char *label);
83 virtual void SetFont(
const char *fontName);
Handle_t GContext_t
Graphics context handle.
ULongptr_t Handle_t
Generic resource handle.
Handle_t FontStruct_t
Pointer to font structure.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Encapsulate fonts used in the GUI system.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
UInt_t fHeight
frame height
Encapsulate a graphics context used in the low level graphics.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
TGTableCell is the class that represents a single cell in a TGTable.
virtual void SelectColumn()
Select the column that this TGTableCell belongs to.
virtual void SetTextJustify(Int_t tmode)
Set the text justify mode of the cell to mode.
static const TGFont * fgDefaultFont
Default font.
virtual void SetLabel(const char *label)
Set the label of this cell to label.
TGToolTip * fTip
Possible Tooltip.
static const TGGC * fgDefaultGC
Default graphics context.
virtual UInt_t GetWidth() const
Int_t fTMode
Text justify mode.
UInt_t fTWidth
Label width.
void DoRedraw() override
Redraw the TGTableCell.
virtual Int_t GetTextJustify() const
TGPicture * fImage
Image or icon.
FontStruct_t fFontStruct
Font of the label.
virtual UInt_t GetRow() const
Bool_t fReadOnly
Cell readonly state.
TGTable * fTable
TGTable that a cell belongs to.
UInt_t fTHeight
Label height.
virtual void SetFont(FontStruct_t font)
Changes text font.
virtual void SelectRow()
Select the row that this TGTableCell belongs to.
void DrawBorder() override
Draw the cell border.
virtual void Highlight()
Highlight the this TGTableCell.
virtual void SetImage(TGPicture *image)
Set the image that this cell contains to image.
virtual void MoveDraw(Int_t x, Int_t y)
Move the TGTableCell and redraw it.
TGString * fLabel
Text as shown in the cell.
Bool_t fEnabled
Cell enabled state.
virtual TGDimension GetSize() const
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
UInt_t fRow
Row this cell belongs to.
virtual TGString * GetLabel() const
void Resize(UInt_t width, UInt_t height) override
Resize the TGTableCell.
virtual TGPicture * GetImage() const
UInt_t fColumn
Column this cell belongs to.
virtual ~TGTableCell()
TGTableCell destructor.
Bool_t fHasOwnFont
Does the cell have it's own font.
void DrawCopy(Handle_t id, Int_t x, Int_t y) override
Draw list view item in other window.
void Init(Bool_t resize)
Initialise the TGTableCell.
virtual void Select()
Select this TGTableCell.
static const TGGC & GetDefaultGC()
Return default graphics context.
GContext_t fNormGC
graphics context used to draw the cell
virtual UInt_t GetHeight() const
virtual UInt_t GetColumn() const
Create an array to hold a bunch of numbers.
ROOT GUI Window base class.