81 Warning(
"Create",
"separators not yet supported");
85 Warning(
"Create",
"picture buttons not yet supported");
92 b->SetUserData(button);
176 while ((obj=next())) {
177 if (!obj->
InheritsFrom(TGTextButton::Class()))
continue;
193 while ((obj=next())) {
194 if (!obj->
InheritsFrom(TGTextButton::Class()))
continue;
215 Error(
"SetButtonState",
"not valid button state (expecting 0, 1, 2 or 3)");
232 gClient->GetColorByName(colorName, color);
240 while ((obj=next())) {
241 if (!obj->
InheritsFrom(TGTextButton::Class()))
continue;
ULong_t Pixel_t
Pixel value.
include TDocParser_001 C image html pict1_TDocParser_001 png width
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
ABC describing GUI independent control bar.
TControlBar * fControlBar
TControlBarButton * fClicked
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
TList * GetListOfButtons() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void MapRaised()
map raised
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
virtual void Move(Int_t x, Int_t y)
Move frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void UnmapWindow()
unmap window
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
Yield an action as soon as it is clicked.
virtual void Add(TObject *obj)
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetTitle() const
Returns title of object.
This class provides an interface to the GUI dependent functions of the TControlBar class.
void ReallyDelete()
Really delete the control bar and the this GUI.
void Hide()
Hide controlbar.
virtual ~TRootControlBar()
Delete the control bar implementation.
void SetTextColor(const char *colorName)
sets text color for control bar buttons, e.g.: root > .x tutorials/demos.C root > bar->SetTextColor("...
UInt_t fBwidth
button width in pixels
void Show()
Show controlbar. If not yet created create it first.
void Create()
Create the control bar.
void SetButtonWidth(UInt_t width)
Set button width in pixels.
void SetFont(const char *fontName)
sets new font for control bar buttons
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Handle controlbar button messages.
TRootControlBar(TControlBar *c=nullptr, const char *title="ROOT Control Bar", Int_t x=-999, Int_t y=-999)
Create a ROOT native GUI controlbar.
void CloseWindow()
Called when closed via window manager action.
TList * fWidgets
list of TGTextButton or TGPictureButtons
void SetButtonState(const char *label, Int_t state=0)
sets new font for control bar buttons
TGLayoutHints * fL1
button layout hints