Logo ROOT   6.16/01
Reference Guide
TGApplication.h
Go to the documentation of this file.
1// @(#)root/gui:$Id$
2// Author: Guy Barrand 30/05/2001
3
4/*************************************************************************
5 * Copyright (C) 2001, Guy Barrand. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGApplication
13#define ROOT_TGApplication
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TGApplication //
19// //
20// This class initialize the ROOT GUI toolkit. //
21// This class must be instantiated exactly once in any given //
22// application. //
23// //
24//////////////////////////////////////////////////////////////////////////
25
26#include "TApplication.h"
27
28class TGClient;
29
30
32
33private:
34 char *fDisplay; // display server to connect to
35 TGClient *fClient; // pointer to the client environment
36
37protected:
39 virtual void LoadGraphicsLibs();
40
41public:
42 TGApplication(const char *appClassName,
43 Int_t *argc, char **argv,
44 void *options = 0, Int_t numOptions = 0);
45 virtual ~TGApplication();
46
47 virtual void GetOptions(Int_t *argc, char **argv);
48
49 ClassDef(TGApplication,0) //GUI application singleton
50};
51
52#endif
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:324
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Definition: TApplication.h:39
virtual void LoadGraphicsLibs()
Load shared libs necessary for GUI.
virtual void GetOptions(Int_t *argc, char **argv)
Handle command line arguments.
TGClient * fClient
Definition: TGApplication.h:35
virtual ~TGApplication()
TGApplication dtor.