204      bg->Insert(
this, 
id);
 
 
  338   Bool_t in = (
event->fX >= 0) && (event->
fY >= 0) &&
 
 
  486      gval.fForeground = 
gClient->GetResourcePool()->GetFrameHiliteColor();
 
  487      gval.fBackground = 
gClient->GetResourcePool()->GetFrameBgndColor();
 
  489      gval.fTile       = 
gClient->GetResourcePool()->GetCheckeredPixmap();
 
 
  585   wattr.fBitGravity = 5; 
 
  586   wattr.fWinGravity = 1;
 
 
  701   wattr.fWinGravity = 1;
 
  705         wattr.fBitGravity = 1; 
 
  709         wattr.fBitGravity = 2; 
 
  712         wattr.fBitGravity = 3; 
 
  716         wattr.fBitGravity = 4; 
 
  719         wattr.fBitGravity = 5; 
 
  723         wattr.fBitGravity = 6; 
 
  726         wattr.fBitGravity = 7; 
 
  730         wattr.fBitGravity = 8; 
 
  733         wattr.fBitGravity = 9; 
 
  736         wattr.fBitGravity = 5; 
 
 
  797         gc->SetForeground(
hi);
 
  801         gc->SetForeground(sh);
 
 
  928      gc->SetForeground(color);
 
 
  952      Error(
"TGPictureButton", 
"pixmap not found or the file format is not supported for button %d", 
id);
 
 
  981      Error(
"TGPictureButton", 
"pixmap not found or the file format is not supported for button\n%s",
 
 
 1009      if (
p) 
Error(
"TGPictureButton", 
"pixmap not found or the file format is not supported for button");
 
 
 1043      Error(
"SetPicture", 
"pixmap not found or the file format is not supported for button %d\n%s",
 
 
 1118   img2->FillRectangle(back.
Data(), 0, 0, 
fPic->GetWidth(), 
fPic->GetHeight());
 
 1119   img->SetImage(
fPic->GetPicture(), 
fPic->GetMask());
 
 
 1193      Error(
"TGCheckButton", 
"checked_t.xpm not found or the file format is not supported.");
 
 1195      Error(
"TGCheckButton", 
"unchecked_t.xpm not found or the file format is not supported.");
 
 1197      Error(
"TGCheckButton", 
"checked_dis_t.xpm not found or the file format is not supported.");
 
 1199      Error(
"TGCheckButton", 
"unchecked_dis_t.xpm not found or the file format is not supported.");
 
 
 1338   Bool_t in = (
event->fX >= 0) && (event->
fY >= 0) &&
 
 
 1474         gc->SetForeground(
hi);
 
 1478         gc->SetForeground(sh);
 
 
 1557      Error(
"TGRadioButton", 
"rbutton_*.xpm not found or the file format is not supported.");
 
 
 1704   Bool_t in = (
event->fX >= 0) && (event->
fY >= 0) &&
 
 
 1840         gc->SetForeground(
hi);
 
 1844         gc->SetForeground(sh);
 
 
 1884      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");" << std::endl;
 
 1887      out << 
"   " << 
GetName() << 
"->SetState(kButtonDown);"  << std::endl;
 
 1890      out << 
"   " << 
GetName() << 
"->SetState(kButtonDisabled);"  << std::endl;
 
 1893      out << 
"   " << 
GetName() << 
"->SetState(kButtonEngaged);"  << std::endl;
 
 1897      out << 
"   " << 
GetName() << 
"->ChangeBackground(ucolor);" << std::endl;
 
 1902      tiptext.ReplaceAll(
"\n", 
"\\n");
 
 1909          << 
quote << 
");" << std::endl;
 
 
 1922   if (
outext.First(
'\n') >= 0)
 
 1923      outext.ReplaceAll(
"\n", 
"\\n");
 
 1935         parFont.Form(
"ufont->GetFontStruct()");
 
 1941         parGC.Form(
"uGC->GetGC()");
 
 1947   out << 
"   TGTextButton *";
 
 1955               out << 
");" << std::endl;
 
 1957               out << 
"," << 
fWidgetId <<
");" << std::endl;
 
 1969   out << 
"   " << 
GetName() << 
"->SetTextJustify(" << 
fTMode << 
");" << std::endl;
 
 1975       << 
");" << std::endl;
 
 
 1986      Error(
"SavePrimitive()", 
"pixmap not found or the file format is not supported for picture button %d ", 
fWidgetId);
 
 1999         parGC.Form(
"uGC->GetGC()");
 
 2007   out <<
"   TGPictureButton *";
 
 2009   out << 
GetName() << 
" = new TGPictureButton(" << 
fParent->GetName()
 
 2010       << 
",gClient->GetPicture(" << 
quote 
 2016            out << 
");" << std::endl;
 
 2018            out << 
"," << 
fWidgetId << 
");" << std::endl;
 
 2021         out << 
"," << 
fWidgetId << 
"," << 
parGC.Data() << 
");" << std::endl;
 
 2025          << 
");" << std::endl;
 
 
 2041   if (
outext.First(
'\n') >= 0)
 
 2042      outext.ReplaceAll(
"\n", 
"\\n");
 
 2044   out <<
"   TGCheckButton *";
 
 2045   out << 
GetName() << 
" = new TGCheckButton(" << 
fParent->GetName()
 
 2058         parFont.Form(
"ufont->GetFontStruct()");
 
 2064         parGC.Form(
"uGC->GetGC()");
 
 2072               out << 
");" << std::endl;
 
 2074               out << 
"," << 
fWidgetId << 
");" << std::endl;
 
 2089         out << 
"   " << 
GetName() << 
"->SetDisabledAndSelected(kTRUE);" << std::endl;
 
 2091         out << 
"   " << 
GetName() << 
"->SetDisabledAndSelected(kFALSE);" << std::endl;
 
 2093   out << 
"   " << 
GetName() << 
"->SetTextJustify(" << 
fTMode << 
");" << std::endl;
 
 
 2109   if (
outext.First(
'\n') >= 0)
 
 2110      outext.ReplaceAll(
"\n", 
"\\n");
 
 2112   out << 
"   TGRadioButton *";
 
 2113   out << 
GetName() << 
" = new TGRadioButton(" << 
fParent->GetName()
 
 2126         parFont.Form(
"ufont->GetFontStruct()");
 
 2132         parGC.Form(
"uGC->GetGC()");
 
 2140               out <<
");" << std::endl;
 
 2142               out << 
"," << 
fWidgetId << 
");" << std::endl;
 
 2157         out << 
"   " << 
GetName() << 
"->SetDisabledAndSelected(kTRUE);" << std::endl;
 
 2159         out << 
"   " << 
GetName() << 
"->SetDisabledAndSelected(kFALSE);" << std::endl;
 
 2161   out << 
"   " << 
GetName() << 
"->SetTextJustify(" << 
fTMode << 
");" << std::endl;
 
 
 2211   while (
entry != 0) {
 
 2257   fPopMenu->
Connect(
"Activated(Int_t)", 
"TGSplitButton", 
this, 
"HandleMenu(Int_t)");
 
 
 2298   wattr.fBitGravity = 5; 
 
 2299   wattr.fWinGravity = 1;
 
 
 2591            Info(
"TGSplitButton", 
"Only one entry in the menu.");
 
 
 2654         gc->SetForeground(
hi);
 
 2658         gc->SetForeground(sh);
 
 
 2739      if (
e->GetLabel()) {
 
 2740         hot = 
e->GetLabel()->GetHotChar();
 
 
 2793      Info(
"TGSplitbutton", 
"Length of new label to long, label truncated.");
 
 
 2899      fPopMenu->
Connect(
"PoppedDown()", 
"TGSplitButton", 
this, 
"SetMBState(=kButtonUp)");
 
 2900      fPopMenu->
Connect(
"PoppedDown()", 
"TGSplitButton", 
this, 
"MBReleased()");
 
 2908         str += 
entry->GetEntryId();
 
 2910         Connect(
"Clicked()", 
"TGSplitButton", 
this, str);
 
 2918      fPopMenu->
Connect(
"PoppedDown()", 
"TGSplitButton", 
this, 
"SetState(=kButtonUp)");
 
 2919      fPopMenu->
Connect(
"PoppedDown()", 
"TGSplitButton", 
this, 
"Released()");
 
 
 2938   Bool_t in = (
event->fX >= 0) && (event->
fY >= 0) &&
 
 
 3092            if (
ce->GetLabel()) 
hot = 
ce->GetLabel()->GetHotChar();
 
 
 3222      Connect(
"Clicked()", 
"TGSplitButton", 
this,
 
 
const Mask_t kWABitGravity
 
const Mask_t kGCBackground
 
const Mask_t kGCForeground
 
Handle_t Pixmap_t
Pixmap handle.
 
const Mask_t kKeyLockMask
 
const Mask_t kButtonPressMask
 
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
 
const Mask_t kKeyMod1Mask
typically the Alt key
 
const Mask_t kGCFillStyle
 
Handle_t Window_t
Window handle.
 
const Mask_t kWAWinGravity
 
const Mask_t kAnyModifier
 
Handle_t GContext_t
Graphics context handle.
 
const Mask_t kButton1Mask
 
const Mask_t kPointerMotionMask
 
const Mask_t kKeyShiftMask
 
const Mask_t kKeyMod2Mask
typically mod on numeric keys
 
const Mask_t kButton3Mask
 
const Mask_t kLeaveWindowMask
 
const Mask_t kButton2Mask
 
const Mask_t kButtonReleaseMask
 
const Mask_t kGCGraphicsExposures
 
const Mask_t kEnterWindowMask
 
ULong_t Pixel_t
Pixel value.
 
Handle_t FontStruct_t
Pointer to font structure.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
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 mask
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
 
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 mode
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
 
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 gval
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
 
Option_t Option_t TPoint TPoint const char text
 
R__EXTERN TSystem * gSystem
 
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
 
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
 
void ProcessLine(TString cmd, Long_t msg, Long_t parm1, Long_t parm2)
Execute string "cmd" via the interpreter.
 
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
 
const TGResourcePool * GetResourcePool() const
 
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
 
TGGCPool * GetGCPool() const
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
 
TGPicturePool * GetPicturePool() const
 
TGFontPool * GetFontPool() const
 
void FreePicture(const TGPicture *pic)
Free picture resource.
 
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get the specified font.
 
TGFont * FindFont(FontStruct_t font) const
Find font based on its font struct. Returns 0 if font is not found.
 
Encapsulate fonts used in the GUI system.
 
FontStruct_t GetFontStruct() const
 
TGTextLayout * ComputeTextLayout(const char *string, Int_t numChars, Int_t wrapLength, Int_t justify, Int_t flags, UInt_t *width, UInt_t *height) const
Computes the amount of screen space needed to display a multi-line, justified string of text.
 
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
 
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
 
virtual void SetSize(const TGDimension &s)
 
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
 
UInt_t fOptions
frame options
 
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
 
UInt_t fHeight
frame height
 
Int_t fBorderWidth
frame border width
 
void DoRedraw() override
Redraw the frame.
 
static const TGGC & GetHilightGC()
Get highlight color graphics context.
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
virtual UInt_t GetOptions() const
 
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
 
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
 
static const TGGC & GetShadowGC()
Get shadow color graphics context.
 
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
 
Pixel_t fBackground
frame background color
 
static Pixel_t fgDefaultFrameBackground
 
Encapsulate a graphics context used in the low level graphics.
 
TGHotString is a string with a "hot" character underlined.
 
Defines top level windows that interact with the system Window Manager.
 
TGClient * fClient
Connection to display server.
 
Handle_t fId
X11/Win32 Window identifier.
 
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
 
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
 
const char * GetString() const
 
Yield an action as soon as it is clicked.
 
void Init()
Common initialization used by the different ctors.
 
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
 
void Layout() override
layout text button
 
Bool_t HandleKey(Event_t *event) override
Handle key event. This function will be called when the hotkey is hit.
 
TClass * IsA() const override
 
virtual void SetTextJustify(Int_t tmode)
Set text justification.
 
virtual void SetText(TGHotString *new_label)
Set new button text.
 
TGTextButton(const TGTextButton &)=delete
 
static const TGFont * fgDefaultFont
 
TGDimension GetDefaultSize() const override
returns default size
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a text button widget as a C++ statement(s) on output stream out.
 
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique, returns kFALSE if text attributes are shared (global).
 
virtual void SetFont(FontStruct_t font, Bool_t global=kFALSE)
Changes text font.
 
~TGTextButton() override
Delete a text button widget.
 
void DoRedraw() override
Draw the text button.
 
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
 
void DrawText(Drawable_t dst, GContext_t gc, Int_t x, Int_t y, Int_t firstChar, Int_t lastChar) const
Use the information in the TGTextLayout object to display a multi-line, justified string of text.
 
void UnderlineChar(Drawable_t dst, GContext_t gc, Int_t x, Int_t y, Int_t underline) const
Use the information in the TGTextLayout object to display an underline below an individual character.
 
ROOT GUI Window base class.
 
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
 
virtual void RequestFocus()
request focus
 
const TGWindow * fParent
Parent window.
 
virtual void SetWindowName(const char *name=nullptr)
Set window name.
 
const TGWindow * GetParent() const
 
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
 
An abstract interface to image processing library.
 
static TImage * Create()
Create an image.
 
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.
 
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
 
const char * Data() const
 
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
 
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
 
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
 
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
 
EGEventType fType
of event (see EGEventType)
 
Int_t fY
pointer x, y coordinates in event window
 
Window_t fWindow
window reported event is relative to
 
UInt_t fState
key or button mask
 
Graphics context structure.
 
Point structure (maps to the X11 XPoint structure)
 
Attributes that can be used when creating or changing a window.