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
21
22///////////////////////////////////////////////////////////////////
23/// Default constructor
24
26 fBrowser(b), fShowCycles(kFALSE)
27{
28}
29
30///////////////////////////////////////////////////////////////////
31/// Constructor with browser width and height
32
34 fBrowser(nullptr), fShowCycles(kFALSE)
35{
36}
37
38///////////////////////////////////////////////////////////////////
39/// Constructor with browser x, y, width and height
40
42 : fBrowser(nullptr), fShowCycles(kFALSE)
43{
44}
45
46///////////////////////////////////////////////////////////////////
47/// Destructor
48
50{
51 if (fBrowser && fBrowser->GetBrowserImp() == this)
52 fBrowser->SetBrowserImp(nullptr);
53}
#define b(i)
Definition RSha256.hxx:100
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
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