library: libGui
#include "TGToolBar.h"

TGToolBar


class description - source file - inheritance tree (.ps)

class TGToolBar : public TGCompositeFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGToolBar
<-
TGedToolBox

    public:
TGToolBar(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kHorizontalFrame, Pixel_t back = GetDefaultFrameBackground()) TGToolBar(const TGToolBar&) virtual ~TGToolBar() void AddButton(const TGWindow* w, ToolBarData_t* button, Int_t spacing = 0) void ChangeIcon(ToolBarData_t* button, const char* new_icon) static TClass* Class() virtual void Cleanup() virtual TClass* IsA() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TList* fPictures list of pictures that should be freed TList* fTrash list of buttons and layout hints to be deleted

Class Description

                                                                      
 TGToolBar                                                            
                                                                      
 A toolbar is a composite frame that contains TGPictureButtons.       
 Often used in combination with a TGHorizontal3DLine.                 
                                                                      


TGToolBar(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGCompositeFrame(p, w, h, options, back)
 Create toolbar widget.

~TGToolBar()
 Delete toolbar and its buttons and layout hints.

void 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 (iff fPixmap was valid).
 Window w is the window to which the button messages will be send.

void ChangeIcon(ToolBarData_t *button, const char *new_icon)
 Change the icon of a toolbar button.

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 SavePrimitive(ofstream &out, Option_t *option)
 Save an horizontal slider as a C++ statement(s) on output stream out.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
          TGToolBar TGToolBar(const TGToolBar&)


Author: Fons Rademakers 25/02/98
Last update: root/gui:$Name: $:$Id: TGToolBar.cxx,v 1.11 2004/04/22 23:49:42 rdm 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.