#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
const char * GetString() const
virtual TGDimension GetDefaultSize() const
Return default size of tab element.
Bool_t IsCloseShown() const
virtual ~TGTabElement()
Delete tab element.
void SetText(TGString *text)
Set new tab text.
virtual void DrawBorder()
Draw little tab element.
virtual void SetEnabled(Bool_t on=kTRUE)
TGTabElement & operator=(const TGTabElement &)
const char * GetString() const
const TGPicture * fClosePic
virtual void SetEditDisabled(UInt_t)
const TGString * GetText() const
TGTabElement(const TGTabElement &)
virtual void SetActive(Bool_t on=kTRUE)
const TGPicture * fClosePicD
virtual void ShowClose(Bool_t on=kTRUE)
Show/hide close icon on the tab element, then apply layout to compute correct elements size.
virtual Bool_t HandleButton(Event_t *event)
Handle button event in the tab widget.
TGTabLayout & operator=(const TGTabLayout &)
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".
TGTabLayout(const TGTabLayout &)
virtual TGDimension GetDefaultSize() const
Get default size of tab widget.
TGTab & operator=(const TGTab &)
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
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.
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.
Int_t GetNumberOfTabs() const
Return number of tabs.
static const TGGC * fgDefaultGC
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 DrawBorder()
Draw frame border.
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.
TGTabElement * GetCurrentTab() const
static const TGFont * fgDefaultFont
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
int main(int argc, char **argv)