Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TRootApplication.h
Go to the documentation of this file.
1// @(#)root/gui:$Id$
2// Author: Fons Rademakers 15/01/98
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, 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
13#ifndef ROOT_TRootApplication
14#define ROOT_TRootApplication
15
16
17#include "TApplicationImp.h"
18
19
20class TGClient;
21
22
24
25private:
26 TGClient *fClient; // pointer to the client environment
27 char *fDisplay; // display server to connect to
28
29 TRootApplication() { fClient = nullptr; fDisplay = nullptr; }
30 void GetOptions(Int_t *argc, char **argv);
31
32public:
33 TRootApplication(const char *appClassName, Int_t *argc, char **argv);
34 ~TRootApplication() override;
35
36 TGClient *Client() const { return fClient; }
37
38 void Show() override {}
39 void Hide() override {}
40 void Iconify() override {}
41 Bool_t IsCmdThread() override;
42 void Init() override {}
43 void Open() override {}
44 void Raise() override {}
45 void Lower() override {}
46
47 ClassDefOverride(TRootApplication,0) // ROOT native GUI application environment
48};
49
50#endif
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
ABC describing GUI independent application implementation protocol.
Window client.
Definition TGClient.h:37
This class create the ROOT native GUI version of the ROOT application environment.
void Init() override
void Show() override
Bool_t IsCmdThread() override
By default (for UNIX) ROOT is a single thread application For win32gdk returns kTRUE if it's called f...
void GetOptions(Int_t *argc, char **argv)
Handle command line arguments.
void Hide() override
~TRootApplication() override
Delete ROOT application environment.
void Iconify() override
void Lower() override
void Raise() override
TGClient * Client() const
void Open() override