Logo ROOT  
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) 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 virtual ~TGApplication();
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:339
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Definition: TApplication.h:39
This class initialize the ROOT GUI toolkit.
Definition: TGApplication.h:21
TGClient * fClient
pointer to the client environment
Definition: TGApplication.h:25
void GetOptions(Int_t *argc, char **argv) override
Handle command line arguments.
virtual ~TGApplication()
TGApplication dtor.
void LoadGraphicsLibs() override
Load shared libs necessary for GUI.
TString fDisplay
display server to connect to
Definition: TGApplication.h:24
Window client.
Definition: TGClient.h:37
Basic string class.
Definition: TString.h:136