69#define DEF_FRAME_BG_COLOR        "#c0c0c0" 
   70#define DEF_FRAME_CURSOR          "" 
   71#define DEF_BUTTON_FG             "black" 
   72#define DEF_BUTTON_HIGHLIGHT_BG   "#d9d9d9" 
   73#define DEF_BUTTON_HIGHLIGHT      "black" 
  142   for (i = 0; i < 
N_COLOR; ++i) {
 
  215   fMenu->
Connect(
"Activated(Int_t)", 
"TGHtml", 
this, 
"HandleMenu(Int_t)");
 
 
  237   for (i = 0; i < 
N_FONT; i++) {
 
 
  424            const char *z = 
p->MarkupArg(
"href", 0);
 
 
  468         z = 
p->MarkupArg(
"name", 0);
 
 
  502   return (
const char *)obj->
GetName();
 
 
  682   if (
w > 0 && 
h > 0) {
 
  729      int top, bottom, left, right;     
 
  738            if (
pElem->fRedrawNeeded == 0) 
continue;
 
 
  791   if (bottom < 0) 
return;
 
  793   if (right < 0) 
return;
 
 
  814   int right = 
x + 
w + 1;
 
  815   int bottom = 
y + 
h + 1;
 
  816   if (bottom < 0) 
return;
 
  818   if (right < 0) 
return;
 
 
  923   for (i = 0; i < 
N_COLOR; ++i) {
 
 
 1014         if (
pImage->fTimer == t) {
 
 
 1060      if (
p->fIndex == 0) 
continue;
 
 1062         if (
p->fIndex > 1) {
 
 
 1123      if (
p->fIndex) 
return p->fGc;
 
 
 1161      if (
p->fFrame == 0) 
continue;
 
 1162      if (
p->fY < 
vy + 
vh && 
p->fY + 
p->fH > 
vy &&
 
 1163          p->fX < 
vx + 
vw && 
p->fX + 
p->fW > 
vx) {
 
 1164         if ((
x > 
p->fX) && (
y > 
p->fY) && (
x < (
p->fX + 
p->fW)) &&
 
 1165             (
y < (
p->fY + 
p->fH)) ) {
 
 
 1181   eventSt.fWindow    = 
event->fWindow;
 
 1185   eventSt.fXRoot     = 
event->fXRoot;
 
 1186   eventSt.fYRoot     = 
event->fYRoot;
 
 1188   eventSt.fState     = 
event->fState;
 
 1189   eventSt.fWidth     = 
event->fWidth;
 
 1190   eventSt.fHeight    = 
event->fHeight;
 
 1191   eventSt.fCount     = 
event->fCount;
 
 1192   eventSt.fSendEvent = 
event->fSendEvent;
 
 1193   eventSt.fHandle    = 
event->fHandle;
 
 1194   eventSt.fFormat    = 
event->fFormat;
 
 1195   eventSt.fUser[0]   = 
event->fUser[0];
 
 1196   eventSt.fUser[1]   = 
event->fUser[1];
 
 1197   eventSt.fUser[2]   = 
event->fUser[2];
 
 1198   eventSt.fUser[3]   = 
event->fUser[3];
 
 1199   eventSt.fUser[4]   = 
event->fUser[4];
 
 1204   const char *
name = 
pr->MarkupArg(
"name", 0);
 
 1205   const char *val = 
pr->MarkupArg(
"value", 0);
 
 1206   switch (
pr->fItype) {
 
 1250         if (
pr->fFrame->InheritsFrom(
"TGComboBox"))
 
 1252         else if (
pr->fFrame->InheritsFrom(
"TGListBox"))
 
 
 1273            if (
strcmp(
pr->MarkupArg(
"name", 
""), 
p->MarkupArg(
"name", 
"")) == 0) {
 
 
 1293   Emit(
"ButtonClicked(char*,char*)", args);
 
 
 1307   Emit(
"CheckToggled(char*,Bool_t,char*)", args);
 
 
 1320   Emit(
"RadioChanged(char*,char*)", args);
 
 
 1333   Emit(
"InputSelected(char*,char*)", args);
 
 
 1341   Emit(
"SubmitClicked(char*)", val);
 
 
 1352         "HTML files",   
"*.html",
 
 1366      txt.Save(
fi.fFilename);
 
 
 1499         case 1:  
familyStr = 
"times -%d bold";            
break;
 
 1500         case 2:  
familyStr = 
"times -%d italic";          
break;
 
 1501         case 3:  
familyStr = 
"times -%d bold italic";     
break;
 
 1502         case 4:  
familyStr = 
"courier -%d";               
break;
 
 1503         case 5:  
familyStr = 
"courier -%d bold";          
break;
 
 1504         case 6:  
familyStr = 
"courier -%d italic";        
break;
 
 1505         case 7:  
familyStr = 
"courier -%d bold italic";   
break;
 
 1508         case 0:  
familyStr = 
"helvetica -%d";             
break;
 
 1509         case 1:  
familyStr = 
"helvetica -%d bold";        
break;
 
 1510         case 2:  
familyStr = 
"helvetica -%d italic";      
break;
 
 1511         case 3:  
familyStr = 
"helvetica -%d bold italic"; 
break;
 
 1512         case 4:  
familyStr = 
"courier -%d";               
break;
 
 1513         case 5:  
familyStr = 
"courier -%d bold";          
break;
 
 1514         case 6:  
familyStr = 
"courier -%d italic";        
break;
 
 1515         case 7:  
familyStr = 
"courier -%d bold italic";   
break;
 
 1532         case 1:  
size = 8;   
break;
 
 1533         case 2:  
size = 10;  
break;
 
 1534         case 3:  
size = 12;  
break;
 
 1535         case 4:  
size = 14;  
break;
 
 1536         case 5:  
size = 16;  
break;
 
 1537         case 6:  
size = 18;  
break;
 
 1538         case 7:  
size = 24;  
break;
 
 1552         fprintf(
stderr, 
"TGHtml: could not get font \"%s\", trying fixed\n",
 
 1557         fprintf(
stderr, 
"TGHtml: could not get font \"fixed\", trying " 
 1558                 "\"helvetica -12\"\n");
 
 
 1576   int *
ip = 
p->fCoords;
 
 1580      return ((left + 
ip[0]) <= 
x && (left + 
ip[2]) >= 
x &&
 
 1581              (top  + 
ip[1]) <= 
y && (top  + 
ip[3]) >= 
y);
 
 1583      int dx = left + 
ip[0] - 
x;
 
 1584      int dy = top + 
ip[1] - 
y;
 
 
 1600         z = 
p->MarkupArg(
"name", 0);
 
 1601         zb = 
p->MarkupArg(
"shape", 0);
 
 1602         if (
zb && *
zb != 
'r') 
return 0;
 
 
 1617   x = 0.30 * (
pA->fRed - 
pB->fRed);
 
 1618   y = 0.61 * (
pA->fGreen - 
pB->fGreen);
 
 1619   z = 0.11 * (
pA->fBlue - 
pB->fBlue);
 
 1621   return x*
x + 
y*
y + z*z;
 
 
 1642   if (
n == 6 || 
n == 3 || 
n == 9 || 
n == 12) {
 
 1643      for (i = 0; i < 
n; i++) {
 
 
 1670#define MAX_COLOR    65535 
 1671#define MAX(A,B)     ((A)<(B)?(B):(A)) 
 1672#define MIN(A,B)     ((A)<(B)?(A):(B)) 
 1683   y = 1.00 * 
p->fGreen;
 
 1684   z = 0.28 * 
p->fBlue;
 
 
 1711         val.
fRed = (
unsigned short) (
pRef->fRed * 0.6);
 
 1712         val.
fGreen = (
unsigned short) (
pRef->fGreen * 0.6);
 
 1713         val.
fBlue = (
unsigned short) (
pRef->fBlue * 0.6);
 
 
 1742         val.
fRed = (
unsigned short) (
pRef->fRed * 0.9);
 
 1743         val.
fGreen = (
unsigned short) (
pRef->fGreen * 0.9);
 
 1744         val.
fBlue = (
unsigned short) (
pRef->fBlue * 0.9);
 
 
 1774# define COLOR_MASK  0xf800 
 1780   for (i = 0; i < 
N_COLOR; i++) {
 
 1815   for (i = 1; i < 
N_COLOR; i++) {
 
 
 1848                     return pElem->MarkupArg(
"href", 0);
 
 1857      switch (
pElem->fType) {
 
 1864            return pElem->MarkupArg(
"href", 0);
 
 
 1890#define HGCo(dir) (pb2 && pb2->dir) ? pBlock->dir * 100 / pb2->dir : 0 
 1891      coords[0] = 
HGCo(fLeft);
 
 1892      coords[1] = 
HGCo(fTop);
 
 1893      coords[3] = 
HGCo(fRight);
 
 1894      coords[4] = 
HGCo(fBottom);
 
 1896      coords[0] = 
pBlock->fLeft;
 
 1897      coords[1] = 
pBlock->fTop;
 
 1898      coords[2] = 
pBlock->fRight;
 
 1899      coords[3] = 
pBlock->fBottom;
 
 
 1913      if (
p->fType != 
Html_A) 
continue;
 
 1914      z = 
p->MarkupArg(
name, 0);
 
 
 2127       << 
");"<< std::endl;
 
 2129      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");" << std::endl;
 
 2138   txt.Save(
fn.Data());
 
 2139   out << 
"   " << 
"FILE *f = fopen(\"" << 
fn.Data() << 
"\", \"r\");" << std::endl;
 
 2140   out << 
"   " << 
"if (f) {" << std::endl;
 
 2141   out << 
"      " << 
GetName() << 
"->Clear();" << std::endl;
 
 2142   out << 
"      " << 
GetName() << 
"->Layout();" << std::endl;
 
 2143   out << 
"      " << 
GetName() << 
"->SetBaseUri(\"\");" << std::endl;
 
 2144   out << 
"      " << 
"char *buf = (char *)calloc(4096, sizeof(char));" << std::endl;
 
 2145   out << 
"      " << 
"while (fgets(buf, 4096, f)) {" << std::endl;
 
 2146   out << 
"         " << 
GetName() << 
"->ParseText(buf);" << std::endl;
 
 2147   out << 
"      " << 
"}" << std::endl;
 
 2148   out << 
"      " << 
"free(buf);" << std::endl;
 
 2149   out << 
"      " << 
"fclose(f);" << std::endl;
 
 2150   out << 
"   " << 
"}" << std::endl;
 
 2151   out << 
"   " << 
GetName() << 
"->Layout();" << std::endl;
 
 
const Mask_t kGCForeground
 
Handle_t Pixmap_t
Pixmap handle.
 
const Mask_t kFocusChangeMask
 
const Mask_t kButtonPressMask
 
const Mask_t kExposureMask
 
Handle_t Window_t
Window handle.
 
Handle_t GContext_t
Graphics context handle.
 
const Mask_t kPointerMotionMask
 
const Mask_t kButtonReleaseMask
 
const Mask_t kGCGraphicsExposures
 
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
#define INPUT_TYPE_Button
 
#define DEF_HTML_EXPORT_SEL
 
#define DEF_HTML_INSERT_OFF_TIME
 
#define HTML_RELIEF_SUNKEN
 
#define INPUT_TYPE_Submit
 
#define HTML_RELIEF_RAISED
 
#define N_PREDEFINED_COLOR
 
#define DEF_HTML_INSERT_ON_TIME
 
#define DEF_HTML_SELECTION_COLOR
 
#define INPUT_TYPE_Password
 
#define DEF_HTML_UNVISITED
 
#define INPUT_TYPE_Checkbox
 
#define INPUT_TYPE_Select
 
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 WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void FreeColor
 
Option_t Option_t TPoint TPoint const char text
 
char * StrDup(const char *str)
Duplicate the string str.
 
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
 
Colormap_t GetDefaultColormap() const
 
void FreeFont(const TGFont *font)
Free a font.
 
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
 
This class creates a file selection dialog.
 
Encapsulate fonts used in the GUI system.
 
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
 
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
 
static Pixel_t GetWhitePixel()
Get white pixel value.
 
virtual Pixel_t GetBackground() const
 
void SetTileStipYOrigin(Int_t v)
Y offset for tile or stipple operations.
 
void SetTileStipXOrigin(Int_t v)
X offset for tile or stipple operations.
 
void Reset()
Reset the layout context.
 
int GetLightShadowColor(int iBgColor)
Given that the background color is iBgColor, figure out an appropriate color for the bright part of t...
 
TGHtmlElement * GetMap(const char *name)
Returns html map element.
 
int IsDarkColor(ColorStruct_t *p)
Check to see if the given color is too dark to be easily distinguished from black.
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event.
 
void RedrawArea(int left, int top, int right, int bottom)
If any part of the screen needs to be redrawn, then call this routine with the values of a box (in wi...
 
int GotoAnchor(const char *name)
Go to anchor position.
 
int SetInsert(const char *insIx)
Set the position of the insertion cursor.
 
virtual void RadioChanged(const char *name, const char *val)
Emit RadioChanged() signal.
 
TGHtmlElement * fLoEndPtr
 
TGHtmlBlock * fPSelStartBlock
 
const char * GetHref(int x, int y, const char **target=nullptr)
This routine searches for a hyperlink beneath the coordinates x,y and returns a pointer to the HREF f...
 
int IsLightColor(ColorStruct_t *p)
Check to see if the given color is too light to be easily distinguished from white.
 
void TokenizerAppend(const char *text)
Append text to the tokenizer engine.
 
void AddStyle(TGHtmlElement *p)
This routine adds information to the input texts that doesn't change when the display is resized or w...
 
virtual void MouseDown(const char *uri)
 
Bool_t ItemLayout() override
Layout html widget.
 
void ScheduleRedraw()
Make sure that a call to the Redraw() routine has been queued.
 
void LostSelection()
Clear selection.
 
virtual TGFont * GetFont(int iFont)
The rendering and layout routines should call this routine in order to get a font structure.
 
ColorStruct_t * fApColor[32]
 
void UpdateInsert()
Recompute the position of the insertion cursor based on the position in fIns.
 
TGHtmlElement * fLastSized
 
void LayoutDoc()
Advance the layout as far as possible.
 
void BlockDraw(TGHtmlBlock *pBlock, Drawable_t wid, int left, int top, int width, int height, Pixmap_t pixmap)
Display a single HtmlBlock. This is where all the drawing happens.
 
void IndexToBlockIndex(SHtmlIndex_t sIndex, TGHtmlBlock **ppBlock, int *piIndex)
Convert an Element-based index into a Block-based index.
 
int GetColorByName(const char *zColor)
This routine returns an index between 0 and N_COLOR-1 which indicates which ColorStruct_t structure i...
 
void DrawImage(TGHtmlImageMarkup *image, Drawable_t wid, int left, int top, int right, int bottom)
Draw all or part of an image.
 
TGHtmlInput * fFormElemLast
 
void AnimateImage(TGHtmlImage *image)
TGImage *img = image->image;.
 
Bool_t HandleTimer(TTimer *timer) override
Handle timer event.
 
virtual void InputSelected(const char *name, const char *val)
Emit Selected() signal.
 
virtual void CheckToggled(const char *name, Bool_t on, const char *val)
Emit CheckToggled() signal.
 
Bool_t HandleMotion(Event_t *event) override
handle mouse motion events
 
int SelectionSet(const char *startIx, const char *endIx)
Set selection.
 
void UpdateSelectionDisplay()
The fPSelStartBlock and fPSelEndBlock values have been changed.
 
Bool_t HandleFocusChange(Event_t *event) override
Handle focus change event.
 
TGHtmlBlock * fPSelEndBlock
 
ColorStruct_t * fSelectionColor
 
void SaveFileAs()
Save file.
 
void FormBlocks()
Add additional blocks to the block list in order to cover all elements on the element list.
 
virtual void ButtonClicked(const char *name, const char *val)
Emit ButtonClicked() signal.
 
ColorStruct_t * fHighlightBgColorPtr
 
void SetRuleRelief(int relief)
Sets relief mode of html rule.
 
SHtmlStyleStack_t * fStyleStack
 
ColorStruct_t * fNewLinkColor
 
TGHtmlListStart * fInnerList
 
void RedrawText(int y)
Call this routine to cause all of the rendered HTML at the virtual canvas coordinate of Y and beyond ...
 
virtual void MouseOver(const char *uri)
 
Bool_t HandleRadioButton(TGHtmlInput *p)
Handle radio button event.
 
TGHtmlInput * GetInputElement(int x, int y)
This routine searches for a hyperlink beneath the coordinates x,y and returns a pointer to the HREF f...
 
int ParseText(char *text, const char *index=nullptr)
Appends (or insert at the specified position) the given HTML text to the end of any HTML text that ma...
 
void UpdateSelection(int forceUpdate)
Given the selection end-points in fSelBegin and fSelEnd, recompute pSelBeginBlock and fPSelEndBlock,...
 
void SetBaseUri(const char *uri)
Sets base URI.
 
void DeleteControls()
Delete all input controls.
 
ColorStruct_t * AllocColorByValue(ColorStruct_t *color)
Allocate system color by value.
 
TGHtmlInput * fFirstInput
 
void UpdateBackgroundStart() override
Start background update.
 
~TGHtml() override
HTML widget destructor.
 
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a html widget as a C++ statement(s) on output stream out.
 
void SetTableRelief(int relief)
Sets relief mode of html table.
 
ColorStruct_t * AllocColor(const char *name)
Allocate system color by name.
 
void HClear()
Erase all data from the HTML widget. Bring it back to an empty screen.
 
ColorStruct_t * fHighlightColorPtr
 
GContext_t GetAnyGC()
Retrieve any valid GC.
 
TGHtmlBlock * fFirstBlock
 
void RedrawBlock(TGHtmlBlock *p)
Redraw the TGHtmlBlock given.
 
const char * GetUid(const char *string)
Given a string, this procedure returns a unique identifier for the string.
 
void Redraw()
This routine is invoked in order to redraw all or part of the HTML widget.
 
int GetLinkColor(const char *zURL)
For the markup <a href=XXX>, find out if the URL has been visited before or not.
 
TGHtmlAnchor * fAnchorStart
 
int GetColorByValue(ColorStruct_t *pRef)
Find a color integer for the color whose color components are given by pRef.
 
char fFontValid[(71+7)/8]
 
const char * GetBaseUri() const
 
SHtmlStyle_t PopStyleStack(int tag)
Pop a rendering style off of the stack.
 
void FreeColor(ColorStruct_t *color)
Free system color.
 
void ComputeVirtualSize()
Computes virtual size of html area.
 
int TokenNumber(TGHtmlElement *p)
Return the token number for the given TGHtmlElement.
 
TGHtmlElement * AttrElem(const char *name, char *value)
Returns html element matching attribute name and value.
 
GContext_t GetGC(int color, int font)
Return a GC from the cache.
 
virtual char * ResolveUri(const char *uri)
This function resolves the specified URI and returns the result in a newly allocated string.
 
int InArea(TGHtmlMapArea *p, int left, int top, int x, int y)
Only support rect and circles for now.
 
void PushStyleStack(int tag, SHtmlStyle_t style)
Push a new rendering style onto the stack.
 
TGHtmlElement * fNextPlaced
 
TGHtmlLayoutContext fLayoutContext
 
void RedrawEverything()
Call this routine to force the entire widget to be redrawn.
 
virtual void SubmitClicked(const char *val)
Emit SubmitClicked() signal.
 
void UnderlineLinks(int onoff)
Set/reset html links underline.
 
SHtmlStyle_t GetCurrentStyle()
Get the current rendering style.
 
void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h) override
Draw region defined by [x,y] [w,h].
 
int MapControls()
Map any control that should be visible according to the current scroll position.
 
void Clear(Option_t *="") override
Erase all HTML from this widget and clear the screen.
 
const char * GetText() const
 
void ClearGcCache()
Clear the cache of GCs.
 
int GetIndex(const char *zIndex, TGHtmlElement **ppToken, int *pIndex)
This routine decodes a complete index specification.
 
ColorStruct_t * fOldLinkColor
 
TGHtmlForm * fLoFormStart
 
TGHtmlInput * fFormElemStart
 
int ElementCoords(TGHtmlElement *p, int i, int pct, int *coords)
Return coordinates of item.
 
Bool_t HandleIdleEvent(TGIdleHandler *i) override
Handles idle event.
 
void HandleMenu(Int_t)
Handle context menu entries events.
 
float ColorDistance(ColorStruct_t *pA, ColorStruct_t *pB)
Compute the squared distance between two colors.
 
void FlashCursor()
Flash the insertion cursor.
 
int GetDarkShadowColor(int iBgColor)
Given that the background color is iBgColor, figure out an appropriate color for the dark part of a 3...
 
TGHtml(const TGWindow *p, int w, int h, int id=-1)
HTML Widget constructor.
 
Bool_t HandleHtmlInput(TGHtmlInput *pr, Event_t *event)
Handle html input (button, checkbox, ...) event.
 
SHtmlExtensions_t * fExts
 
void ResetLayoutContext()
Reset the main layout context in the main widget.
 
A listbox is a box, possibly with scrollbar, containing entries.
 
TGClient * fClient
Connection to display server.
 
Handle_t fId
X11/Win32 Window identifier.
 
A TGTextEntry is a one line text input widget.
 
A TGText is a multi line text buffer.
 
A TGView provides the infrastructure for text viewer and editor widgets.
 
TGHScrollBar * fHsb
horizontal scrollbar
 
void SetBackgroundColor(Pixel_t) override
Set background color of the canvas frame.
 
TGDimension fVirtualSize
the current virtual window size
 
TGVScrollBar * fVsb
vertical scrollbar
 
Bool_t HandleButton(Event_t *event) override
handle button
 
TGLongPosition fVisible
position of visible region
 
TGLongPosition fScrollVal
scroll value
 
TGViewFrame * fCanvas
frame containing the text
 
void SetBackgroundPixmap(Pixmap_t p) override
Set backgound pixmap.
 
void Clear(Option_t *="") override
Clear view.
 
virtual void DrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height)
Draw region.
 
TGGC fWhiteGC
graphics context used for scrolling generates GraphicsExposure events
 
virtual void ScrollToPosition(TGLongPosition newPos)
Scroll the canvas to pos.
 
ROOT GUI Window base class.
 
const TGWindow * fParent
Parent window.
 
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
 
THashTable implements a hash table to store TObject's.
 
void Add(TObject *obj) override
Add object to the hash table.
 
TObject * FindObject(const char *name) const override
Find object using its name.
 
Collectable string class.
 
const char * GetName() const override
Returns name of object.
 
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
 
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
 
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
 
Handles synchronous and a-synchronous timer events.
 
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
 
ULong_t fPixel
color pixel value (index in color table)
 
UShort_t fRed
red component (0..65535)
 
UShort_t fGreen
green component (0..65535)
 
UShort_t fBlue
blue component (0..65535)
 
UShort_t fMask
mask telling which color components are valid
 
EGEventType fType
of event (see EGEventType)
 
Int_t fY
pointer x, y coordinates in event window
 
Int_t fYRoot
coordinates relative to root
 
UInt_t fCode
key or button code
 
Graphics context structure.