library: libCore #include "TGuiFactory.h"

# TGuiFactory

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

## class TGuiFactory : public TNamed

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TGuiFactory`

<-

`TQtRootGuiFactory` |

`TRootGuiFactory` |

        public:

                                   TGuiFactory(const char* name = "Batch", const char* title = "Batch GUI Factory")
                                   TGuiFactory(const TGuiFactory&)
                           virtual ~TGuiFactory()
                    static TClass* Class()
          virtual TApplicationImp* CreateApplicationImp(const char* classname, int* argc, char** argv)
              virtual TBrowserImp* CreateBrowserImp(TBrowser* b, const char* title, UInt_t width, UInt_t height)
              virtual TBrowserImp* CreateBrowserImp(TBrowser* b, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height)
               virtual TCanvasImp* CreateCanvasImp(TCanvas* c, const char* title, UInt_t width, UInt_t height)
               virtual TCanvasImp* CreateCanvasImp(TCanvas* c, const char* title, Int_t x, Int_t y, UInt_t width, UInt_t height)
          virtual TContextMenuImp* CreateContextMenuImp(TContextMenu* c, const char* name, const char* title)
           virtual TControlBarImp* CreateControlBarImp(TControlBar* c, const char* title)
           virtual TControlBarImp* CreateControlBarImp(TControlBar* c, const char* title, Int_t x, Int_t y)
            virtual TInspectorImp* CreateInspectorImp(const TObject* obj, UInt_t width, UInt_t height)
                   virtual TClass* IsA() const
                      TGuiFactory& operator=(const TGuiFactory&)
                      virtual void ShowMembers(TMemberInspector& insp, char* parent)
                      virtual void Streamer(TBuffer& b)
                              void StreamerNVirtual(TBuffer& b)

### Data Members

## Class Description

     TGuiFactory

     This ABC is a factory for GUI components. Depending on which
     factory is active one gets either ROOT native (X11 based with Win95
     look and feel), Win32 or Mac components.
     In case there is no platform dependent implementation on can run in
     batch mode directly using an instance of this base class.

TGuiFactory(const char *name, const char *title) : TNamed(name, title)

     TGuiFactory ctor only called by derived classes.

TApplicationImp* CreateApplicationImp(const char *classname, int *argc, char **argv)

     Create a batch version of TApplicationImp.

TCanvasImp* CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)

     Create a batch version of TCanvasImp.

TCanvasImp* CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height)

     Create a batch version of TCanvasImp.

TBrowserImp* CreateBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height)

     Create a batch version of TBrowserImp.

TBrowserImp* CreateBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height)

     Create a batch version of TBrowserImp.

TContextMenuImp* CreateContextMenuImp(TContextMenu *c, const char *, const char *)

     Create a batch version of TContextMenuImp.

TControlBarImp* CreateControlBarImp(TControlBar *c, const char *title)

     Create a batch version of TControlBarImp.

TControlBarImp* CreateControlBarImp(TControlBar *c, const char *title, Int_t x, Int_t y)

     Create a batch version of TControlBarImp.

TInspectorImp* CreateInspectorImp(const TObject *obj, UInt_t width, UInt_t height)

     Create a batch version of TInspectorImp.

### Inline Functions

                    void ~TGuiFactory()
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
             TGuiFactory TGuiFactory(const TGuiFactory&)
            TGuiFactory& operator=(const TGuiFactory&)

Author: Fons Rademakers 15/11/95
Last update: root/base:$Name: $:$Id: TGuiFactory.cxx,v 1.4 2002/09/15 19:45:59 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *