Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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) 1995-2021, Rene Brun and Fons Rademakers. *
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#include "TApplication.h"
17
18class TGClient;
19
20
22
23private:
24 TString fDisplay; ///< display server to connect to
25 TGClient *fClient{nullptr}; ///< pointer to the client environment
26
27protected:
29 virtual void LoadGraphicsLibs();
30
31public:
32 TGApplication(const char *appClassName,
33 Int_t *argc, char **argv,
34 void *options = nullptr, Int_t numOptions = 0);
35 virtual ~TGApplication();
36
37 virtual void GetOptions(Int_t *argc, char **argv);
38
39 ClassDef(TGApplication,0) //GUI application singleton
40};
41
42#endif
int Int_t
Definition RtypesCore.h:45
#define ClassDef(name, id)
Definition Rtypes.h:325
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
This class initialize the ROOT GUI toolkit.
virtual void LoadGraphicsLibs()
Load shared libs necessary for GUI.
virtual void GetOptions(Int_t *argc, char **argv)
Handle command line arguments.
TGClient * fClient
pointer to the client environment
virtual ~TGApplication()
TGApplication dtor.
TString fDisplay
display server to connect to
Window client.
Definition TGClient.h:37
Basic string class.
Definition TString.h:136