Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
#define ClassDef(name, id)
The base class for composite widgets (menu bars, list boxes, etc.).
Encapsulate fonts used in the GUI system.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
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...
const char * GetString() const
Service classes of the tab widget.
virtual TGDimension GetDefaultSize() const
Return default size of tab element.
Bool_t IsCloseShown() const
virtual ~TGTabElement()
Delete tab element.
Bool_t fActive
true if active (in front)
Bool_t fShowClose
show or hide close icon
TGString * fText
text on tab
void SetText(TGString *text)
Set new tab text.
GContext_t fNormGC
graphics context for drawing tab
virtual void DrawBorder()
Draw little tab element.
virtual void SetEnabled(Bool_t on=kTRUE)
Bool_t fEnabled
enabled or disabled
const char * GetString() const
UInt_t fTHeight
height of tab text
FontStruct_t fFontStruct
font used for tab
const TGPicture * fClosePic
"close tab" icon
UInt_t fTWidth
width of tab text
virtual void SetEditDisabled(UInt_t)
const TGString * GetText() const
TGTabElement(const TGTabElement &)=delete
virtual void SetActive(Bool_t on=kTRUE)
const TGPicture * fClosePicD
"close tab" icon (disabled)
virtual void ShowClose(Bool_t on=kTRUE)
Show/hide close icon on the tab element, then apply layout to compute correct elements size.
TGTabElement & operator=(const TGTabElement &)=delete
virtual Bool_t HandleButton(Event_t *event)
Handle button event in the tab widget.
Service classes of the tab widget.
TGTabLayout & operator=(const TGTabLayout &)=delete
TGTabLayout(const TGTabLayout &)=delete
virtual void Layout()
Layout the tab widget.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
virtual TGDimension GetDefaultSize() const
Get default size of tab widget.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
virtual TGLayoutManager * GetLayoutManager() const
Return layout manager.
TGCompositeFrame * GetCurrentContainer() const
virtual void NewTab(const char *text="tab")
Create new tab. Used in context menu.
TGCompositeFrame * GetContainer() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a tab widget as a C++ statement(s) on output stream out.
TGCompositeFrame * fContainer
main container
virtual void SetEnabled(Int_t tabIndex, Bool_t on=kTRUE)
Enable or disable tab.
virtual void SetText(const char *text="tab")
Set text to current tab.
FontStruct_t fFontStruct
font
static const TGGC & GetDefaultGC()
Return default graphics context in use.
virtual void Removed(Int_t id)
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
TGTab & operator=(const TGTab &)=delete
Int_t fCurrent
index of current tab
GContext_t fNormGC
drawing context
Int_t GetNumberOfTabs() const
Return number of tabs.
static const TGGC * fgDefaultGC
Bool_t fScrolling
true if tab scrolling enabled
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
virtual void SetScrollingEnabled(Bool_t on=kTRUE)
Enable or disable tab scrolling.
virtual void DrawBorder()
Draw frame border.
TList * fRemoved
list of removed tabs
virtual void RemoveTab(Int_t tabIndex=-1, Bool_t storeRemoved=kTRUE)
Remove container and tab of tab with index tabIndex.
virtual void CloseTab(Int_t id)
virtual void Selected(Int_t id)
void ChangeTab(Int_t tabIndex, Bool_t emit=kTRUE)
Make tabIdx the current tab.
UInt_t GetTabHeight() const
virtual ~TGTab()
Delete tab widget.
TGCompositeFrame * GetTabContainer(Int_t tabIndex) const
Return container of tab with index tabIndex.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
Bool_t IsScrollingEnabled() const
Returns true if tab scrolling is enabled.
TGTab(const TGTab &)=delete
TGTabElement * GetCurrentTab() const
static const TGFont * fgDefaultFont
ROOT GUI Window base class.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.