Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TBrowserImp.cxx
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Fons Rademakers 15/11/95
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/** \class TBrowserImp
13\ingroup Base
14
15ABC describing GUI independent browser implementation protocol.
16*/
17
18#include "TBrowserImp.h"
19#include "TBrowser.h"
20
22
23///////////////////////////////////////////////////////////////////
24/// Default constructor
25
27 fBrowser(b), fShowCycles(kFALSE)
28{
29}
30
31///////////////////////////////////////////////////////////////////
32/// Constructor with browser width and height
33
35 fBrowser(nullptr), fShowCycles(kFALSE)
36{
37}
38
39///////////////////////////////////////////////////////////////////
40/// Constructor with browser x, y, width and height
41
43 : fBrowser(nullptr), fShowCycles(kFALSE)
44{
45}
46
47///////////////////////////////////////////////////////////////////
48/// Destructor
49
51{
52 if (fBrowser && fBrowser->GetBrowserImp() == this)
53 fBrowser->SetBrowserImp(nullptr);
54}
#define b(i)
Definition RSha256.hxx:100
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
const char Option_t
Definition RtypesCore.h:66
#define ClassImp(name)
Definition Rtypes.h:374
ABC describing GUI independent browser implementation protocol.
Definition TBrowserImp.h:29
TBrowserImp(const TBrowserImp &)=delete
virtual ~TBrowserImp()
Destructor.
TBrowser * fBrowser
TBrowser associated with this implementation.
Definition TBrowserImp.h:32
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
TBrowserImp * GetBrowserImp() const
Definition TBrowser.h:94
void SetBrowserImp(TBrowserImp *i)
Definition TBrowser.h:96