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 void LoadGraphicsLibs() override;
30
31public:
32 TGApplication(const char *appClassName,
33 Int_t *argc, char **argv,
34 void *options = nullptr, Int_t numOptions = 0);
35 ~TGApplication() override;
36
37 void GetOptions(Int_t *argc, char **argv) override;
38
39 ClassDefOverride(TGApplication,0) //GUI application singleton
40};
41
42#endif
int Int_t
Definition RtypesCore.h:45
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
This class initialize the ROOT GUI toolkit.
TGClient * fClient
pointer to the client environment
void GetOptions(Int_t *argc, char **argv) override
Handle command line arguments.
~TGApplication() override
TGApplication dtor.
void LoadGraphicsLibs() override
Load shared libs necessary for GUI.
TString fDisplay
display server to connect to
Window client.
Definition TGClient.h:37
Basic string class.
Definition TString.h:139