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