78 switch (
button->GetType()) {
81 Warning(
"Create",
"separators not yet supported");
85 Warning(
"Create",
"picture buttons not yet supported");
91 b->SetToolTipText(
button->GetTitle());
176 while ((obj=next())) {
193 while ((obj=next())) {
215 Error(
"SetButtonState",
"not valid button state (expecting 0, 1, 2 or 3)");
232 gClient->GetColorByName(colorName, color);
240 while ((obj=next())) {
ULong_t Pixel_t
Pixel value.
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.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetMWMHints
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t button
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
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
UInt_t GetDefaultWidth() const override
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
void Move(Int_t x, Int_t y) override
Move frame.
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
void UnmapWindow() override
unmap window
void MapRaised() override
map raised
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 SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
Yield an action as soon as it is clicked.
void Add(TObject *obj) override
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 Show() override
Show controlbar. If not yet created create it first.
void SetFont(const char *fontName) override
sets new font for control bar buttons
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Handle controlbar button messages.
void SetTextColor(const char *colorName) override
sets text color for control bar buttons, e.g.: root > .x tutorials/demos.C root > bar->SetTextColor("...
void ReallyDelete() override
Really delete the control bar and the this GUI.
UInt_t fBwidth
button width in pixels
void CloseWindow() override
Called when closed via window manager action.
void SetButtonWidth(UInt_t width) override
Set button width in pixels.
void SetButtonState(const char *label, Int_t state=0) override
sets new font for control bar buttons
void Hide() override
Hide controlbar.
TRootControlBar(TControlBar *c=nullptr, const char *title="ROOT Control Bar", Int_t x=-999, Int_t y=-999)
Create a ROOT native GUI controlbar.
TList * fWidgets
list of TGTextButton or TGPictureButtons
void Create() override
Create the control bar.
~TRootControlBar() override
Delete the control bar implementation.
TGLayoutHints * fL1
button layout hints