library: libGui #include "TGToolBar.h" |
TGToolBar
class description - header file - source file - inheritance tree (.pdf)
protected:
TGToolBar(const TGToolBar& gtb)
TGToolBar& operator=(const TGToolBar& gtb)
public:
TGToolBar(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kHorizontalFrame, Pixel_t back = GetDefaultFrameBackground())
virtual ~TGToolBar()
virtual TGButton* AddButton(const TGWindow* w, ToolBarData_t* button, Int_t spacing = 0)
virtual TGButton* AddButton(const TGWindow* w, TGPictureButton* button, Int_t spacing = 0)
virtual void ButtonClicked()
virtual void ButtonPressed()
virtual void ButtonReleased()
virtual void ChangeIcon(ToolBarData_t* button, const char* new_icon)
static TClass* Class()
virtual void Cleanup()
virtual void Clicked(Int_t id)
virtual TGButton* GetButton(Int_t id) const
virtual Int_t GetId(TGButton* button) const
virtual TClass* IsA() const
virtual void Pressed(Int_t id)
virtual void Released(Int_t id)
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void SetId(TGButton* button, Int_t id)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TList* fPictures list of pictures that should be freed
TList* fTrash list of buttons and layout hints to be deleted
TMap* fMapOfButtons map of button/id pairs in this group
TGButton * AddButton(const TGWindow *w, ToolBarData_t *button, Int_t spacing)
Add button to toolbar. All buttons added via this method will be
deleted by the toolbar. On return the TGButton field of the
ToolBarData_t struct is filled in (if fPixmap was valid).
Window w is the window to which the button messages will be send.
TGButton * AddButton(const TGWindow *w, TGPictureButton *pbut, Int_t spacing)
Add button to toolbar. All buttons added via this method will be deleted
by the toolbar, w is the window to which the button messages will be send.
TGButton * GetButton(Int_t id)
Finds and returns a pointer to the button with the specified
identifier id. Returns null if the button was not found.
Int_t GetId(TGButton *button)
Finds and returns the id of the button.
Returns -1 if the button is not a member of this group.
void Cleanup()
Cleanup and delete all objects contained in this composite frame.
This will delete all objects added via AddFrame().
CAUTION: all objects (frames and layout hints) must be unique, i.e.
cannot be shared.
void ButtonPressed()
This slot is activated when one of the buttons in the group emits the
Pressed() signal.
void ButtonReleased()
This slot is activated when one of the buttons in the group emits the
Released() signal.
void ButtonClicked()
This slot is activated when one of the buttons in the group emits the
Clicked() signal.
Author: Fons Rademakers 25/02/98
Last update: root/gui:$Name: $:$Id: TGToolBar.cxx,v 1.20 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.