46 fFontStruct(font), fHasOwnFont(
kFALSE), fColumn(column), fRow(row),
68 fFontStruct(font), fHasOwnFont(
kFALSE), fColumn(column), fRow(row),
96 Int_t max_ascent = 0, max_descent = 0;
100 fTHeight = max_ascent + max_descent;
248 Int_t lx = 0, ly = 0;
283 Int_t max_ascent = 0, max_descent = 0;
287 fTHeight = max_ascent + max_descent;
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
Handle_t GContext_t
Graphics context handle.
ULongptr_t Handle_t
Generic resource handle.
Handle_t FontStruct_t
Pointer to font structure.
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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
const TGResourcePool * GetResourcePool() const
Encapsulate fonts used in the GUI system.
FontStruct_t GetFontStruct() const
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fHeight
frame height
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void DoRedraw() override
Redraw the frame.
void Move(Int_t x, Int_t y) override
Move frame.
virtual Pixel_t GetBackground() const
static Pixel_t fgWhitePixel
static Pixel_t fgBlackPixel
TGGC * GetGC(GCValues_t *values, Bool_t rw=kFALSE)
Get the best matching graphics context depending on values.
TGGC * FindGC(const TGGC *gc)
Find graphics context. Returns 0 in case gc is not found.
Encapsulate a graphics context used in the low level graphics.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
TGGCPool * GetGCPool() const
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
virtual void SetString(const char *s)
const char * GetString() const
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw string.
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.
TGTableCell(const TGWindow *p=nullptr, TGTable *table=nullptr, TGString *label=nullptr, 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 constructor.
virtual UInt_t GetWidth() const
Int_t fTMode
Text justify mode.
UInt_t fTWidth
Label width.
void DoRedraw() override
Redraw the TGTableCell.
TGPicture * fImage
Image or icon.
FontStruct_t fFontStruct
Font of the label.
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.
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
UInt_t fRow
Row this cell belongs to.
void Resize(UInt_t width, UInt_t height) override
Resize the TGTableCell.
UInt_t fColumn
Column this cell belongs to.
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
~TGTableCell() override
TGTableCell destructor.
virtual UInt_t GetHeight() const
Create an array to hold a bunch of numbers.
virtual const TGTableHeader * GetColumnHeader(const UInt_t column) const
Const version of GetColumnHeader();.
virtual const TGTableHeader * GetRowHeader(const UInt_t row) const
Const version of GetRowHeader();.
virtual Pixel_t GetRowBackground(UInt_t row) const
Get the background collor for row.
ROOT GUI Window base class.
Graphics context structure.